9 #ifndef _fei_FillableMat_hpp_ 10 #define _fei_FillableMat_hpp_ 32 void sumInCoef(
int row,
int col,
double coef);
33 void putCoef(
int row,
int col,
double coef);
35 void sumInRow(
int row,
const int* cols,
const double* coefs,
unsigned len);
36 void putRow(
int row,
const int* cols,
const double* coefs,
unsigned len);
40 bool hasRow(
int row)
const;
45 typedef std::map<int, CSVec*, std::less<int>,
feipoolmat::iterator iterator
bool hasRow(int row) const
const CSVec * getRow(int row) const
CSVec * create_or_getRow(int row)
void createPosition(int row, int col)
void get_row_numbers(const FillableMat &mat, std::vector< int > &rows)
FillableMat & operator=(const FillableMat &src)
void putCoef(int row, int col, double coef)
void putRow(int row, const int *cols, const double *coefs, unsigned len)
fei_Pool_alloc< CSVec > vecpool_
feipoolmat::const_iterator const_iterator
void setValues(double value)
void sumInRow(int row, const int *cols, const double *coefs, unsigned len)
bool operator!=(const FillableMat &rhs) const
unsigned getNumRows() const
void sumInCoef(int row, int col, double coef)
const_iterator end() const
bool operator==(const FillableMat &rhs) const
int count_nnz(const FillableMat &mat)
std::map< int, CSVec *, std::less< int >, fei_Pool_alloc< std::pair< const int, CSVec * > > > feipoolmat
const_iterator begin() const
void print(std::ostream &os, const FillableMat &mat)