Transposes a matrix assigning the result to a non-overlapping array of existing elements.
- Template Parameters
-
| ValueType | A type of a matrix element. |
- Parameters
-
| [in] | column_matrix | A pointer to a matrix, of columns by rows elements, to transpose. |
| columns | A number of columns in the matrix to transpose. |
| rows | A number of rows in the matrix to transpose. |
| [in,out] | result | A pointer to an output buffer with an array of n2 elements of the type ValueType. On output, the elements of the transposition are assigned to the respective elements of result. The buffer may not overlap column_matrix. |
- Exceptions
-
| Any | exception generated from an invocation of copy-assignment of ValueType. |
To transpose a matrix writing the result to an uninitialized memory buffer, constructing elements in it, rather than assigning those, use transpose_construct.
To transpose a matrix in place, use transpose_inplace.