ASL
0.1.7
Advanced Simulation Library
|
The class represents a matrix elements of Element. More...
#include <aclMatrixOfElements.h>
Public Member Functions | |
MatrixOfElements (unsigned int nR=0, unsigned int nC=0) | |
void | setElement (unsigned int r, unsigned int c, Element a) |
void | setRow (unsigned int r, const VectorOfElements &a) |
void | setColumn (unsigned int c, const VectorOfElements &a) |
const Element | getElement (unsigned int r, unsigned int c) const |
const VectorOfElements | getVE (unsigned int r, unsigned int c) const |
const unsigned int | getNColumns () const |
const unsigned int | getNRows () const |
VectorOfElements & | getInternalVector () |
const VectorOfElements & | getInternalVector () const |
void | resize (unsigned int nr, unsigned int nc) |
MatrixOfElements | operator= (const MatrixOfElements &m) |
Related Functions | |
(Note that these are not member functions.) | |
void | copy (const MatrixOfElements &source, MatrixOfElements &destination) |
function copies the MatrixOfElements class. More... | |
MatrixOfElements | operator+ (const MatrixOfElements &a, const MatrixOfElements &b) |
summ of two matrices More... | |
MatrixOfElements | operator- (const MatrixOfElements &a, const MatrixOfElements &b) |
difference of two matrices More... | |
MatrixOfElements | operator* (const MatrixOfElements &a, const MatrixOfElements &b) |
product of two matrices More... | |
VectorOfElements | operator* (const VectorOfElements &a, const MatrixOfElements &b) |
product of vector and matrix More... | |
VectorOfElements | operator* (const MatrixOfElements &a, const VectorOfElements &b) |
product of vector and matrix More... | |
MatrixOfElements | operator/ (const MatrixOfElements &a, const VectorOfElements &b) |
division of a matrix on a VectorOfElements with 1 element More... | |
MatrixOfElements | transpose (MatrixOfElements &source) |
transposed matrix More... | |
MatrixOfElements | elementProduct (const VectorOfElements &a, const VectorOfElements &b) |
element product of two vectors More... | |
VectorOfElements | trace (const MatrixOfElements &a) |
Trace of a matrix \(Tr(A)\equiv A_{ii}\). More... | |
VectorOfElements | trace (const MatrixOfElements &a, const MatrixOfElements &b) |
Trace of a matrix product \(Tr(A B)\equiv A_{ij}B_{ji}\). More... | |
MatrixOfElements | generateME (const VectorOfElements &a) |
generates a matrix with a row More... | |
MatrixOfElements | generateME (const VectorOfElements &a, VectorOfElements &b) |
generates a matrix with two rows More... | |
MatrixOfElements | generateME (const VectorOfElements &a, const VectorOfElements &b, const VectorOfElements &c) |
generates a matrix with three rows More... | |
MatrixOfElements | generateME (const VectorOfElements *a, unsigned int n) |
generates a matrix with n rows \( generateME(\{u_i\}_j) = A_{ji}\) More... | |
MatrixOfElements | generateME (const vector< VectorOfElements > &a) |
generates a matrix with n rows \( generateME(\{u_i\}_j) = A_{ji}\) More... | |
VectorOfElements | getDiagonal (const MatrixOfElements &a) |
returns VectorOfElements containing the diagonal elements More... | |
VectorOfElements | getOffDiagonalUp (const MatrixOfElements &a) |
returns VectorOfElements containing the uper off diagonal elements More... | |
VectorOfElements | det (const MatrixOfElements &m) |
computes determinant expression fo cases 2x2 and 3x3 only More... | |
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 More... | |
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 More... | |
MatrixOfElements | generateMatrixCofactors (const MatrixOfElements &a) |
returns the matrix of cofactors for cases 2x2 and 3x3 More... | |
vector< Element > | gcMatrixInversion (const MatrixOfElements &a, MatrixOfElements &inv) |
returns vector of elements for computing the inverse matrix for cases 2x2 and 3x3 More... | |
The class represents a matrix elements of Element.
Definition at line 35 of file aclMatrixOfElements.h.
|
explicit |
const Element acl::MatrixOfElements::getElement | ( | unsigned int | r, |
unsigned int | c | ||
) | const |
VectorOfElements& acl::MatrixOfElements::getInternalVector | ( | ) |
const VectorOfElements& acl::MatrixOfElements::getInternalVector | ( | ) | const |
const unsigned int acl::MatrixOfElements::getNColumns | ( | ) | const |
const unsigned int acl::MatrixOfElements::getNRows | ( | ) | const |
const VectorOfElements acl::MatrixOfElements::getVE | ( | unsigned int | r, |
unsigned int | c | ||
) | const |
MatrixOfElements acl::MatrixOfElements::operator= | ( | const MatrixOfElements & | m | ) |
|
inline |
Definition at line 213 of file aclMatrixOfElements.h.
void acl::MatrixOfElements::setColumn | ( | unsigned int | c, |
const VectorOfElements & | a | ||
) |
void acl::MatrixOfElements::setElement | ( | unsigned int | r, |
unsigned int | c, | ||
Element | a | ||
) |
void acl::MatrixOfElements::setRow | ( | unsigned int | r, |
const VectorOfElements & | a | ||
) |
|
related |
function copies the MatrixOfElements class.
|
related |
computes determinant expression fo cases 2x2 and 3x3 only
|
related |
element product of two vectors
\( elementProduct\left( \left[\begin{array}{c} a_1\\ \vdots \\ a_n \end{array}\right], \left[\begin{array}{c} b_1\\ \vdots \\ b_n \end{array}\right]\right) = \left[\begin{array}{ccc} a_1b_1 & \cdots & a_1b_n\\ \vdots & \ddots & \vdots\\ a_nb_1 & \cdots & a_nb_n\\ \end{array}\right] \), \(A_{ij} = a_i b_j \)
|
related |
returns vector of elements for computing the inverse matrix for cases 2x2 and 3x3
|
related |
returns the matrix of cofactors for cases 2x2 and 3x3
|
related |
generates a matrix with a row
|
related |
generates a matrix with two rows
|
related |
generates a matrix with three rows
|
related |
generates a matrix with n
rows \( generateME(\{u_i\}_j) = A_{ji}\)
|
related |
generates a matrix with n
rows \( generateME(\{u_i\}_j) = A_{ji}\)
|
related |
returns VectorOfElements containing the diagonal elements
the finction is valid only for square matrices
|
related |
returns VectorOfElements containing the uper off diagonal elements
the finction is valid only for square matrices
|
related |
product of two matrices
|
related |
product of vector and matrix
|
related |
product of vector and matrix
|
related |
summ of two matrices
|
related |
difference of two matrices
|
related |
division of a matrix on a VectorOfElements with 1 element
|
related |
generate matrix with content of the matrix a
but with replaced column c
by vector b
|
related |
generate matrix with content of the matrix a
but with replaced row r
by vector b
|
related |
Trace of a matrix \(Tr(A)\equiv A_{ii}\).
|
related |
Trace of a matrix product \(Tr(A B)\equiv A_{ij}B_{ji}\).
|
related |
transposed matrix