copasi API
0.1
|
#include <CSparseMatrix.h>
Public Member Functions | |
CSparseMatrix (const unsigned C_INT32 &rows=0, const unsigned C_INT32 &cols=0) | |
CSparseMatrix (const CCompressedColumnFormat &ccf) | |
~CSparseMatrix () | |
bool | resize (const unsigned C_INT32 &rows, const unsigned C_INT32 &columns) |
const unsigned C_INT32 & | numRows () const |
const unsigned C_INT32 & | numCols () const |
unsigned C_INT32 | numNonZeros () const |
const std::vector< std::vector < CSparseMatrixElement * > > & | getColumns () const |
std::vector< std::vector < CSparseMatrixElement * > > & | getColumns () |
const std::vector< std::vector < CSparseMatrixElement * > > & | getRows () const |
std::vector< std::vector < CSparseMatrixElement * > > & | getRows () |
CSparseMatrix & | operator= (const CCompressedColumnFormat &ccf) |
CSparseMatrix & | operator= (const CMatrix< C_FLOAT64 > &matrix) |
operator const CMatrix< C_FLOAT64 > () const | |
bool | setTreshold (const C_FLOAT64 &threshold) |
const C_FLOAT64 & | getTreshold () const |
CSparseMatrixElement & | operator() (const unsigned C_INT32 &row, const unsigned C_INT32 &col) |
const CSparseMatrixElement & | operator() (const unsigned C_INT32 &row, const unsigned C_INT32 &col) const |
bool | insert (const unsigned C_INT32 &row, const unsigned C_INT32 &col, const C_FLOAT64 &value) |
bool | remove (const unsigned C_INT32 &row, const unsigned C_INT32 &col) |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CSparseMatrix &A) |
CSparseMatrix::CSparseMatrix | ( | const unsigned C_INT32 & | rows = 0 , |
const unsigned C_INT32 & | cols = 0 |
||
) |
CSparseMatrix::CSparseMatrix | ( | const CCompressedColumnFormat & | ccf | ) |
CSparseMatrix::~CSparseMatrix | ( | ) |
const std::vector< std::vector< CSparseMatrixElement * > > & CSparseMatrix::getColumns | ( | ) | const |
std::vector< std::vector< CSparseMatrixElement * > > & CSparseMatrix::getColumns | ( | ) |
const std::vector< std::vector< CSparseMatrixElement * > > & CSparseMatrix::getRows | ( | ) | const |
std::vector< std::vector< CSparseMatrixElement * > > & CSparseMatrix::getRows | ( | ) |
const C_FLOAT64 & CSparseMatrix::getTreshold | ( | ) | const |
bool CSparseMatrix::insert | ( | const unsigned C_INT32 & | row, |
const unsigned C_INT32 & | col, | ||
const C_FLOAT64 & | value | ||
) |
const unsigned C_INT32 & CSparseMatrix::numCols | ( | ) | const |
unsigned C_INT32 CSparseMatrix::numNonZeros | ( | ) | const |
const unsigned C_INT32 & CSparseMatrix::numRows | ( | ) | const |
CSparseMatrix::operator const CMatrix< C_FLOAT64 > | ( | ) | const |
CSparseMatrixElement & CSparseMatrix::operator() | ( | const unsigned C_INT32 & | row, |
const unsigned C_INT32 & | col | ||
) |
const CSparseMatrixElement & CSparseMatrix::operator() | ( | const unsigned C_INT32 & | row, |
const unsigned C_INT32 & | col | ||
) | const |
CSparseMatrix & CSparseMatrix::operator= | ( | const CCompressedColumnFormat & | ccf | ) |
CSparseMatrix & CSparseMatrix::operator= | ( | const CMatrix< C_FLOAT64 > & | matrix | ) |
bool CSparseMatrix::remove | ( | const unsigned C_INT32 & | row, |
const unsigned C_INT32 & | col | ||
) |
bool CSparseMatrix::resize | ( | const unsigned C_INT32 & | rows, |
const unsigned C_INT32 & | columns | ||
) |
bool CSparseMatrix::setTreshold | ( | const C_FLOAT64 & | threshold | ) |
std::ostream& operator<< | ( | std::ostream & | os, |
const CSparseMatrix & | A | ||
) | [friend] |