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 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.
Header: plemtx.h