10 #ifndef _HINES_MATRIX_H
11 #define _HINES_MATRIX_H
14 # define ASSERT( isOK, message ) \
16 cerr << "\nERROR: Assert '" << #isOK << "' failed on line " << __LINE__ << "\nin file " << __FILE__ << ": " << message << endl; \
22 # define ASSERT( unused, message ) do {} while ( false )
60 void setup(
const vector< TreeNodeStruct >& tree,
double dt );
63 double getA(
unsigned int row,
unsigned int col )
const;
64 double getB(
unsigned int row )
const;
65 double getVMid(
unsigned int row )
const;
112 const vector< TreeNodeStruct > *
tree_;
113 vector< double >
Ga_;
129 #endif // _HINES_MATRIX_H
double getVMid(unsigned int row) const
map< unsigned int, unsigned int > groupNumber_
vector< double > VMid_
middle of a time step.
vector< unsigned int > children
Hines indices of child compts.
void setup(const vector< TreeNodeStruct > &tree, double dt)
double getB(unsigned int row) const
vector< vdIterator > backOperand_
int stage_
reached. Used in getA.
JunctionStruct(unsigned int i, unsigned int r)
vector< vdIterator > operand_
unsigned int index
Hines index of the compartment.
const vector< TreeNodeStruct > * tree_
setup.
vector< vector< unsigned int > > coupled_
map< unsigned int, vdIterator > operandBase_
bool operator<(const JunctionStruct &other) const
void makeOperands()
elimination easier.
unsigned int getSize() const
vector< JunctionStruct > junction_
vector< double >::iterator vdIterator
double getA(unsigned int row, unsigned int col) const