OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
#include "FixedAlgebra/FArray2D.h"
#include "FixedAlgebra/FVector.h"
#include "Utilities/SizeError.h"
#include <algorithm>
#include <numeric>
#include <functional>
Go to the source code of this file.
Classes | |
class | FMatrix< T, R, C > |
A templated representation for matrices. More... | |
Functions | |
template<class T , int R, int C> | |
FMatrix< T, R, C > | operator- (const FMatrix< T, R, C > &) |
Unary minus. More... | |
template<class T , int R, int C> | |
FMatrix< T, R, C > | operator+ (const FMatrix< T, R, C > &, const FMatrix< T, R, C > &) |
Add. More... | |
template<class T , int R, int C> | |
FMatrix< T, R, C > | operator- (const FMatrix< T, R, C > &, const FMatrix< T, R, C > &) |
Subtract. More... | |
template<class T , int R, int C> | |
FVector< T, R > | operator* (const FMatrix< T, R, C > &, const FVector< T, C > &) |
Multiply by column vector. More... | |
template<class T , int R, int C> | |
FVector< T, C > | operator* (const FVector< T, R > &, const FMatrix< T, R, C > &) |
Row vector times Matrix. More... | |
template<class T , int R, int C> | |
FMatrix< T, R, C > | operator* (const FMatrix< T, R, C > &, const T &) |
Matrix times scalar. More... | |
template<class T , int R, int C> | |
FMatrix< T, R, C > | operator* (const T &, const FMatrix< T, R, C > &) |
Scalar times Matrix. More... | |
template<class T , int R, int C> | |
FMatrix< T, R, C > | operator/ (const FMatrix< T, R, C > &, const T &) |
Matrix divided by scalar. More... | |
template<class T , int C> | |
FMatrix< T, C, C > | operator+ (const FMatrix< T, C, C > &, const T &t) |
Add unit matrix times [b]t[/b] to matrix. More... | |
template<class T , int C> | |
FMatrix< T, C, C > | operator- (const FMatrix< T, C, C > &, const T &t) |
Subtract unit matrix times [b]t[/b] from matrix. More... | |
template<class T , int R, int I, int C> | |
FMatrix< T, R, C > | operator* (const FMatrix< T, R, I > &lhs, const FMatrix< T, I, C > &rhs) |
FVector< T, R > operator* | ( | const FMatrix< T, R, C > & | lhs, |
const FVector< T, C > & | rhs | ||
) |
Multiply by column vector.
Definition at line 261 of file FMatrix.h.
References FArray1D< T, N >::begin(), Attrib::Distribution::R, FArray2D< T, M, N >::row_begin(), FArray2D< T, M, N >::row_end(), and Attrib::Legacy::Distribution::T.
FMatrix< T, R, C > operator* | ( | const FMatrix< T, R, I > & | lhs, |
const FMatrix< T, I, C > & | rhs | ||
) |
Definition at line 244 of file FMatrix.h.
References FArray2D< T, M, N >::col_begin(), Attrib::Distribution::R, FArray2D< T, M, N >::row_begin(), FArray2D< T, M, N >::row_end(), and Attrib::Legacy::Distribution::T.
FVector< T, C > operator* | ( | const FVector< T, R > & | lhs, |
const FMatrix< T, R, C > & | rhs | ||
) |
Row vector times Matrix.
Definition at line 274 of file FMatrix.h.
References FArray1D< T, N >::begin(), FArray2D< T, M, N >::col_begin(), FArray1D< T, N >::end(), and Attrib::Legacy::Distribution::T.
Unary minus.
Definition at line 222 of file FMatrix.h.
References FArray2D< T, M, N >::begin(), and FArray2D< T, M, N >::end().