16 using namespace hippodraw;
28 std::vector < double > &
35 const std::vector < double > &
51 const std::vector < intptr_t > &
70 std::size_t product = 1;
71 for (
unsigned int i = 0;
i <
rank;
i++ ) {
90 unsigned int size = 1;
91 for (
unsigned int i = 1;
i <
rank;
i++ ) {
94 unsigned int pos = row *
size;
unsigned int getRank() const
Gives the dimensionality of the data stored in each row of this branch.
void setShape(const std::vector< intptr_t > &shape)
Sets the shape of the data column.
double * doubleArrayAt(unsigned int row)
Returns pointer to the sub-array at row row.
std::vector< intptr_t > shape(numeric::array arr)
hippodraw::DataColumn class interface.
const std::vector< intptr_t > & getShape()
Vector of the number of entries in the multidimensional data.
DataColumn()
The default constructor.
std::vector< double > m_double_data
The data.
~DataColumn()
The destructor.
int rank(numeric::array arr)
std::size_t size() const
Returns the size of the column.
std::vector< double > & getData()
Returns the data.
std::vector< intptr_t > m_shape
In case the data quantity we are dealing with is a vector/matrix store its dimensions of each axis in...
void clear()
Clears the data array.