XLL+ Class Library (6.3)

::copy_offset<M, N>

Copy one matrix to another, with offsets, truncating if required

void copy_offset<M, N>(
   M& m,
   const N& n,
   int offset0,
   int offset1
);

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.

offset0

An offset in dimension 0. If it is negative it indicates that the first -offset0 rows/columns of the source matrix should be ignored. If positive, it indicates the start location within the target matrix.

offset1

An offset in dimension 1. If it is negative it indicates that the first -offset1 rows/columns of the source matrix should be ignored. If positive, it indicates the start location within the target matrix.

Remarks

This template function copies data from one matrix to another, with offsets, truncating if required.

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.

Note that the function does not resize the target matrix.

Requirements

Header: plemtx.h

See Also

Matrix template functions