A matrix class with support for LU-decomposition, and left division.
More...
#include <DynamicMatrix.hpp>
|
| Matrix (size_t M, size_t N) |
|
| Matrix (size_t M, size_t N, T initialValue) |
|
T & | operator() (size_t m, size_t n) |
|
const T & | operator() (size_t m, size_t n) const |
|
void | fill (T fillVal) |
|
void | rowAddition (size_t destinationRow, size_t sourceRow, T scalingFactor) |
|
void | swapRows (size_t row1, size_t row2) |
|
Matrix< T > | transpose () |
|
Matrix< T > | multiply (const Matrix< T > &rhs) const |
|
void | multiply (const Matrix< T > &rhs, Matrix< T > &dest) const |
|
Matrix< T > | add (const Matrix< T > &rhs) const |
|
void | add (const Matrix< T > &rhs, Matrix< T > &dest) const |
|
Matrix< T > | subtract (const Matrix< T > &rhs) const |
|
void | subtract (const Matrix< T > &rhs, Matrix< T > &dest) const |
|
std::string | toString () const |
|
LUPair< T > | luPair () const |
|
void | luPair (LUPair< T > &dest) const |
|
Matrix< T > | leftDivide (const Matrix< T > &rhs) const |
|
void | leftDivide (const Matrix< T > &rhs, const LUPair< T > &lu, Matrix< T > &scratchSpace, Matrix< T > &dest) const |
|
template<typename Iterator > |
void | leftDivide (const Matrix< T > &rhs, const LUPair< T > &lu, Matrix< T > &scratchSpace, Iterator destBegin, Iterator destEnd) const |
|
|
std::vector< T > | data |
|
size_t | M |
|
size_t | N |
|
template<typename T>
struct Matrix< T >
A matrix class with support for LU-decomposition, and left division.
- Template Parameters
-
Definition at line 55 of file DynamicMatrix.hpp.
◆ Matrix() [1/2]
◆ Matrix() [2/2]
◆ add() [1/2]
◆ add() [2/2]
◆ fill()
template<typename T >
void Matrix< T >::fill |
( |
T |
fillVal | ) |
|
|
inline |
◆ leftDivide() [1/3]
◆ leftDivide() [2/3]
template<typename T >
template<typename Iterator >
void Matrix< T >::leftDivide |
( |
const Matrix< T > & |
rhs, |
|
|
const LUPair< T > & |
lu, |
|
|
Matrix< T > & |
scratchSpace, |
|
|
Iterator |
destBegin, |
|
|
Iterator |
destEnd |
|
) |
| const |
|
inline |
◆ leftDivide() [3/3]
◆ luPair() [1/2]
◆ luPair() [2/2]
◆ multiply() [1/2]
◆ multiply() [2/2]
◆ operator()() [1/2]
template<typename T >
T& Matrix< T >::operator() |
( |
size_t |
m, |
|
|
size_t |
n |
|
) |
| |
|
inline |
◆ operator()() [2/2]
template<typename T >
const T& Matrix< T >::operator() |
( |
size_t |
m, |
|
|
size_t |
n |
|
) |
| const |
|
inline |
◆ rowAddition()
template<typename T >
void Matrix< T >::rowAddition |
( |
size_t |
destinationRow, |
|
|
size_t |
sourceRow, |
|
|
T |
scalingFactor |
|
) |
| |
|
inline |
◆ subtract() [1/2]
◆ subtract() [2/2]
◆ swapRows()
template<typename T >
void Matrix< T >::swapRows |
( |
size_t |
row1, |
|
|
size_t |
row2 |
|
) |
| |
|
inline |
◆ toString()
template<typename T >
std::string Matrix< T >::toString |
( |
| ) |
const |
|
inline |
◆ transpose()
◆ data
template<typename T >
std::vector<T> Matrix< T >::data |
The documentation for this struct was generated from the following file: