XLL+ Class Library (6.3)

::mtx_flatten<M, V>

Copy the members of a matrix to a flattened vector

void mtx_flatten<M, V>(
   V& v,
   const M& n,
   int outer_dim
);

Parameters

v

A reference to a target vector containing items of type M::mtx_item_type.

n

A reference to a source object of type M that supports the imtx<T> interface.

outer_dim

The index of the dimension to be treated as the outer dimension in the target array. The only legal values are 0 and 1.

Remarks

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.

Requirements

Header: plemtx.h

See Also

Matrix template functions