OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
Transport map with values of type [b]T[/b] in [b]N[/b] variables. More...
#include <TransportMap.h>
Public Member Functions | |
TransportMap () | |
Default constructor. More... | |
TransportMap (const FVps< T, N > &rhs) | |
Convert. More... | |
TransportMap (const FMatrix< T, N, N > &M) | |
Convert from matrix. More... | |
TransportMap (const FVector< T, N > &V) | |
Convert from vector. More... | |
const TransportFun< T, N > & | getComponent (int n) const |
Get component. More... | |
void | setComponent (int, const TransportFun< T, N > &) |
Set component. More... | |
TransportFun< T, N > & | operator[] (int) |
Get component. More... | |
const TransportFun< T, N > & | operator[] (int) const |
Get Component. More... | |
TransportMap | operator+ () const |
Unary plus. More... | |
TransportMap | operator- () const |
Unary minus. More... | |
TransportMap & | operator*= (const TransportFun< T, N > &rhs) |
Multiply and assign. More... | |
TransportMap & | operator/= (const TransportFun< T, N > &rhs) |
Divide and assign. More... | |
TransportMap & | operator*= (const T &rhs) |
Multiply and assign. More... | |
TransportMap & | operator/= (const T &rhs) |
Divide and assign. More... | |
TransportMap & | operator+= (const TransportMap &rhs) |
Add. More... | |
TransportMap & | operator-= (const TransportMap &rhs) |
Subtract. More... | |
TransportMap & | operator+= (const FVector< T, N > &) |
Add and assign. More... | |
TransportMap & | operator-= (const FVector< T, N > &) |
Subtract and assign. More... | |
TransportMap | inverse () const |
Inverse. More... | |
void | identity () |
Set to identity. More... | |
FVector< T, N > | constantTerm (const FVector< T, N > &P) const |
Evaluate map at point [b]P[/b]. More... | |
FVector< T, N > | constantTerm () const |
FMatrix< T, N, N > | linearTerms () const |
Extract Transport terms at origin. More... | |
TransportMap | substitute (const FMatrix< T, N, N > &rhs) const |
Substitute matrix into map. More... | |
TransportMap | substitute (const TransportMap &rhs) const |
Substitute map into map. More... | |
TransportMap | substituteInto (const FMatrix< T, N, N > &lhs) const |
Substitute map into matrix. More... | |
Protected Attributes | |
TransportFun< T, N > | data [N] |
Static Protected Attributes | |
static const int | SIZE = (N + 1) *(N + 2) / 2 |
Size of a component. More... | |
Transport map with values of type [b]T[/b] in [b]N[/b] variables.
Definition at line 39 of file TransportMap.h.
TransportMap< T, N >::TransportMap |
Default constructor.
Definition at line 42 of file TransportMap.hpp.
|
explicit |
|
explicit |
Convert from matrix.
Definition at line 57 of file TransportMap.hpp.
|
explicit |
Convert from vector.
Definition at line 65 of file TransportMap.hpp.
FVector< T, N > TransportMap< T, N >::constantTerm |
Evaluate map at origin. This is equivalent to extracting constant part.
Definition at line 227 of file TransportMap.hpp.
FVector< T, N > TransportMap< T, N >::constantTerm | ( | const FVector< T, N > & | P | ) | const |
Evaluate map at point [b]P[/b].
Definition at line 215 of file TransportMap.hpp.
const TransportFun< T, N > & TransportMap< T, N >::getComponent | ( | int | n | ) | const |
Get component.
Definition at line 71 of file TransportMap.hpp.
void TransportMap< T, N >::identity |
Set to identity.
Definition at line 209 of file TransportMap.hpp.
TransportMap< T, N > TransportMap< T, N >::inverse |
Inverse.
Definition at line 173 of file TransportMap.hpp.
References FLUMatrix< T, N >::inverse(), SIZE, and TransportMap< T, N >::substitute().
FMatrix< T, N, N > TransportMap< T, N >::linearTerms |
Extract Transport terms at origin.
Definition at line 239 of file TransportMap.hpp.
TransportMap< T, N > & TransportMap< T, N >::operator*= | ( | const T & | rhs | ) |
Multiply and assign.
Definition at line 131 of file TransportMap.hpp.
TransportMap< T, N > & TransportMap< T, N >::operator*= | ( | const TransportFun< T, N > & | rhs | ) |
Multiply and assign.
Definition at line 116 of file TransportMap.hpp.
TransportMap< T, N > TransportMap< T, N >::operator+ |
Unary plus.
Definition at line 102 of file TransportMap.hpp.
TransportMap< T, N > & TransportMap< T, N >::operator+= | ( | const FVector< T, N > & | rhs | ) |
Add and assign.
Definition at line 159 of file TransportMap.hpp.
TransportMap< T, N > & TransportMap< T, N >::operator+= | ( | const TransportMap< T, N > & | rhs | ) |
Add.
Definition at line 145 of file TransportMap.hpp.
TransportMap< T, N > TransportMap< T, N >::operator- |
Unary minus.
Definition at line 108 of file TransportMap.hpp.
TransportMap< T, N > & TransportMap< T, N >::operator-= | ( | const FVector< T, N > & | rhs | ) |
Subtract and assign.
Definition at line 166 of file TransportMap.hpp.
TransportMap< T, N > & TransportMap< T, N >::operator-= | ( | const TransportMap< T, N > & | rhs | ) |
Subtract.
Definition at line 152 of file TransportMap.hpp.
TransportMap< T, N > & TransportMap< T, N >::operator/= | ( | const T & | rhs | ) |
Divide and assign.
Definition at line 138 of file TransportMap.hpp.
TransportMap< T, N > & TransportMap< T, N >::operator/= | ( | const TransportFun< T, N > & | rhs | ) |
Divide and assign.
Definition at line 123 of file TransportMap.hpp.
References TransportFun< T, N >::inverse().
|
inline |
Get component.
Definition at line 91 of file TransportMap.hpp.
|
inline |
Get Component.
Definition at line 96 of file TransportMap.hpp.
void TransportMap< T, N >::setComponent | ( | int | index, |
const TransportFun< T, N > & | value | ||
) |
Set component.
Definition at line 81 of file TransportMap.hpp.
TransportMap< T, N > TransportMap< T, N >::substitute | ( | const FMatrix< T, N, N > & | rhs | ) | const |
Substitute matrix into map.
Definition at line 287 of file TransportMap.hpp.
Referenced by TransportMap< T, N >::inverse().
TransportMap< T, N > TransportMap< T, N >::substitute | ( | const TransportMap< T, N > & | rhs | ) | const |
Substitute map into map.
Definition at line 253 of file TransportMap.hpp.
References TransportMap< T, N >::data, and Hypervolume::n.
TransportMap< T, N > TransportMap< T, N >::substituteInto | ( | const FMatrix< T, N, N > & | lhs | ) | const |
Substitute map into matrix.
Definition at line 294 of file TransportMap.hpp.
Referenced by operator*().
|
protected |
Definition at line 144 of file TransportMap.h.
Referenced by TransportMap< T, N >::substitute().
|
staticprotected |
Size of a component.
Definition at line 141 of file TransportMap.h.