|
OPAL (Object Oriented Parallel Accelerator Library)
2024.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, N, M > |
| 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, test::result, FArray2D< T, R, C >::row_begin(), FArray2D< T, R, C >::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, R, C >::col_begin(), FArray1D< T, N >::end(), test::result, 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, R, C >::col_begin(), Attrib::Distribution::R, test::result, FArray2D< T, R, C >::row_begin(), FArray2D< T, R, C >::row_end(), and Attrib::Legacy::Distribution::T.

| FMatrix< T, C, C > operator+ | ( | const FMatrix< T, C, C > & | lhs, |
| const T & | t | ||
| ) |
Add unit matrix times [b]t[/b] to matrix.
Definition at line 311 of file FMatrix.h.
References test::result.
Unary minus.
Definition at line 222 of file FMatrix.h.
References FArray2D< T, R, C >::begin(), FArray2D< T, R, C >::end(), and test::result.

| FMatrix< T, C, C > operator- | ( | const FMatrix< T, C, C > & | lhs, |
| const T & | t | ||
| ) |
Subtract unit matrix times [b]t[/b] from matrix.
Definition at line 319 of file FMatrix.h.
References test::result.
1.8.5