copasi API  0.1
Public Member Functions | Friends
CSparseMatrix Class Reference

#include <CSparseMatrix.h>

List of all members.

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 ()
CSparseMatrixoperator= (const CCompressedColumnFormat &ccf)
CSparseMatrixoperator= (const CMatrix< C_FLOAT64 > &matrix)
 operator const CMatrix< C_FLOAT64 > () const
bool setTreshold (const C_FLOAT64 &threshold)
const C_FLOAT64 & getTreshold () const
CSparseMatrixElementoperator() (const unsigned C_INT32 &row, const unsigned C_INT32 &col)
const CSparseMatrixElementoperator() (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)

Constructor & Destructor Documentation

CSparseMatrix::CSparseMatrix ( const unsigned C_INT32 &  rows = 0,
const unsigned C_INT32 &  cols = 0 
)
CSparseMatrix::CSparseMatrix ( const CCompressedColumnFormat ccf)
CSparseMatrix::~CSparseMatrix ( )

Member Function Documentation

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)

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CSparseMatrix A 
) [friend]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines