Copy the members of a matrix to a flattened vector
void mtx_flatten<M, V>( V& v, const M& n, int outer_dim ); |
A reference to a target vector containing items of type M::mtx_item_type.
A reference to a source object of type M that supports the imtx<T> interface.
The index of the dimension to be treated as the outer dimension in the target array. The only legal values are 0 and 1.
This template function a matrix to a flattened array of items, contained in an std::vector<T> container.
The source matrix must support the imtx<T> interface.
Header: plemtx.h