|
| | MatrixSquare (int nrow=0) |
| |
| | MatrixSquare (const MatrixSquare &r) |
| |
| | MatrixSquare (const AMatrix &m) |
| |
| MatrixSquare & | operator= (const MatrixSquare &r) |
| |
| virtual | ~MatrixSquare () |
| |
| virtual double | determinant (void) const |
| | ICloneable interface.
|
| |
| bool | isSquare (bool printWhyNot=false) const override |
| |
| bool | mustBeSymmetric () const override |
| |
| int | getNSize () const |
| |
| void | resetFromVVD (const VectorVectorDouble &tab, bool byCol=true) override |
| | Reset the matrix from an array of double values.
|
| |
| double | trace () const |
| |
| void | innerMatrix (const MatrixSquare &x, const AMatrix &r1, const AMatrix &r2) |
| |
| void | prodDiagByVector (const VectorDouble &diag) |
| |
| void | divideDiagByVector (const VectorDouble &diag) |
| |
| void | prodByDiagInPlace (int mode, const VectorDouble &c) |
| |
| double | normVec (const VectorDouble &vec) |
| |
| int | decomposeLU (MatrixSquare &tls, MatrixSquare &tus, double eps=EPSILON20) |
| |
| | MatrixDense (int nrow=0, int ncol=0) |
| |
| | MatrixDense (const MatrixDense &r) |
| |
| | MatrixDense (const AMatrix &r) |
| |
| MatrixDense & | operator= (const MatrixDense &r) |
| |
| virtual | ~MatrixDense () |
| |
| bool | isDense () const override |
| | Cloneable interface.
|
| |
| bool | isSparse () const override |
| |
| void | setValue (int irow, int icol, double value, bool flagCheck=false) override |
| |
| virtual double | getValue (int irow, int icol, bool flagCheck=false) const override |
| |
| void | updValue (int irow, int icol, const EOperator &oper, double value, bool flagCheck=false) override |
| |
| virtual void | setColumn (int icol, const VectorDouble &tab, bool flagCheck=false) override |
| |
| virtual void | setRow (int irow, const VectorDouble &tab, bool flagCheck=false) override |
| |
| virtual void | setDiagonal (const VectorDouble &tab, bool flagCheck=false) override |
| |
| virtual void | setDiagonalToConstant (double value=1.) override |
| |
| virtual void | addScalar (double v) override |
| |
| virtual void | addScalarDiag (double v) override |
| |
| virtual void | prodScalar (double v) override |
| |
| virtual void | fill (double value) override |
| |
| virtual void | multiplyRow (const VectorDouble &vec) override |
| |
| virtual void | multiplyColumn (const VectorDouble &vec) override |
| |
| virtual void | divideRow (const VectorDouble &vec) override |
| |
| virtual void | divideColumn (const VectorDouble &vec) override |
| |
| virtual VectorDouble | prodVecMat (const VectorDouble &x, bool transpose=false) const override |
| |
| virtual VectorDouble | prodMatVec (const VectorDouble &x, bool transpose=false) const override |
| |
| virtual VectorDouble | getRow (int irow) const override |
| |
| virtual VectorDouble | getColumn (int icol) const override |
| |
| constvect | getColumnPtr (int icol) const |
| |
| virtual void | prodMatMatInPlace (const AMatrix *x, const AMatrix *y, bool transposeX=false, bool transposeY=false) override |
| |
| void | addMatInPlace (const MatrixDense &y, double cx=1., double cy=1.) |
| | The next functions use specific definition of matrix (to avoid dynamic_cast) rather than manipulating AMatrix. They are not generic of AMatrix anymore. WARNING: output matrix should not match any of input matrices (speed up).
|
| |
| virtual void | prodNormMatMatInPlace (const MatrixDense *a, const MatrixDense *m, bool transpose=false) |
| |
| virtual void | prodNormMatVecInPlace (const MatrixDense &a, const VectorDouble &vec=VectorDouble(), bool transpose=false) |
| |
| VectorDouble | getEigenValues () const |
| |
| const MatrixSquare * | getEigenVectors () const |
| |
| int | invert2 (MatrixDense &res) const |
| |
| void | unsample (const AMatrix *A, const VectorInt &rowFetch, const VectorInt &colFetch, bool flagInvertRow=false, bool flagInvertCol=false) |
| | Set the values contained in 'A' into the current matrix.
|
| |
| MatrixDense | compressMatLC (const MatrixDense &matLC, bool transpose=false) |
| | Perform the compressing product, according to 'transpose'.
|
| |
| void | addRow (int nrow_added=1) |
| |
| void | addColumn (int ncolumn_added=1) |
| |
| constvect | getViewOnColumn (int icol) const |
| |
| vect | getViewOnColumnModify (int icol) |
| |
| Eigen::Map< const Eigen::MatrixXd > | getEigenMat () const |
| |
| Eigen::Map< Eigen::MatrixXd > | getEigenMat () |
| |
| | AMatrix (int nrow=0, int ncol=0) |
| |
| | AMatrix (const AMatrix &m) |
| |
| AMatrix & | operator= (const AMatrix &m) |
| |
| virtual | ~AMatrix () |
| |
| virtual void | reset (int nrows, int ncols) |
| |
| virtual void | resetFromValue (int nrows, int ncols, double value) |
| | Reset the matrix to new dimensions and fill with a new value.
|
| |
| virtual void | resetFromArray (int nrows, int ncols, const double *tab, bool byCol=true) |
| | Reset the matrix from an array of double values.
|
| |
| virtual void | resetFromVD (int nrows, int ncols, const VectorDouble &tab, bool byCol=true) |
| | Reset the matrix from a vector of double values.
|
| |
| virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
| | Interface to AStringable.
|
| |
| void | clear () |
| |
| virtual bool | isValid (int irow, int icol, bool printWhyNot=false) const |
| |
| virtual bool | isIdentity (bool printWhyNot=false) const |
| |
| virtual bool | isSymmetric (double eps=EPSILON10, bool printWhyNot=false) const |
| |
| virtual void | transposeInPlace () |
| |
| virtual AMatrix * | transpose () const |
| |
| virtual NF_Triplet | getMatrixToTriplet (int shiftRow=0, int shiftCol=0) const |
| |
| void | addMatInPlace (const AMatrix &y, double cx=1., double cy=1.) |
| |
| void | prodMatInPlace (const AMatrix *matY, bool transposeY=false) |
| |
| void | prodNormMatMatInPlace (const AMatrix *a, const AMatrix *m, bool transpose=false) |
| |
| void | prodNormMatVecInPlace (const AMatrix &a, const VectorDouble &vec=VectorDouble(), bool transpose=false) |
| |
| void | resize (int nrows, int ncols) |
| | Resize the matrix to new dimensions (this method doesn't change the storage type)
|
| |
| void | addValue (int irow, int icol, double value) |
| |
| bool | isSame (const AMatrix &m, double eps=EPSILON4, bool printWhyNot=false) |
| |
| bool | isSameSize (const AMatrix &m) const |
| |
| bool | empty () const |
| |
| double | compare (const AMatrix &mat) const |
| |
| int | getNRows () const |
| |
| int | getNCols () const |
| |
| int | size () const |
| |
| VectorDouble | getValues (bool byCol=true) const |
| |
| VectorDouble | getDiagonal (int shift=0) const |
| |
| bool | isColumnDefined (int icol) const |
| |
| bool | isRowDefined (int irow) const |
| |
| int | getNColDefined () const |
| |
| int | getNRowDefined () const |
| |
| VectorDouble | getColumnByRowRange (int icol, int rowFrom, int rowTo) const |
| |
| bool | isNonNegative (bool verbose=false) const |
| |
| void | prodMatVecInPlace (const VectorDouble &x, VectorDouble &y, bool transpose=false) const |
| |
| int | prodMatVecInPlace (const constvect x, vect y, bool transpose=false) const |
| |
| void | prodMatVecInPlacePtr (const double *x, double *y, bool transpose=false) const |
| |
| void | prodVecMatInPlace (const VectorDouble &x, VectorDouble &y, bool transpose=false) const |
| |
| void | prodVecMatInPlacePtr (const double *x, double *y, bool transpose=false) const |
| |
| 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 | dumpStatistics (const String &title) const |
| |
| void | setIdentity (double value=1.) |
| |
| void | fillRandom (int seed=432432, double zeroPercent=0) |
| |
| void | setValues (const VectorDouble &values, bool byCol=true) |
| |
| double | getMeanByColumn (int icol) const |
| |
| double | getMinimum () const |
| |
| double | getMaximum () const |
| |
| double | getNormInf () const |
| |
| void | copyReduce (const AMatrix *x, const VectorInt &validRows, const VectorInt &validCols) |
| |
| void | copyElements (const AMatrix &m, double factor=1.) |
| |
| void | setFlagCheckAddress (bool flagCheckAddress) |
| |
| void | makePositiveColumn () |
| |
| void | linearCombination (double val1, const AMatrix *mat1, double val2=1., const AMatrix *mat2=nullptr, double val3=1., const AMatrix *mat3=nullptr) |
| | Perfom the algebraic equation this = val1 * mat1 + val2 * mat2 + val3 * mat3.
|
| |
| virtual int | addProdMatVecInPlace (const constvect x, vect y, bool transpose=false) const |
| |
| double | operator() (int row, int col) const |
| |
| double & | operator() (int row, int col) |
| |
| virtual bool | needToReset (int nrows, int ncols) |
| |
| | 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 |
| |