|
| MatrixSparse (int nrow=0, int ncol=0) |
|
| MatrixSparse (const cs *A) |
|
| MatrixSparse (const MatrixSparse &m) |
|
MatrixSparse & | operator= (const MatrixSparse &m) |
|
virtual | ~MatrixSparse () |
|
void | init (int nrows, int ncols) |
| Cloneable interface. More...
|
|
void | getValuesAsTriplets (VectorInt &irows, VectorInt &icols, VectorDouble &values) const |
|
const cs * | getCs () const |
|
Triplet | getCsToTriplet (bool flag_from_1=false) const |
|
bool | isSparse () const |
|
void | reset (int nrows, int ncols) |
|
void | reset (int nrows, int ncols, double value) |
|
void | reset (int nrows, int ncols, const double *tab, bool byCol=true) |
|
void | reset (int nrows, int ncols, const VectorDouble &tab, bool byCol=true) |
|
void | reset (const VectorVectorDouble &tab, bool byCol=true) |
|
virtual MatrixSparse * | transpose () const override |
|
virtual void | addScalar (double v) override |
|
virtual void | addScalarDiag (double v) override |
|
virtual void | prodScalar (double v) override |
|
void | addMatrix (const MatrixSparse &y) |
|
void | prodMatrix (const MatrixSparse &x, const MatrixSparse &y) |
|
void | linearCombination (double cx, double cy, const MatrixSparse &y) |
|
void | dumpElements (const String &title, int ifrom, int ito) const |
|
virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
|
void | fill (double value) |
|
void | fillRandom (int seed=432432, double zeroPercent=0.1) |
|
void | setValuesByArrays (const VectorInt &irows, const VectorInt &icols, const VectorDouble &values) override |
|
virtual | ~AMatrix () |
|
void | init (int nrows, int ncols) |
|
void | reset (int nrows, int ncols, double value=0.) |
|
void | resetFromArray (int nrows, int ncols, const double *tab, bool byCol=true) |
|
void | resetFromVD (int nrows, int ncols, const VectorDouble &tab, bool byCol=true) |
|
void | resetFromVVD (const VectorVectorDouble &tab, bool byCol=true) |
|
virtual void | setColumn (int icol, const VectorDouble &tab) |
|
virtual void | setRow (int irow, const VectorDouble &tab) |
|
virtual void | setDiagonal (const VectorDouble &tab) |
|
virtual void | setDiagonal (double value=1.) |
|
virtual bool | isSquare (bool printWhyNot=false) const |
|
virtual bool | isValid (int irow, int icol, bool printWhyNot=false) const |
|
virtual bool | isIdentity (bool printWhyNot=false) const |
|
virtual bool | isSymmetric (bool printWhyNot=false) const |
|
virtual bool | isDiagonal (bool printWhyNot=false) const |
|
virtual bool | isDiagCst (bool printWhyNot=false) const |
|
virtual bool | mustBeSymmetric () const |
|
virtual bool | mustBeDiagonal () const |
|
virtual bool | mustBeDiagCst () const |
|
virtual void | transposeInPlace () |
|
virtual double | getValue (int irow, int icol) const |
|
virtual double & | getValueRef (int irow, int icol) |
|
virtual void | setValue (int irow, int icol, double value) |
|
virtual void | addMatrix (const AMatrix &y) |
|
virtual void | prodMatrix (const AMatrix &x, const AMatrix &y) |
|
virtual void | linearCombination (double cx, double cy, const AMatrix &y) |
|
bool | isSame (const AMatrix &m, double eps=EPSILON10) |
|
bool | isSameSize (const AMatrix &m) const |
|
bool | isEmpty () const |
|
double | compare (const AMatrix &mat) const |
|
int | getNRows () const |
|
int | getNCols () const |
|
int | getNTotal () const |
|
VectorDouble | getValues (bool byCol=true) const |
|
VectorDouble | getDiagonal (int shift=0) const |
|
VectorDouble | getRow (int irow) const |
|
VectorDouble | getColumn (int icol) const |
|
bool | isColumnDefined (int icol) const |
|
bool | isRowDefined (int irow) const |
|
int | getNumberColumnDefined () const |
|
int | getNumberRowDefined () const |
|
void | add (int irow, int icol, double value) |
|
void | add (const AMatrix &tab, double value=1.) |
|
void | subtract (const AMatrix &tab, double value=1.) |
|
void | getValuesAsTriplets (VectorInt &irows, VectorInt &icols, VectorDouble &values) const |
|
void | prodVector (const double *inv, double *outv) const |
|
void | prodVector (const VectorDouble &inv, VectorDouble &outv) const |
|
void | multiplyRow (const VectorDouble &vec) |
|
void | multiplyColumn (const VectorDouble &vec) |
|
void | divideRow (const VectorDouble &vec) |
|
void | divideColumn (const VectorDouble &vec) |
|
double | quadraticMatrix (const VectorDouble &x, const VectorDouble &y) |
|
int | invert () |
|
int | solve (const VectorDouble &b, VectorDouble &x) const |
|
void | dumpElements (const String &title, int ifrom, int ito) const |
|
void | setIdentity (double value=1.) |
|
void | fill (double value) |
|
void | fillRandom (int seed=432432, double zeroPercent=0.1) |
|
void | setValues (const VectorDouble &values, bool byCol=true) |
|
double | getMeanByColumn (int icol) const |
|
double | getMinimum () const |
|
double | getMaximum () const |
|
void | copyReduce (const AMatrix *x, const VectorInt &activeRows, const VectorInt &activeCols) |
|
void | setFlagCheckAddress (bool flagCheckAddress) |
|
double | operator() (int row, int col) const |
|
double & | operator() (int row, int col) |
|
| AStringable () |
|
| AStringable (const AStringable &r) |
|
AStringable & | operator= (const AStringable &r) |
|
virtual | ~AStringable () |
|
virtual void | display (const AStringFormat *strfmt=nullptr) const final |
|
virtual void | display (int level) const final |
|
| ICloneable () |
|
virtual | ~ICloneable () |
|
virtual ICloneable * | clone () const =0 |
|
|
virtual double & | _getValueRef (int irow, int icol) override |
|
bool | _isPhysicallyPresent (int irow, int icol) const |
|
bool | _isCompatible (const AMatrix &m) const override |
|
void | _allocate () override |
|
void | _deallocate () override |
|
virtual int | _getMatrixSize () const override |
|
virtual void | _setValue (int rank, double value) override |
|
virtual void | _setValue (int irow, int icol, double value) override |
|
virtual void | _setValues (const double *values, bool byCol) override |
|
virtual double | _getValue (int rank) const override |
|
virtual double | _getValue (int irow, int icol) const override |
|
virtual void | _transposeInPlace () override |
|
virtual void | _prodVector (const double *inv, double *outv) const override |
|
virtual int | _invert () override |
|
virtual int | _solve (const VectorDouble &b, VectorDouble &x) const override |
|
virtual void | _clearContents () |
|
virtual int | _getIndexToRank (int irow, int icol) const override |
|
void | _clear () |
|
| AMatrix (int nrow=0, int ncol=0) |
|
| AMatrix (const AMatrix &m) |
|
AMatrix & | operator= (const AMatrix &m) |
|
void | _setNCols (int ncols) |
|
void | _setNRows (int nrows) |
|
bool | _isNumbersValid (int nrows, int ncols) const |
|
bool | _isColumnValid (int icol) const |
|
bool | _isRowValid (int irow) const |
|
bool | _isIndexValid (int irow, int icol) const |
|
bool | _isRowVectorConsistent (const VectorDouble &tab) |
|
bool | _isColVectorConsistent (const VectorDouble &tab) |
|
bool | _isVectorSizeConsistent (int nrows, int ncols, const VectorDouble &tab) |
|
bool | _isRankValid (int rank) const |
|
void | _clear () |
|
void | _fillFromVVD (const VectorVectorDouble &X) |
|
bool | _getFlagCheckAddress () const |
|