XLL+ Class Library (6.3)

::mtx_copy_transpose<M, N>

Copy one matrix to another, with the contents transposed

void mtx_copy_transpose<M, N>(
   M& m,
   const N& n
);

Parameters

m

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

n

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

Remarks

This template function copies one matrix to another, resizing the target matrix if required.

The items in the source matrix are transposed in the target matrix, such that n.at(i, j) = m.at(j, i).

Both matrices must support the imtx<T> interface. The matrixes do not need to be of the same type, but they should each have the same item type T.

Requirements

Header: plemtx.h

See Also

Matrix template functions