| 
    COPASI API
    4.40.278
    
   | 
 
#include <CSparseMatrix.h>
Public Member Functions | |
| CSparseMatrix (const CCompressedColumnFormat &ccf) | |
| CSparseMatrix (const size_t &rows=0, const size_t &cols=0) | |
| 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 () const | 
| const C_FLOAT64 & | getTreshold () const | 
| bool | insert (const size_t &row, const size_t &col, const C_FLOAT64 &value) | 
| const size_t & | numCols () const | 
| size_t | numNonZeros () const | 
| const size_t & | numRows () const | 
| operator const CMatrix< C_FLOAT64 > () const | |
| CSparseMatrixElement & | operator() (const size_t &row, const size_t &col) | 
| const CSparseMatrixElement & | operator() (const size_t &row, const size_t &col) const | 
| CSparseMatrix & | operator= (const CCompressedColumnFormat &ccf) | 
| CSparseMatrix & | operator= (const CMatrix< C_FLOAT64 > &matrix) | 
| bool | remove (const size_t &row, const size_t &col) | 
| bool | resize (const size_t &rows, const size_t &columns) | 
| bool | setTreshold (const C_FLOAT64 &threshold) | 
| ~CSparseMatrix () | |
Private Member Functions | |
| void | cleanup () | 
Private Attributes | |
| std::vector< size_t > | mColIndex | 
| std::vector< std::vector< CSparseMatrixElement * > > | mCols | 
| CSparseMatrixElement | mElement | 
| size_t | mNumCols | 
| size_t | mNumRows | 
| std::vector< size_t > | mRowIndex | 
| std::vector< std::vector< CSparseMatrixElement * > > | mRows | 
| size_t | mSearchCol | 
| size_t | mSearchRow | 
| C_FLOAT64 | mThreshold | 
Friends | |
| std::ostream & | operator<< (std::ostream &os, const CSparseMatrix &A) | 
| CSparseMatrix::CSparseMatrix | ( | const size_t & | rows = 0,  | 
        
| const size_t & | cols = 0  | 
        ||
| ) | 
References resize().
| CSparseMatrix::CSparseMatrix | ( | const CCompressedColumnFormat & | ccf | ) | 
| CSparseMatrix::~CSparseMatrix | ( | ) | 
References cleanup().
      
  | 
  private | 
References mRows.
Referenced by ~CSparseMatrix().
| std::vector< std::vector< CSparseMatrixElement * > > & CSparseMatrix::getColumns | ( | ) | 
References mCols.
| const std::vector< std::vector< CSparseMatrixElement * > > & CSparseMatrix::getColumns | ( | ) | const | 
References mCols.
Referenced by CCompressedColumnFormat::operator=().
| std::vector< std::vector< CSparseMatrixElement * > > & CSparseMatrix::getRows | ( | ) | 
References mRows.
| const std::vector< std::vector< CSparseMatrixElement * > > & CSparseMatrix::getRows | ( | ) | const | 
References mRows.
| const C_FLOAT64 & CSparseMatrix::getTreshold | ( | ) | const | 
References mThreshold.
Referenced by CSparseMatrixElement::operator=().
| bool CSparseMatrix::insert | ( | const size_t & | row, | 
| const size_t & | col, | ||
| const C_FLOAT64 & | value | ||
| ) | 
References CSparseMatrixElement::compareCol(), CSparseMatrixElement::compareRow(), mColIndex, mCols, mElement, mRowIndex, mRows, mSearchCol, and mSearchRow.
Referenced by CSparseMatrixElement::operator=().
| const size_t & CSparseMatrix::numCols | ( | ) | const | 
References mNumCols.
Referenced by CCompressedColumnFormat::operator=().
| size_t CSparseMatrix::numNonZeros | ( | ) | const | 
References mRows.
Referenced by CCompressedColumnFormat::operator=().
| const size_t & CSparseMatrix::numRows | ( | ) | const | 
References mNumRows.
Referenced by CCompressedColumnFormat::operator=().
References CMatrix< CType >::array(), C_FLOAT64, and CMatrix< CType >::resize().
| CSparseMatrixElement & CSparseMatrix::operator() | ( | const size_t & | row, | 
| const size_t & | col | ||
| ) | 
References CSparseMatrixElement::compareRow(), mCols, mElement, mSearchCol, and mSearchRow.
| const CSparseMatrixElement & CSparseMatrix::operator() | ( | const size_t & | row, | 
| const size_t & | col | ||
| ) | const | 
References CSparseMatrixElement::compareRow(), mCols, mElement, mSearchCol, and mSearchRow.
| CSparseMatrix & CSparseMatrix::operator= | ( | const CCompressedColumnFormat & | ccf | ) | 
References C_FLOAT64, CSparseMatrixElement::compareCol(), CCompressedColumnFormat::getColumnStart(), CCompressedColumnFormat::getRowIndex(), CCompressedColumnFormat::getValues(), mColIndex, mCols, mNumCols, mNumRows, mRowIndex, mRows, CCompressedColumnFormat::numCols(), CCompressedColumnFormat::numRows(), and resize().
| CSparseMatrix & CSparseMatrix::operator= | ( | const CMatrix< C_FLOAT64 > & | matrix | ) | 
| bool CSparseMatrix::remove | ( | const size_t & | row, | 
| const size_t & | col | ||
| ) | 
References CSparseMatrixElement::compareCol(), CSparseMatrixElement::compareRow(), mCols, mElement, mRows, mSearchCol, and mSearchRow.
Referenced by CSparseMatrixElement::operator=(), and setTreshold().
| bool CSparseMatrix::resize | ( | const size_t & | rows, | 
| const size_t & | columns | ||
| ) | 
References mColIndex, mCols, mNumCols, mNumRows, mRowIndex, and mRows.
Referenced by CSparseMatrix(), and operator=().
| bool CSparseMatrix::setTreshold | ( | const C_FLOAT64 & | threshold | ) | 
References mRows, mThreshold, and remove().
      
  | 
  friend | 
      
  | 
  private | 
Referenced by insert(), operator=(), and resize().
      
  | 
  private | 
Referenced by getColumns(), insert(), operator()(), operator=(), remove(), and resize().
      
  | 
  private | 
Referenced by insert(), operator()(), and remove().
      
  | 
  private | 
Referenced by numCols(), operator=(), and resize().
      
  | 
  private | 
Referenced by numRows(), operator=(), and resize().
      
  | 
  private | 
Referenced by insert(), operator=(), and resize().
      
  | 
  private | 
Referenced by cleanup(), getRows(), insert(), numNonZeros(), operator=(), remove(), resize(), and setTreshold().
      
  | 
  private | 
Referenced by insert(), operator()(), and remove().
      
  | 
  private | 
Referenced by insert(), operator()(), and remove().
      
  | 
  private | 
Referenced by getTreshold(), operator=(), and setTreshold().