- HasNan
- ReplaceNan
- ReplaceToZero
- NormalizeDouble
- Transpose
- TransposeConjugate
- TriL
- TriU
- Diag
- Row
- Col
- Copy
- Swap
- Conjugate
- Concat
- Compare
- CompareByDigits
- CompareEqual
- Flat
- Clip
- Reshape
- Resize
- Free
- Set
- SwapRows
- SwapCols
- Split
- Hsplit
- Vsplit
- ArgSort
- Sort
Swap
Swaps the buffers between matrices, vectors and dynamic arrays of the same type.
bool matrix<T>::Swap(
|
Parameters
mat, vec or array
[in] The matrix, vector or dynamic array to swap their associated buffers.
Return Value
Returns true if successful, otherwise — false.
Note
The array size must be a multiple of the matrix or vector size. The vector size must be a multiple of the matrix size.
Example:
template<typename T>
|
See also