Returns a matrix representation of the vector in column-major order with the specified number of rows and columns.
- Template Parameters
-
- Parameters
-
x | matrix |
m | rows |
n | columns |
col_major | column-major indicator: if 1, output matrix is transversed in column-major order, if 0, output matrix is transversed in row-major order, otherwise function throws std::invalid_argument |
- Returns
- Reshaped inputted matrix
- Exceptions
-
<code>std::invalid_argument</code> | if the sizes do not match |
Definition at line 179 of file to_matrix.hpp.