- HasNan
- Transpose
- TransposeConjugate
- TriL
- TriU
- Diag
- Row
- Col
- Copy
- Compare
- CompareByDigits
- CompareEqual
- Flat
- Clip
- Reshape
- Resize
- Set
- SwapRows
- SwapCols
- Split
- Hsplit
- Vsplit
- ArgSort
- Sort
SwapCols
Swap columns in a matrix.
bool matrix::SwapCols(
|
Parameters
col1
[in] Index of the first column.
col2
[in] Index of the second column.
Return Value
Returns true on success, false otherwise.
Example
matrix matrix_a={{1,2,3,4},
|