|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
Linear map with values of type [b]T[/b] in [b]N[/b] variables. More...
#include <LinearMap.h>
Public Member Functions | |
| LinearMap () | |
| Default constructor. | |
| LinearMap (const FVps< T, N > &rhs) | |
| Convert from general map. | |
| LinearMap (const FMatrix< T, N, N > &M) | |
| Convert from matrix. | |
| LinearMap (const FVector< T, N > &V) | |
| Convert from vector. | |
| const LinearFun< T, N > & | getComponent (int n) const |
| Get component. | |
| void | setComponent (int, const LinearFun< T, N > &) |
| Set component. | |
| LinearFun< T, N > & | operator[] (int) |
| Get component. | |
| const LinearFun< T, N > & | operator[] (int) const |
| Get Component. | |
| LinearMap | operator+ () const |
| Unary plus. | |
| LinearMap | operator- () const |
| Unary minus. | |
| LinearMap & | operator*= (const LinearFun< T, N > &rhs) |
| Multiply and assign. | |
| LinearMap & | operator/= (const LinearFun< T, N > &rhs) |
| Divide and assign. | |
| LinearMap & | operator*= (const T &rhs) |
| Multiply and assign. | |
| LinearMap & | operator/= (const T &rhs) |
| Divide and assign. | |
| LinearMap & | operator+= (const LinearMap &rhs) |
| Add. | |
| LinearMap & | operator-= (const LinearMap &rhs) |
| Subtract. | |
| LinearMap & | operator+= (const FVector< T, N > &) |
| Add and assign. | |
| LinearMap & | operator-= (const FVector< T, N > &) |
| Subtract and assign. | |
| std::istream & | get (std::istream &is) |
| Get a LinearMap from stream [b]is[/b]. | |
| std::ostream & | put (std::ostream &os) const |
| Put a LinearMap to stream [b]os[/b]. | |
| LinearMap | inverse () const |
| Inverse. | |
| void | identity () |
| Set to identity. | |
| FVector< T, N > | constantTerm (const FVector< T, N > &P) const |
| Evaluate map at point [b]P[/b]. | |
| FVector< T, N > | constantTerm () const |
| FMatrix< T, N, N > | linearTerms () const |
| Extract linear terms at origin. | |
| LinearMap | substitute (const FMatrix< T, N, N > &rhs) const |
| Substitute matrix into map. | |
| LinearMap | substitute (const LinearMap &rhs) const |
| Substitute map into map. | |
| LinearMap | substituteInto (const FMatrix< T, N, N > &lhs) const |
| Substitute map into matrix. | |
Protected Attributes | |
| LinearFun< T, N > | data [N] |
Linear map with values of type [b]T[/b] in [b]N[/b] variables.
Definition at line 38 of file LinearMap.h.
| LinearMap< T, N >::LinearMap | ( | ) |
Default constructor.
Definition at line 38 of file LinearMap.hpp.
References data.
Referenced by get(), inverse(), operator*=(), operator*=(), operator+(), operator+=(), operator+=(), operator-(), operator-=(), operator-=(), operator/=(), operator/=(), substitute(), substitute(), and substituteInto().
Evaluate map at origin. This is equivalent to extracting constant part.
Definition at line 235 of file LinearMap.hpp.
References data.
| FVector< T, N > LinearMap< T, N >::constantTerm | ( | const FVector< T, N > & | P | ) | const |
Evaluate map at point [b]P[/b].
Definition at line 220 of file LinearMap.hpp.
References data.
Referenced by inverse().
| std::istream & LinearMap< T, N >::get | ( | std::istream & | is | ) |
Get a LinearMap from stream [b]is[/b].
Definition at line 168 of file LinearMap.hpp.
References data, get(), and LinearMap().
Referenced by get(), and operator>>().
| void LinearMap< T, N >::identity | ( | ) |
Set to identity.
Definition at line 214 of file LinearMap.hpp.
Inverse.
Definition at line 201 of file LinearMap.hpp.
References constantTerm(), FLUMatrix< T, N >::inverse(), LinearMap(), and linearTerms().
Extract linear terms at origin.
Definition at line 243 of file LinearMap.hpp.
References data.
Referenced by inverse().
| LinearMap< T, N > & LinearMap< T, N >::operator*= | ( | const LinearFun< T, N > & | rhs | ) |
Multiply and assign.
Definition at line 111 of file LinearMap.hpp.
References data, and LinearMap().
Multiply and assign.
Definition at line 126 of file LinearMap.hpp.
References data, and LinearMap().
Unary plus.
Definition at line 97 of file LinearMap.hpp.
References LinearMap().
| LinearMap< T, N > & LinearMap< T, N >::operator+= | ( | const FVector< T, N > & | rhs | ) |
Add and assign.
Definition at line 154 of file LinearMap.hpp.
References data, and LinearMap().
| LinearMap< T, N > & LinearMap< T, N >::operator+= | ( | const LinearMap< T, N > & | rhs | ) |
Add.
Definition at line 140 of file LinearMap.hpp.
References data, and LinearMap().
Unary minus.
Definition at line 103 of file LinearMap.hpp.
References data, and LinearMap().
| LinearMap< T, N > & LinearMap< T, N >::operator-= | ( | const FVector< T, N > & | rhs | ) |
Subtract and assign.
Definition at line 161 of file LinearMap.hpp.
References data, and LinearMap().
| LinearMap< T, N > & LinearMap< T, N >::operator-= | ( | const LinearMap< T, N > & | rhs | ) |
Subtract.
Definition at line 147 of file LinearMap.hpp.
References data, and LinearMap().
| LinearMap< T, N > & LinearMap< T, N >::operator/= | ( | const LinearFun< T, N > & | rhs | ) |
Divide and assign.
Definition at line 118 of file LinearMap.hpp.
References data, LinearFun< T, N >::inverse(), and LinearMap().
Divide and assign.
Definition at line 133 of file LinearMap.hpp.
References data, and LinearMap().
| std::ostream & LinearMap< T, N >::put | ( | std::ostream & | os | ) | const |
Put a LinearMap to stream [b]os[/b].
Definition at line 193 of file LinearMap.hpp.
References data.
Referenced by operator<<().
| LinearMap< T, N > LinearMap< T, N >::substitute | ( | const FMatrix< T, N, N > & | rhs | ) | const |
Substitute matrix into map.
Definition at line 274 of file LinearMap.hpp.
References data, and LinearMap().
| LinearMap< T, N > LinearMap< T, N >::substitute | ( | const LinearMap< T, N > & | rhs | ) | const |
Substitute map into map.
Definition at line 257 of file LinearMap.hpp.
References data, and LinearMap().
| LinearMap< T, N > LinearMap< T, N >::substituteInto | ( | const FMatrix< T, N, N > & | lhs | ) | const |
Substitute map into matrix.
Definition at line 291 of file LinearMap.hpp.
References data, and LinearMap().
Referenced by operator*().
Definition at line 146 of file LinearMap.h.
Referenced by constantTerm(), constantTerm(), get(), getComponent(), LinearMap(), LinearMap(), LinearMap(), LinearMap(), linearTerms(), operator*=(), operator*=(), operator+=(), operator+=(), operator-(), operator-=(), operator-=(), operator/=(), operator/=(), operator[](), operator[](), put(), setComponent(), substitute(), substitute(), and substituteInto().