XLL+ Class Library (6.3)

imtx<T>::get_flat

Gets a pointer to a flattened, continuous array containing all the members of the matrix

virtual bool get_flat(
   const T*& data
) const;
virtual bool get_flat(
   T*& data
);

Parameters

data

Buffer for a pointer to an array of items.

data

Buffer for a pointer to an array of items.

Return Value

Returns true if the operation is supported, false if it is not.

Remarks

This method should set data to the start of an array of T containing all the members of the matrix. The number of items should be the same as the value returned by size(0) * size(1), i.e. the total size of the matrix.

The data should be arranged with the inner dimension continuous, i.e. a 2 x 2 matrix would be arranged as: at(0,0), at(0,1), at(1,0), at(1,1).

If the storage method used by the implementation class does not support this form of operation without rearrangement of data, then the method should return false.

Requirements

Header: plemtx.h

See Also

imtx<T> Class | imtx<T> Methods