XLL+ Class Library (6.3)

mtx_flat<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 sets data to the start of an array of T containing all the members of the matrix. The number of items is the same as the value returned by size(0) * size(1), i.e. the total size of the matrix.

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

The method always returns true, to indicate that the operation is supported.

Requirements

Header: plemtx.h

See Also

mtx_flat<T> Class | mtx_flat<T> Methods