COPASI API
4.40.278
|
#include <CStepMatrix.h>
Public Types | |
typedef CStepMatrixColumn *const * | const_iterator |
Public Member Functions | |
void | add (CStepMatrixColumn *pColumn) |
CStepMatrixColumn * | addColumn (const CZeroSet &set, const CStepMatrixColumn *pPositive, const CStepMatrixColumn *pNegative) |
const_iterator | begin () const |
void | compact () |
void | convertRow () |
CStepMatrix (CMatrix< C_INT64 > &nullspaceMatrix) | |
CStepMatrix (size_t rows) | |
const_iterator | end () const |
void | getAllUnsetBitIndexes (const CStepMatrixColumn *pColumn, CVector< size_t > &indexes) const |
size_t | getFirstUnconvertedRow () const |
size_t | getNumUnconvertedRows () const |
void | getUnsetBitIndexes (const CStepMatrixColumn *pColumn, CVector< size_t > &indexes) const |
void | removeColumn (CStepMatrixColumn *pColumn) |
void | removeInvalidColumns (std::vector< CStepMatrixColumn * > &invalidColumns) |
bool | splitColumns (std::vector< CStepMatrixColumn * > &PositiveColumns, std::vector< CStepMatrixColumn * > &NegativeColumns, std::vector< CStepMatrixColumn * > &NullColumns) |
~CStepMatrix () | |
Private Types | |
typedef CStepMatrixColumn ** | iterator |
Private Types inherited from CVectorCore< CType > | |
typedef CType | elementType |
Private Member Functions | |
void | convertRow (const size_t &index, CMatrix< C_INT64 > &nullspaceMatrix) |
CStepMatrix () | |
Private Member Functions inherited from CVector< CStepMatrixColumn * > | |
CVector (const CVector< CStepMatrixColumn * > &src) | |
CVector (const CVectorCore< CStepMatrixColumn * > &src) | |
CVector (size_t size=0) | |
CVector< CStepMatrixColumn * > & | operator= (const CStepMatrixColumn * &value) |
CVector< CStepMatrixColumn * > & | operator= (const CVector< CStepMatrixColumn * > &rhs) |
CVector< CStepMatrixColumn * > & | operator= (const CVectorCore< CStepMatrixColumn * > &rhs) |
void | resize (size_t size, const bool ©=false) |
virtual | ~CVector () |
void | copy (const CVectorCore< CStepMatrixColumn * > &rhs) |
Private Member Functions inherited from CVectorCore< CType > | |
bool | applyPivot (const CVectorCore< size_t > &pivot) |
CType * | array () |
const CType * | array () const |
CType * | begin () |
const CType * | begin () const |
CVectorCore (const size_t &size=0, CType *buffer=NULL) | |
CType * | end () |
const CType * | end () const |
void | initialize (const CVectorCore< CType > &src) |
void | initialize (const size_t &size, const CType *vector) |
CType & | operator() (const size_t &row) |
const CType & | operator() (const size_t &row) const |
CVectorCore< CType > & | operator= (const CType &value) |
CVectorCore< CType > & | operator= (const CVectorCore< CType > &rhs) |
bool | operator== (const CVectorCore< CType > &rhs) const |
CType & | operator[] (const size_t &row) |
const CType & | operator[] (const size_t &row) const |
size_t | size () const |
virtual | ~CVectorCore () |
Private Attributes | |
iterator | mBeyond |
size_t | mFirstUnconvertedRow |
iterator | mInsert |
CVector< size_t > | mPivot |
size_t | mRows |
Private Attributes inherited from CVectorCore< CType > | |
CType * | mpBuffer |
size_t | mSize |
Friends | |
std::ostream & | operator<< (std::ostream &, const CStepMatrix &) |
typedef CStepMatrixColumn* const* CStepMatrix::const_iterator |
|
private |
|
private |
CStepMatrix::CStepMatrix | ( | size_t | rows | ) |
References CVectorCore< CType >::array(), mPivot, and mRows.
CStepMatrix::~CStepMatrix | ( | ) |
References CVectorCore< CType >::array(), and mInsert.
|
inline |
References CVectorCore< CType >::array(), end(), max, mBeyond, mInsert, CVector< CStepMatrixColumn * >::resize(), CStepMatrixColumn::setIterator(), and CVectorCore< CType >::size().
Referenced by addColumn(), and CBitPatternMethod::buildFluxModeMatrix().
CStepMatrixColumn * CStepMatrix::addColumn | ( | const CZeroSet & | set, |
const CStepMatrixColumn * | pPositive, | ||
const CStepMatrixColumn * | pNegative | ||
) |
Add the linear combination of the two columns to the step matrix if appropriate and remove columns if necessary.
const | CZeroSet & set |
const | CStepMatrixColumn * pPositive |
const | CStepMatrixColumn * pNegative |
References add().
Referenced by CBitPatternTreeMethod::combine(), and CBitPatternMethod::combine().
CStepMatrix::const_iterator CStepMatrix::begin | ( | ) | const |
References CVectorCore< CType >::array().
Referenced by CBitPatternMethod::buildFluxModes(), and CBitPatternTreeMethod::buildFluxModes().
void CStepMatrix::compact | ( | ) |
References CVectorCore< CType >::array(), and mInsert.
Referenced by CBitPatternMethod::calculate(), and CBitPatternTreeMethod::calculate().
void CStepMatrix::convertRow | ( | ) |
References CVectorCore< CType >::array(), mFirstUnconvertedRow, and mInsert.
Referenced by CBitPatternMethod::calculate(), CBitPatternTreeMethod::calculate(), CStepMatrix(), and splitColumns().
References CVectorCore< CType >::array(), C_INT64, mFirstUnconvertedRow, mInsert, and mPivot.
CStepMatrix::const_iterator CStepMatrix::end | ( | ) | const |
References mInsert.
Referenced by add(), CBitPatternMethod::buildFluxModes(), CBitPatternTreeMethod::buildFluxModes(), and removeInvalidColumns().
void CStepMatrix::getAllUnsetBitIndexes | ( | const CStepMatrixColumn * | pColumn, |
CVector< size_t > & | indexes | ||
) | const |
References CVectorCore< CType >::array(), CStepMatrixColumn::getAllUnsetBitIndexes(), mPivot, and CVectorCore< CType >::size().
Referenced by CBitPatternMethod::getAllUnsetBitIndexes().
size_t CStepMatrix::getFirstUnconvertedRow | ( | ) | const |
References mFirstUnconvertedRow.
Referenced by CBitPatternMethod::calculate(), and CBitPatternTreeMethod::calculate().
size_t CStepMatrix::getNumUnconvertedRows | ( | ) | const |
References mFirstUnconvertedRow, and mRows.
Referenced by CBitPatternMethod::calculate(), CBitPatternTreeMethod::calculate(), CBitPatternMethod::initialize(), and CBitPatternTreeMethod::initialize().
void CStepMatrix::getUnsetBitIndexes | ( | const CStepMatrixColumn * | pColumn, |
CVector< size_t > & | indexes | ||
) | const |
References CVectorCore< CType >::array(), CZeroSet::getNumberOfUnsetBits(), CStepMatrixColumn::getZeroSet(), CZeroSet::isSet(), mPivot, CVector< CType >::resize(), and CVectorCore< CType >::size().
Referenced by CBitPatternMethod::getUnsetBitIndexes(), and CBitPatternTreeMethod::getUnsetBitIndexes().
void CStepMatrix::removeColumn | ( | CStepMatrixColumn * | pColumn | ) |
Referenced by CBitPatternTreeMethod::combine(), CBitPatternMethod::combine(), and removeInvalidColumns().
void CStepMatrix::removeInvalidColumns | ( | std::vector< CStepMatrixColumn * > & | invalidColumns | ) |
bool CStepMatrix::splitColumns | ( | std::vector< CStepMatrixColumn * > & | PositiveColumns, |
std::vector< CStepMatrixColumn * > & | NegativeColumns, | ||
std::vector< CStepMatrixColumn * > & | NullColumns | ||
) |
References CVectorCore< CType >::array(), C_INT64, convertRow(), and mInsert.
Referenced by CBitPatternMethod::calculate(), and CBitPatternTreeMethod::calculate().
|
friend |
|
private |
Referenced by add(), and CStepMatrix().
|
private |
Referenced by convertRow(), CStepMatrix(), getFirstUnconvertedRow(), and getNumUnconvertedRows().
|
private |
Referenced by add(), compact(), convertRow(), CStepMatrix(), end(), splitColumns(), and ~CStepMatrix().
|
private |
Referenced by convertRow(), CStepMatrix(), getAllUnsetBitIndexes(), and getUnsetBitIndexes().
|
private |
Referenced by CStepMatrix(), and getNumUnconvertedRows().