asl::AMatr< T > Class Template Reference

`#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)
| 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)
| More...
template<typename T >
const AMatr< T > & | operator+= (AMatr< T > &a, const AMatr< T > &b)
| More...
template<typename T >
const AMatr< T > | operator+ (const AMatr< T > &a, const AMatr< T > &b)
| More...
template<typename T >
const AMatr< T > | operator- (const AMatr< T > &a, const AMatr< T > &b)
| More...
template<typename T >
const AMatr< T > | operator* (const AMatr< T > &a, const AMatr< T > &b)
| More...
template<typename T >
const AVec< T > | operator* (const AMatr< T > &a, const AVec< T > &b)
| More...
template<typename T >
const AVec< T > | operator* (const AVec< T > &a, const AMatr< T > &b)
| More...
template<typename T >
const AMatr< T > | operator* (const AMatr< T > &a, const T &b)
| More...
template<typename T >
const AMatr< T > | operator* (const T &a, const AMatr< T > &b)
| More...
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)
| More...
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)
| More...
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<T>` 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<T>` More...
template<typename T >
AMatr< T > | inverseMatrix (const AMatr< T > &a)
| returns inverse matrix for cases 2x2 and 3x3<T> More...
template<typename T >
std::ostream & | operator<< (std::ostream &f, const AMatr< T > &a)
| More...
template<typename T >
const AMatr< T > & | operator+= (AMatr< T > &a, const AMatr< T > &b)
| More...
template<typename T >
const AMatr< T > | operator+ (const AMatr< T > &a, const AMatr< T > &b)
| More...
template<typename T >
const AMatr< T > | operator- (const AMatr< T > &a, const AMatr< T > &b)
| More...
template<typename T >
const AMatr< T > | operator* (const AMatr< T > &a, const AMatr< T > &b)
| More...
template<typename T >
const AVec< T > | operator* (const AMatr< T > &a, const AVec< T > &b)
| More...
template<typename T >
const AVec< T > | operator* (const AVec< T > &a, const AMatr< T > &b)
| More...
template<typename T >
const AMatr< T > | operator* (const AMatr< T > &a, const T &b)
| More...
template<typename T >
const AMatr< T > | operator* (const T &a, const AMatr< T > &b)
| More...
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)
| More...
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)
| More...
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<T>` 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<T>` More...
template<typename T >
AMatr< T > | inverseMatrix (const AMatr< T > &a)
| returns inverse matrix for cases 2x2 and 3x3<T> More...

## Detailed Description

### template<typename T = double>
class asl::AMatr< T >

class algebraic matrix. The class is an implementation of a dynamic matrix with defined algebraic operations

Definition at line 38 of file aslMatrices.h.

## Constructor & Destructor Documentation

## AMatr() [1/10]

template<typename T >

asl::AMatr< T >::AMatr

inline

Definition at line 191 of file aslMatrices.h.

## AMatr() [2/10]

template<typename T >

asl::AMatr< T >::AMatr | ( | unsigned int | nR,
|  | unsigned int | nC
| ) |  |

inline

Definition at line 197 of file aslMatrices.h.

## AMatr() [3/10]

template<typename T >

asl::AMatr< T >::AMatr | ( | const AMatr< T > & | a | ) |

inline

Definition at line 203 of file aslMatrices.h.

## AMatr() [4/10]

template<typename T >

asl::AMatr< T >::AMatr | ( | unsigned int | nR,
|  | unsigned int | nC,
|  | AVec< T > | v
| ) |  |

inline

Definition at line 209 of file aslMatrices.h.

## AMatr() [5/10]

template<typename T = double>
template<typename T1 >

asl::AMatr< T >::AMatr | ( | const AMatr< T1 > & | a | ) |

## AMatr() [6/10]

template<typename T = double>

asl::AMatr< T >::AMatr | ( |  | ) |

inline

## AMatr() [7/10]

template<typename T = double>

asl::AMatr< T >::AMatr | ( | unsigned int | nR,
|  | unsigned int | nC
| ) |  |

inline

## AMatr() [8/10]

template<typename T = double>

asl::AMatr< T >::AMatr | ( | const AMatr< T > & | a | ) |

inline

## AMatr() [9/10]

template<typename T = double>

asl::AMatr< T >::AMatr | ( | unsigned int | nR,
|  | unsigned int | nC,
|  | AVec< T > | v
| ) |  |

inline

## AMatr() [10/10]

template<typename T = double>
template<typename T1 >

asl::AMatr< T >::AMatr | ( | const AMatr< T1 > & | a | ) |

## Member Function Documentation

## getInternalVec() [1/4]

template<typename T >

AVec< T > & asl::AMatr< T >::getInternalVec

inline

Definition at line 216 of file aslMatrices.h.

## getInternalVec() [2/4]

template<typename T = double>

AVec<T>& asl::AMatr< T >::getInternalVec | ( |  | ) |

inline

## getInternalVec() [3/4]

template<typename T >

const AVec< T > & asl::AMatr< T >::getInternalVec

inline

Definition at line 221 of file aslMatrices.h.

## getInternalVec() [4/4]

template<typename T = double>

const AVec<T>& asl::AMatr< T >::getInternalVec | ( |  | ) | const

inline

## getNCol() [1/2]

template<typename T >

unsigned int asl::AMatr< T >::getNCol

inline

Definition at line 231 of file aslMatrices.h.

## getNCol() [2/2]

template<typename T = double>

unsigned int asl::AMatr< T >::getNCol | ( |  | ) | const

inline

## getNRow() [1/2]

template<typename T >

unsigned int asl::AMatr< T >::getNRow

inline

Definition at line 226 of file aslMatrices.h.

## getNRow() [2/2]

template<typename T = double>

unsigned int asl::AMatr< T >::getNRow | ( |  | ) | const

inline

## operator()() [1/4]

template<typename T = double>

T& asl::AMatr< T >::operator() | ( | int | i,
|  | int | j
| ) |  |

inline

doesn't chek boundaries

Definition at line 52 of file aslMatrices.h.

## operator()() [2/4]

template<typename T = double>

T& asl::AMatr< T >::operator() | ( | int | i,
|  | int | j
| ) |  |

inline

doesn't chek boundaries

Definition at line 52 of file aslMatrices.h.

## operator()() [3/4]

template<typename T = double>

const T& asl::AMatr< T >::operator() | ( | int | i,
|  | int | j
| ) |  | const

inline

doesn't chek boundaries

Definition at line 54 of file aslMatrices.h.

## operator()() [4/4]

template<typename T = double>

const T& asl::AMatr< T >::operator() | ( | int | i,
|  | int | j
| ) |  | const

inline

doesn't chek boundaries

Definition at line 54 of file aslMatrices.h.

## operator=() [1/2]

template<typename T = double>

const AMatr<T>& asl::AMatr< T >::operator= | ( | const AMatr< T > & | a | ) |

## operator=() [2/2]

template<typename T = double>

const AMatr<T>& asl::AMatr< T >::operator= | ( | const AMatr< T > & | a | ) |

## operator[]() [1/4]

template<typename T = double>

T& asl::AMatr< T >::operator[] | ( | int | i | ) |

inline

doesn't chek boundaries

Definition at line 56 of file aslMatrices.h.

## operator[]() [2/4]

template<typename T = double>

T& asl::AMatr< T >::operator[] | ( | int | i | ) |

inline

doesn't chek boundaries

Definition at line 56 of file aslMatrices.h.

## operator[]() [3/4]

template<typename T = double>

const T& asl::AMatr< T >::operator[] | ( | int | i | ) | const

inline

doesn't chek boundaries

Definition at line 58 of file aslMatrices.h.

## operator[]() [4/4]

template<typename T = double>

const T& asl::AMatr< T >::operator[] | ( | int | i | ) | const

inline

doesn't chek boundaries

Definition at line 58 of file aslMatrices.h.

## resize() [1/2]

template<typename T >

void asl::AMatr< T >::resize | ( | unsigned int | nR,
|  | unsigned int | nCol
| ) |  |

inline

Definition at line 237 of file aslMatrices.h.

## resize() [2/2]

template<typename T = double>

void asl::AMatr< T >::resize | ( | unsigned int | nR,
|  | unsigned int | nCol
| ) |  |

inline

## setColumn() [1/2]

template<typename T = double>

void asl::AMatr< T >::setColumn | ( | unsigned int | c,
|  | const AVec< T > & | a
| ) |  |

## setColumn() [2/2]

template<typename T = double>

void asl::AMatr< T >::setColumn | ( | unsigned int | c,
|  | const AVec< T > & | a
| ) |  |

## setRow() [1/2]

template<typename T = double>

void asl::AMatr< T >::setRow | ( | unsigned int | r,
|  | const AVec< T > & | a
| ) |  |

## setRow() [2/2]

template<typename T = double>

void asl::AMatr< T >::setRow | ( | unsigned int | r,
|  | const AVec< T > & | a
| ) |  |

## Friends And Related Function Documentation

## det() [1/2]

template<typename T >

T det | ( | const AMatr< T > & | m | ) |

related

computes determinant expression fo cases 2x2 and 3x3 only

## det() [2/2]

template<typename T >

T det | ( | const AMatr< T > & | m | ) |

related

computes determinant expression fo cases 2x2 and 3x3 only

## elementProduct() [1/2]

template<typename T >

AMatr< T > elementProduct | ( | const AVec< T > & | a,
|  | const AVec< T > & | b
| ) |  |

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) \)

## elementProduct() [2/2]

template<typename T >

AMatr< T > elementProduct | ( | const AVec< T > & | a,
|  | const AVec< T > & | b
| ) |  |

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) \)

## getDiagonal() [1/2]

template<typename T >

AVec< T > getDiagonal | ( | const AMatr< T > & | a | ) |

related

returns AVec containing the diagonal elements

the finction is valid only for square matrices

## getDiagonal() [2/2]

template<typename T >

AVec< T > getDiagonal | ( | const AMatr< T > & | a | ) |

related

returns AVec containing the diagonal elements

the finction is valid only for square matrices

## getOffDiagonalUp() [1/2]

template<typename T >

AVec< T > getOffDiagonalUp | ( | const AMatr< T > & | a | ) |

related

returns AVec<T> containing the uper off diagonal elements

the function is valid only for square matrices

Todo:
  implement

## getOffDiagonalUp() [2/2]

template<typename T >

AVec< T > getOffDiagonalUp | ( | const AMatr< T > & | a | ) |

related

returns AVec<T> containing the uper off diagonal elements

the function is valid only for square matrices

Todo:
  implement

## inverseMatrix() [1/2]

template<typename T >

AMatr< T > inverseMatrix | ( | const AMatr< T > & | a | ) |

related

returns inverse matrix for cases 2x2 and 3x3<T>

## inverseMatrix() [2/2]

template<typename T >

AMatr< T > inverseMatrix | ( | const AMatr< T > & | a | ) |

related

returns inverse matrix for cases 2x2 and 3x3<T>

## makeAMatr() [1/8]

template<typename T >

AMatr< T > makeAMatr | ( | AVec< T > * | a,
|  | unsigned int | n
| ) |  |

related

generates a matrix with `n` rows

## makeAMatr() [2/8]

template<typename T >

AMatr< T > makeAMatr | ( | AVec< T > * | a,
|  | unsigned int | n
| ) |  |

related

generates a matrix with `n` rows

## makeAMatr() [3/8]

template<typename T >

AMatr< T > makeAMatr | ( | const AVec< T > & | a | ) |

related

generates a matrix with a row

## makeAMatr() [4/8]

template<typename T >

AMatr< T > makeAMatr | ( | const AVec< T > & | a | ) |

related

generates a matrix with a row

## makeAMatr() [5/8]

template<typename T >

AMatr< T > makeAMatr | ( | const AVec< T > & | a,
|  | const AVec< T > & | b
| ) |  |

related

generates a matrix with two rows

## makeAMatr() [6/8]

template<typename T >

AMatr< T > makeAMatr | ( | const AVec< T > & | a,
|  | const AVec< T > & | b
| ) |  |

related

generates a matrix with two rows

## makeAMatr() [7/8]

template<typename T >

AMatr< T > makeAMatr | ( | const AVec< T > & | a,
|  | const AVec< T > & | b,
|  | const AVec< T > & | c
| ) |  |

related

generates a matrix with three rows

## makeAMatr() [8/8]

template<typename T >

AMatr< T > makeAMatr | ( | const AVec< T > & | a,
|  | const AVec< T > & | b,
|  | const AVec< T > & | c
| ) |  |

related

generates a matrix with three rows

## makeAMatrUnit() [1/2]

template<typename T = int>

AMatr< T > makeAMatrUnit | ( | unsigned int | n | ) |

related

## makeAMatrUnit() [2/2]

template<typename T = int>

AMatr< T > makeAMatrUnit | ( | unsigned int | n | ) |

related

## operator*() [1/10]

template<typename T >

const AMatr< T > operator* | ( | const AMatr< T > & | a,
|  | const AMatr< T > & | b
| ) |  |

related

## operator*() [2/10]

template<typename T >

const AMatr< T > operator* | ( | const AMatr< T > & | a,
|  | const AMatr< T > & | b
| ) |  |

related

## operator*() [3/10]

template<typename T >

const AVec< T > operator* | ( | const AMatr< T > & | a,
|  | const AVec< T > & | b
| ) |  |

related

## operator*() [4/10]

template<typename T >

const AVec< T > operator* | ( | const AMatr< T > & | a,
|  | const AVec< T > & | b
| ) |  |

related

## operator*() [5/10]

template<typename T >

const AMatr< T > operator* | ( | const AMatr< T > & | a,
|  | const T & | b
| ) |  |

related

## operator*() [6/10]

template<typename T >

const AMatr< T > operator* | ( | const AMatr< T > & | a,
|  | const T & | b
| ) |  |

related

## operator*() [7/10]

template<typename T >

const AVec< T > operator* | ( | const AVec< T > & | a,
|  | const AMatr< T > & | b
| ) |  |

related

## operator*() [8/10]

template<typename T >

const AVec< T > operator* | ( | const AVec< T > & | a,
|  | const AMatr< T > & | b
| ) |  |

related

## operator*() [9/10]

template<typename T >

const AMatr< T > operator* | ( | const T & | a,
|  | const AMatr< T > & | b
| ) |  |

related

## operator*() [10/10]

template<typename T >

const AMatr< T > operator* | ( | const T & | a,
|  | const AMatr< T > & | b
| ) |  |

related

## operator+() [1/2]

template<typename T >

const AMatr< T > operator+ | ( | const AMatr< T > & | a,
|  | const AMatr< T > & | b
| ) |  |

related

Definition at line 252 of file aslMatrices.h.

## operator+() [2/2]

template<typename T >

const AMatr< T > operator+ | ( | const AMatr< T > & | a,
|  | const AMatr< T > & | b
| ) |  |

related

Definition at line 252 of file aslMatrices.h.

## operator+=() [1/2]

template<typename T >

const AMatr< T > & operator+= | ( | AMatr< T > & | a,
|  | const AMatr< T > & | b
| ) |  |

related

Definition at line 245 of file aslMatrices.h.

## operator+=() [2/2]

template<typename T >

const AMatr< T > & operator+= | ( | AMatr< T > & | a,
|  | const AMatr< T > & | b
| ) |  |

related

Definition at line 245 of file aslMatrices.h.

## operator-() [1/2]

template<typename T >

const AMatr< T > operator- | ( | const AMatr< T > & | a,
|  | const AMatr< T > & | b
| ) |  |

related

Definition at line 258 of file aslMatrices.h.

## operator-() [2/2]

template<typename T >

const AMatr< T > operator- | ( | const AMatr< T > & | a,
|  | const AMatr< T > & | b
| ) |  |

related

Definition at line 258 of file aslMatrices.h.

## operator/() [1/2]

template<typename T >

const AMatr< T > operator/ | ( | const AMatr< T > & | b,
|  | const T & | a
| ) |  |

related

Definition at line 264 of file aslMatrices.h.

## operator/() [2/2]

template<typename T >

const AMatr< T > operator/ | ( | const AMatr< T > & | b,
|  | const T & | a
| ) |  |

related

Definition at line 264 of file aslMatrices.h.

## operator<<() [1/2]

template<typename T >

std::ostream & operator<< | ( | std::ostream & | f,
|  | const AMatr< T > & | a
| ) |  |

related

## operator<<() [2/2]

template<typename T >

std::ostream & operator<< | ( | std::ostream & | f,
|  | const AMatr< T > & | a
| ) |  |

related

## replaceColumn() [1/2]

template<typename T >

AMatr< T > replaceColumn | ( | const AMatr< T > & | a,
|  | const AVec< T > & | b,
|  | unsigned int | c
| ) |  |

related

generate matrix with content of the matrix `a` but with replaced column `c` by vector `b<T>`

## replaceColumn() [2/2]

template<typename T >

AMatr< T > replaceColumn | ( | const AMatr< T > & | a,
|  | const AVec< T > & | b,
|  | unsigned int | c
| ) |  |

related

generate matrix with content of the matrix `a` but with replaced column `c` by vector `b<T>`

## replaceRow() [1/2]

template<typename T >

AMatr< T > replaceRow | ( | const AMatr< T > & | a,
|  | const AVec< T > & | b,
|  | unsigned int | r
| ) |  |

related

generate matrix with content of the matrix `a` but with replaced row `r` by vector `b<T>`

## replaceRow() [2/2]

template<typename T >

AMatr< T > replaceRow | ( | const AMatr< T > & | a,
|  | const AVec< T > & | b,
|  | unsigned int | r
| ) |  |

related

generate matrix with content of the matrix `a` but with replaced row `r` by vector `b<T>`

## trace() [1/4]

template<typename T >

const T trace | ( | const AMatr< T > & | a | ) |

related

Trace of a matrix \(Tr(A)\equiv A_{ii}\).

## trace() [2/4]

template<typename T >

const T trace | ( | const AMatr< T > & | a | ) |

related

Trace of a matrix \(Tr(A)\equiv A_{ii}\).

## trace() [3/4]

template<typename T >

const T trace | ( | const AMatr< T > & | a,
|  | const AMatr< T > & | b
| ) |  |

related

Trace of a matrix product \(Tr(A B)\equiv A_{ij}B_{ji}\).

## trace() [4/4]

template<typename T >

const T trace | ( | const AMatr< T > & | a,
|  | const AMatr< T > & | b
| ) |  |

related

Trace of a matrix product \(Tr(A B)\equiv A_{ij}B_{ji}\).

The documentation for this class was generated from the following file:

- /build/asl-1Fw6fH/asl-0.1.7/debian/tmp/usr/include/ASL/math/aslMatrices.h