ASL
0.1.7
Advanced Simulation Library
|
#include <aslMatrices.h>
Public Member Functions | |
AMatr () | |
AMatr (unsigned int nR, unsigned int nC) | |
AMatr (const AMatr< T > &a) | |
AMatr (unsigned int nR, unsigned int nC, AVec< T > v) | |
template<typename T1 > | |
AMatr (const AMatr< T1 > &a) | |
const AMatr< T > & | operator= (const AMatr &a) |
T & | operator() (int i, int j) |
doesn't chek boundaries More... | |
const T & | operator() (int i, int j) const |
doesn't chek boundaries More... | |
T & | operator[] (int i) |
doesn't chek boundaries More... | |
const T & | operator[] (int i) const |
doesn't chek boundaries More... | |
unsigned int | getNRow () const |
unsigned int | getNCol () const |
void | resize (unsigned int nR, unsigned int nCol) |
const AVec< T > & | getInternalVec () const |
AVec< T > & | getInternalVec () |
void | setRow (unsigned int r, const AVec< T > &a) |
void | setColumn (unsigned int c, const AVec< T > &a) |
Related Functions | |
(Note that these are not member functions.) | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &f, const AMatr< T > &a) |
template<typename T > | |
const AMatr< T > & | operator+= (AMatr< T > &a, const AMatr< T > &b) |
template<typename T > | |
const AMatr< T > | operator+ (const AMatr< T > &a, const AMatr< T > &b) |
template<typename T > | |
const AMatr< T > | operator- (const AMatr< T > &a, const AMatr< T > &b) |
template<typename T > | |
const AMatr< T > | operator* (const AMatr< T > &a, const AMatr< T > &b) |
template<typename T > | |
const AVec< T > | operator* (const AMatr< T > &a, const AVec< T > &b) |
template<typename T > | |
const AVec< T > | operator* (const AVec< T > &a, const AMatr< T > &b) |
template<typename T > | |
const AMatr< T > | operator* (const AMatr< T > &a, const T &b) |
template<typename T > | |
const AMatr< T > | operator* (const T &a, const AMatr< T > &b) |
template<typename T > | |
const T | trace (const AMatr< T > &a) |
Trace of a matrix \(Tr(A)\equiv A_{ii}\). More... | |
template<typename T > | |
const T | trace (const AMatr< T > &a, const AMatr< T > &b) |
Trace of a matrix product \(Tr(A B)\equiv A_{ij}B_{ji}\). More... | |
template<typename T > | |
const AMatr< T > | operator/ (const AMatr< T > &b, const T &a) |
template<typename T > | |
AMatr< T > | elementProduct (const AVec< T > &a, const AVec< T > &b) |
element product of two vectors More... | |
template<typename T > | |
AMatr< T > | makeAMatr (const AVec< T > &a) |
generates a matrix with a row More... | |
template<typename T > | |
AMatr< T > | makeAMatr (const AVec< T > &a, const AVec< T > &b) |
generates a matrix with two rows More... | |
template<typename T > | |
AMatr< T > | makeAMatr (const AVec< T > &a, const AVec< T > &b, const AVec< T > &c) |
generates a matrix with three rows More... | |
template<typename T > | |
AMatr< T > | makeAMatr (AVec< T > *a, unsigned int n) |
generates a matrix with n rows More... | |
template<typename T = int> | |
AMatr< T > | makeAMatrUnit (unsigned int n) |
template<typename T > | |
AVec< T > | getDiagonal (const AMatr< T > &a) |
returns AVec containing the diagonal elements More... | |
template<typename T > | |
AVec< T > | getOffDiagonalUp (const AMatr< T > &a) |
returns AVec<T> containing the uper off diagonal elements More... | |
template<typename T > | |
T | det (const AMatr< T > &m) |
computes determinant expression fo cases 2x2 and 3x3 only More... | |
template<typename T > | |
AMatr< T > | replaceRow (const AMatr< T > &a, const AVec< T > &b, unsigned int r) |
generate matrix with content of the matrix a but with replaced row r by vector b More... | |
template<typename T > | |
AMatr< T > | replaceColumn (const AMatr< T > &a, const AVec< T > &b, unsigned int c) |
generate matrix with content of the matrix a but with replaced column c by vector b More... | |
template<typename T > | |
AMatr< T > | inverseMatrix (const AMatr< T > &a) |
returns inverse matrix for cases 2x2 and 3x3 More... | |
class algebraic matrix. The class is an implementation of a dynamic matrix with defined algebraic operations
Definition at line 38 of file aslMatrices.h.
|
inline |
Definition at line 191 of file aslMatrices.h.
|
inline |
Definition at line 197 of file aslMatrices.h.
|
inline |
Definition at line 203 of file aslMatrices.h.
|
inline |
Definition at line 209 of file aslMatrices.h.
asl::AMatr< T >::AMatr | ( | const AMatr< T1 > & | a | ) |
|
inline |
Definition at line 221 of file aslMatrices.h.
|
inline |
Definition at line 216 of file aslMatrices.h.
|
inline |
Definition at line 231 of file aslMatrices.h.
|
inline |
Definition at line 226 of file aslMatrices.h.
|
inline |
doesn't chek boundaries
Definition at line 52 of file aslMatrices.h.
|
inline |
doesn't chek boundaries
Definition at line 54 of file aslMatrices.h.
const AMatr<T>& asl::AMatr< T >::operator= | ( | const AMatr< T > & | a | ) |
|
inline |
doesn't chek boundaries
Definition at line 56 of file aslMatrices.h.
|
inline |
doesn't chek boundaries
Definition at line 58 of file aslMatrices.h.
|
inline |
Definition at line 237 of file aslMatrices.h.
void asl::AMatr< T >::setColumn | ( | unsigned int | c, |
const AVec< T > & | a | ||
) |
void asl::AMatr< T >::setRow | ( | unsigned int | r, |
const AVec< T > & | a | ||
) |
|
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] = \left[\begin{array}{ccc} a_1b_1 & \cdots & a_1b_n\\ \vdots & \ddots & \vdots\\ a_nb_1 & \cdots & a_nb_n\\ \end{array}\right] \right) \)
returns AVec containing the diagonal elements
the finction is valid only for square matrices
returns AVec<T> containing the uper off diagonal elements
the function is valid only for square matrices
returns inverse matrix for cases 2x2 and 3x3
<T>
generates a matrix with a row
generates a matrix with two rows
|
related |
generates a matrix with three rows
generates a matrix with n
rows
|
related |
|
related |
|
related |
|
related |
|
related |
Definition at line 252 of file aslMatrices.h.
|
related |
Definition at line 245 of file aslMatrices.h.
|
related |
Definition at line 258 of file aslMatrices.h.
Definition at line 264 of file aslMatrices.h.
|
related |
|
related |
generate matrix with content of the matrix a
but with replaced column c
by vector b
<T>
|
related |
generate matrix with content of the matrix a
but with replaced row r
by vector b
<T>
|
related |
Trace of a matrix \(Tr(A)\equiv A_{ii}\).
Trace of a matrix product \(Tr(A B)\equiv A_{ij}B_{ji}\).