1 #ifndef _fei_EqnBuffer_hpp_
2 #define _fei_EqnBuffer_hpp_
70 int addRHS(
int eqnNumber,
int rhsIndex,
double value,
bool accumulate=
true);
105 int addEqn(
int eqnNumber,
const double* coefs,
const int* indices,
106 int len,
bool accumulate,
bool create_indices_union=
false);
127 int getCoef(
int eqnNumber,
int colIndex,
double& coef);
147 int addIndices(
int eqnNumber,
const int* indices,
int len);
156 const int* indices,
int len,
bool accumulate);
int addEqn(int eqnNumber, const double *coefs, const int *indices, int len, bool accumulate, bool create_indices_union=false)
std::vector< fei::CSVec * > & eqns()
FEI_OSTREAM & operator<<(FEI_OSTREAM &os, EqnBuffer &eq)
EqnBuffer & operator=(const EqnBuffer &src)
std::vector< int > & eqnNumbers()
int addRHS(int eqnNumber, int rhsIndex, double value, bool accumulate=true)
std::vector< double > dummyCoefs_
std::vector< std::vector< double > * > * rhsCoefsPtr()
std::vector< int > eqnNumbers_
int getCoefAndRemoveIndex(int eqnNumber, int colIndex, double &coef)
std::vector< std::vector< double > * > rhsCoefs_
int addEqns(EqnBuffer &inputEqns, bool accumulate)
std::vector< fei::CSVec * > eqns_
int internalAddEqn(int index, const double *coefs, const int *indices, int len, bool accumulate)
std::vector< int > indices_union_
int addIndices(int eqnNumber, const int *indices, int len)
int removeIndex(int eqnNumber, int colIndex)
int getCoef(int eqnNumber, int colIndex, double &coef)
int insertNewEqn(int eqn, int insertPoint)