Implementation


Matrix
Generic matrix
template <class XXCOEFF> Matrix <XXCOEFF> ::~Matrix(void)
Destructor. Do nothing.
template <class XXCOEFF> Matrix <XXCOEFF> ::Matrix(int NRows, int NCols)
Constructor of a $m\times n$ matrix, with zero entries.
::Matrix
Initialisation of a matrix from a list of coefficients Ex : Matrix<XXCOEFF> A(2,2, 1
::Matrix
Initialisation of a matrix from an array
::Matrix
Initialisation of submatrix from a bigger matrix
template <class XXCOEFF> XXCOEFF& Matrix <XXCOEFF> ::coeff(int ipos, int jpos)
Coefficient of the matrix.
template <class XXCOEFF> XXCOEFF Matrix <XXCOEFF> ::coeff(int ipos, int jpos)
Coefficient of the matrix.
template <class XXCOEFF> XXCOEFF& Matrix <XXCOEFF> ::operator ()(int ipos, int jpos)
Coefficient of the matrix. Operator based of the method coeff.
template <class XXCOEFF> XXCOEFF Matrix <XXCOEFF> ::operator ()(int ipos, int jpos)
Coefficient of the matrix. Operator based of the method coeff.
template <class XXCOEFF> boolean operator==(const Matrix<XXCOEFF> &M, const Matrix<XXCOEFF> &N)
Equality operator.
template <class XXCOEFF> boolean operator!=(const Matrix<XXCOEFF> &M, const Matrix<XXCOEFF> &N)
Inequality operator.
::isRowNull
Test wether the row of index Row is null
::isColNull
Test wether the column of index Col is null
IsNull
Test wether of the coefficients of the matrix are null
template <class XXCOEFF> Matrix <XXCOEFF> & Matrix <XXCOEFF> ::operator
Inplace addition of a matrix.
template <class XXCOEFF> Matrix <XXCOEFF> & Matrix <XXCOEFF> ::operator
Inplace substraction of a matrix.
template <class XXCOEFF> Matrix <XXCOEFF> & Matrix <XXCOEFF> ::operator*
Inplace multiplication by a matrix
template <class XXCOEFF> Matrix <XXCOEFF> & Matrix <XXCOEFF> ::operator*
Inplace multiplication by a scalar.
template <class XXCOEFF> Matrix <XXCOEFF> & Matrix <XXCOEFF> ::operator
Inplace division by a scalar.
template <class XXCOEFF> Matrix <XXCOEFF> & operator+(const Matrix<XXCOEFF> &M, const Matrix<XXCOEFF> &N)
Addition operator.
template <class XXCOEFF> Matrix <XXCOEFF> & operator-(const Matrix<XXCOEFF> &M)
Substraction unitary operator.
template <class XXCOEFF> Matrix <XXCOEFF> & operator-(const Matrix<XXCOEFF> &M, const Matrix<XXCOEFF> &N)
Subtraction binary operator.
::Mult
Basic method for the multiplication of matrices
template <class XXCOEFF> Matrix <XXCOEFF> & operator*(const Matrix<XXCOEFF> &M, const Matrix<XXCOEFF> &N)
Operator of multiplication.
template <class XXCOEFF> void Matrix <XXCOEFF> ::RightMult(const Matrix<XXCOEFF> &M)
Right multiplication by a matrix.
template <class XXCOEFF> void Matrix <XXCOEFF> ::LeftMult(const Matrix<XXCOEFF> &M)
Left multiplication by a matrix.
template <class XXCOEFF> Matrix <XXCOEFF> & operator*(const COEFF& val, const Matrix<XXCOEFF> &M)
Left multiplication by a scalar.
template <class XXCOEFF> Matrix <XXCOEFF> & Matrix <XXCOEFF> ::operator*(const XXCOEFF& val)
Left multiplication by a scalar.
template <class XXCOEFF> Matrix <XXCOEFF> & Matrix <XXCOEFF> ::operator(const XXCOEFF & val)
Right division by a scalar.
template <class XXCOEFF> ostream& operator<< (ostream& os, const Matrix<XXCOEFF> &M)
Output operator.
::transpose
Transposition of a matrix
template <class XXCOEFF> void Matrix <XXCOEFF> ::addRow(unsigned int Lig1, unsigned int Lig2, const XXCOEFF & Lambda)
Inplace Addition of rows : Lig1 = Lig1 + Lig2*Lambda
template <class XXCOEFF> void Matrix <XXCOEFF> ::addCol(unsigned int Col1, unsigned int Col2, const XXCOEFF & Lambda)
Inplace addition of columns : Col1 = Col1 + Col2*Lambda

alphabetic index hierarchy of classes


Partially supported by FRISCO LTR 21.024
For more information

generated by doc++