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 ); |
Buffer for a pointer to an array of items.
Buffer for a pointer to an array of items.
Returns true if the operation is supported, false if it is not.
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.
Header: plemtx.h