6 #ifndef VCS_DOUBLESTARSTAR_H
7 #define VCS_DOUBLESTARSTAR_H
55 void resize(
size_t mcol,
size_t nrow,
double v = 0.0);
DoubleStarStar()
Default constructor. Create an empty array.
size_t nColumns() const
Number of columns.
double *const * baseDataAddr()
Returns a double** pointer to the base address.
void resize(size_t mcol, size_t nrow, double v=0.0)
Resize the array, and fill the new entries with v
std::vector< double * > m_colAddr
Vector of addresses for the top of the columns.
double * operator[](size_t jcol)
Pointer to the top of the column.
size_t m_ncols
number of columns
double const *const * constBaseDataAddr() const
Returns a const double** pointer to the base address.
size_t m_nrows
number of rows
size_t nRows() const
Number of rows.
A class for 2D double arrays stored in column-major (Fortran-compatible) form.
std::vector< double > m_data
Storage area.