|
| | MatrixRectangular (int nrow=0, int ncol=0, bool sparse=false) |
| |
| | MatrixRectangular (const MatrixRectangular &m) |
| |
| MatrixRectangular & | operator= (const MatrixRectangular &r) |
| |
| virtual | ~MatrixRectangular () |
| |
| bool | mustBeSymmetric () const override |
| | Cloneable interface. More...
|
| |
| bool | mustBeDiagonal () const override |
| |
| bool | mustBeDiagCst () const override |
| |
| void | addRow (int nrow_added=1) |
| |
| void | addColumn (int ncolumn_added=1) |
| |
| MatrixRectangular * | reduce (const VectorInt &validRows, const VectorInt &validCols) const |
| |
| virtual | ~AMatrix () |
| |
| void | init (int nrows, int ncols, bool sparse=false) |
| |
| int | getNRows () const |
| |
| int | getNCols () const |
| |
| int | getNTotal () const |
| |
| virtual double | getValue (int irow, int icol) const |
| |
| virtual double | getValue (int rank) const |
| |
| virtual double & | getValueRef (int irow, int icol) |
| |
| VectorDouble | getValues () const |
| |
| void | getValuesAsTriplets (VectorInt &irows, VectorInt &icols, VectorDouble &values) const |
| |
| VectorDouble | getDiagonal (int shift=0) const |
| |
| VectorDouble | getRow (int irow) const |
| |
| VectorDouble | getColumn (int icol) 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.) |
| |
| 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.) |
| |
| const cs * | getCs () const |
| |
| Triplet | getCsToTriplet (bool flag_from_1=false) const |
| |
| bool | isSameSize (const AMatrix &m) const |
| |
| bool | isSparse () const |
| |
| bool | isEmpty () const |
| |
| 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 |
| |
| bool | isSame (const AMatrix &m, double eps=EPSILON10) |
| |
| void | reset (int nrows, int ncols, bool sparse=false) |
| |
| void | reset (int nrows, int ncols, double value, bool sparse=false) |
| |
| void | reset (int nrows, int ncols, const double *tab, bool sparse=false) |
| |
| void | reset (int nrows, int ncols, const VectorDouble &tab, bool sparse=false, bool flagByRow=true) |
| |
| void | reset (const VectorVectorDouble &tab, bool flagByRow=true) |
| |
| double | compare (const AMatrix &mat) const |
| |
| void | toSparseInPlace () |
| |
| AMatrix * | toSparse () const |
| |
| virtual void | transposeInPlace () |
| |
| virtual AMatrix * | transpose () const |
| |
| virtual void | addScalar (double v) |
| |
| virtual void | addScalarDiag (double v) |
| |
| virtual void | prodScalar (double v) |
| |
| 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) |
| |
| 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) |
| |
| int | invert () |
| |
| int | solve (const VectorDouble &b, VectorDouble &x) const |
| |
| void | dumpElements (const String &title, int ifrom, int ito) const |
| |
| virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
| |
| virtual void | setValue (int irow, int icol, double value) |
| |
| virtual void | setValue (int rank, double value) |
| |
| void | setIdentity (double value=1.) |
| |
| void | fill (double value) |
| |
| void | fillRandom (int seed=432432, double zeroPercent=0.1) |
| |
| void | setValuesOldStyle (const double *values, bool byCol=true) |
| |
| void | setValues (const VectorDouble &values, bool byCol=true) |
| |
| void | setValuesByArrays (const VectorInt &irows, const VectorInt &icols, const VectorDouble &values) |
| |
| double | getMeanByColumn (int icol) const |
| |
| double | getMinimum () const |
| |
| double | getMaximum () const |
| |
| void | copyReduce (const AMatrix *x, const VectorInt &validRows, const VectorInt &validCols) |
| |
| 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 |
| |
Rectangular matrices are stored by columns