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