4 #ifndef VCS_INTSTARSTAR_H
5 #define VCS_INTSTARSTAR_H
46 void resize(
size_t mcol,
size_t nrow,
int v = 0);
size_t m_ncols
number of columns
std::vector< int > m_data
Storage area for the matrix, layed out in Fortran style, row-inner, column outer format.
int * operator[](size_t jcol)
Pointer to the top of the column.
void resize(size_t mcol, size_t nrow, int v=0)
Resize the array, and fill the new entries with 'v'.
size_t nRows() const
Number of rows.
size_t m_nrows
number of rows
A class for 2D int arrays stored in column-major (Fortran-compatible) form.
size_t nColumns() const
Number of columns.
std::vector< int * > m_colAddr
Vector of column addresses.
int *const * baseDataAddr()
Returns a int** pointer to the base address.
IntStarStar()
Default constructor. Create an empty array.