Copy one matrix to another, with offsets, truncating if required
[C++]
void copy_offset<M, N>(
M& m,
const N& n,
int offset0,
int offset1
);
A reference to a target object of type M that supports the imtx<T> interface.
A reference to a source object of type N that supports the imtx<T> interface.
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.
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.
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.
Header: plemtx.h