24 #ifndef ACLMATRIXOFELEMENTS_H 25 #define ACLMATRIXOFELEMENTS_H 35 class MatrixOfElements
45 unsigned int ij2i(
unsigned int i,
unsigned int j)
const;
50 void setRow(
unsigned int r,
const VectorOfElements & a);
51 void setColumn(
unsigned int c,
const VectorOfElements & a);
53 const VectorOfElements
getVE(
unsigned int r,
unsigned int c)
const;
58 inline void resize(
unsigned int nr,
unsigned int nc);
144 const VectorOfElements & b,
145 const VectorOfElements & c);
185 const VectorOfElements & b,
186 const VectorOfElements & x);
196 const VectorOfElements & b,
197 const VectorOfElements & x);
223 #endif // ACLMATRIXOFELEMENTS_H MatrixOfElements elementProduct(const VectorOfElements &a, const VectorOfElements &b)
element product of two vectors
vector< Element > gcSolveSystem(const MatrixOfElements &a, const VectorOfElements &b, const VectorOfElements &x)
generates code for solving the solution of a system of linear equations
MatrixOfElements operator=(const MatrixOfElements &m)
Advanced Computational Language.
MatrixOfElements generateME(const VectorOfElements &a)
generates a matrix with a row
MatrixOfElements transpose(MatrixOfElements &source)
transposed matrix
VectorOfElements det(const MatrixOfElements &m)
computes determinant expression fo cases 2x2 and 3x3 only
void setElement(unsigned int r, unsigned int c, Element a)
void setRow(unsigned int r, const VectorOfElements &a)
MatrixOfElements operator+(const MatrixOfElements &a, const MatrixOfElements &b)
summ of two matrices
const unsigned int getNColumns() const
VectorOfElements & getInternalVector()
VectorOfElements getDiagonal(const MatrixOfElements &a)
returns VectorOfElements containing the diagonal elements
VectorOfElements solveSystem(const MatrixOfElements &a, const VectorOfElements &b)
returns solution of a system of linear equations
MatrixOfElements operator*(const MatrixOfElements &a, const MatrixOfElements &b)
product of two matrices
MatrixOfElements operator/(const MatrixOfElements &a, const VectorOfElements &b)
division of a matrix on a VectorOfElements with 1 element
void resize(unsigned int nr, unsigned int nc)
const unsigned int getNRows() const
vector< Element > gcSolveSystemCG(const MatrixOfElements &a, const VectorOfElements &b, const VectorOfElements &x)
generates code for solving the solution of a system of linear equations
MatrixOfElements operator-(const MatrixOfElements &a, const MatrixOfElements &b)
difference of two matrices
const Element getElement(unsigned int r, unsigned int c) const
VectorOfElements getOffDiagonalUp(const MatrixOfElements &a)
returns VectorOfElements containing the uper off diagonal elements
void setColumn(unsigned int c, const VectorOfElements &a)
vector< Element > gcMatrixInversion(const MatrixOfElements &a, MatrixOfElements &inv)
returns vector of elements for computing the inverse matrix for cases 2x2 and 3x3 ...
void copy(const MatrixOfElements &source, MatrixOfElements &destination)
function copies the MatrixOfElements class.
std::shared_ptr< ElementBase > Element
MatrixOfElements replaceRow(const MatrixOfElements &a, const VectorOfElements &b, unsigned int r)
generate matrix with content of the matrix a but with replaced row r by vector b
MatrixOfElements(unsigned int nR=0, unsigned int nC=0)
VectorOfElements trace(const MatrixOfElements &a)
Trace of a matrix .
MatrixOfElements generateMatrixCofactors(const MatrixOfElements &a)
returns the matrix of cofactors for cases 2x2 and 3x3
MatrixOfElements replaceColumn(const MatrixOfElements &a, const VectorOfElements &b, unsigned int c)
generate matrix with content of the matrix a but with replaced column c by vector b ...
const VectorOfElements getVE(unsigned int r, unsigned int c) const