ASL
0.1.7
Advanced Simulation Library
|
Go to the documentation of this file.
24 #ifndef ACLMATRIXOFELEMENTS_H
25 #define ACLMATRIXOFELEMENTS_H
45 unsigned int ij2i(
unsigned int i,
unsigned int j)
const;
58 inline void resize(
unsigned int nr,
unsigned int nc);
223 #endif // ACLMATRIXOFELEMENTS_H
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 generateME(const vector< VectorOfElements > &a)
generates a matrix with n rows
VectorOfElements trace(const MatrixOfElements &a, const MatrixOfElements &b)
Trace of a matrix product
MatrixOfElements generateME(const VectorOfElements &a, VectorOfElements &b)
generates a matrix with two rows
void resize(unsigned int nr, unsigned int nc)
The class represents a matrix elements of Element.
VectorOfElements operator*(const MatrixOfElements &a, const VectorOfElements &b)
product of vector and matrix
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)
MatrixOfElements generateME(const VectorOfElements &a, const VectorOfElements &b, const VectorOfElements &c)
generates a matrix with three rows
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
MatrixOfElements transpose(MatrixOfElements &source)
transposed matrix
const VectorOfElements & getInternalVector() const
MatrixOfElements generateME(const VectorOfElements &a)
generates a matrix with a row
The class represents several Element.
void setRow(unsigned int r, const VectorOfElements &a)
VectorOfElements trace(const MatrixOfElements &a)
Trace of a matrix
void setElement(unsigned int r, unsigned int c, Element a)
void setColumn(unsigned int c, const VectorOfElements &a)
VectorOfElements & getInternalVector()
MatrixOfElements elementProduct(const VectorOfElements &a, const VectorOfElements &b)
element product of two vectors
void copy(const MatrixOfElements &source, MatrixOfElements &destination)
function copies the MatrixOfElements class.
MatrixOfElements operator/(const MatrixOfElements &a, const VectorOfElements &b)
division of a matrix on a VectorOfElements with 1 element
vector< Element > gcMatrixInversion(const MatrixOfElements &a, MatrixOfElements &inv)
returns vector of elements for computing the inverse matrix for cases 2x2 and 3x3
std::shared_ptr< ElementBase > Element
const VectorOfElements getVE(unsigned int r, unsigned int c) const
MatrixOfElements generateMatrixCofactors(const MatrixOfElements &a)
returns the matrix of cofactors for cases 2x2 and 3x3
MatrixOfElements operator-(const MatrixOfElements &a, const MatrixOfElements &b)
difference of two matrices
VectorOfElements operator*(const VectorOfElements &a, const MatrixOfElements &b)
product of vector and matrix
MatrixOfElements operator*(const MatrixOfElements &a, const MatrixOfElements &b)
product of two matrices
VectorOfElements getDiagonal(const MatrixOfElements &a)
returns VectorOfElements containing the diagonal elements
VectorOfElements det(const MatrixOfElements &m)
computes determinant expression fo cases 2x2 and 3x3 only
const unsigned int getNColumns() const
const unsigned int getNRows() const
MatrixOfElements(unsigned int nR=0, unsigned int nC=0)
MatrixOfElements operator+(const MatrixOfElements &a, const MatrixOfElements &b)
summ 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
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 generateME(const VectorOfElements *a, unsigned int n)
generates a matrix with n rows
Advanced Computational Language.
VectorOfElements solveSystem(const MatrixOfElements &a, const VectorOfElements &b)
returns solution of a system of linear equations