|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
Transport function in N variables of type T. More...
#include <TransportFun.h>
Public Member Functions | |
| TransportFun () | |
| Default constructor. | |
| TransportFun (const T &) | |
| Conversion. | |
| TransportFun (int) | |
| Conversion. | |
| TransportFun & | operator= (const T &y) |
| Convert and assign. | |
| const T | getCoefficient (int index) const |
| Get coefficient. | |
| const T | getCoefficient (int index1, int index2) const |
| Get coefficient. | |
| void | setCoefficient (int index, const T &value) |
| Set coefficient. | |
| void | setCoefficient (int index1, int index2, const T &value) |
| Set coefficient. | |
| const T | operator[] (int) const |
| Get coefficient. | |
| T & | operator[] (int) |
| Get coefficient. | |
| const T | operator() (int i1, int i2) const |
| Get coefficient. | |
| T & | operator() (int i1, int i2) |
| Get coefficient. | |
| TransportFun | operator+ () const |
| Unary plus. | |
| TransportFun | operator- () const |
| Unary minus. | |
| TransportFun & | operator+= (const TransportFun &y) |
| Add and assign. | |
| TransportFun & | operator-= (const TransportFun &y) |
| Subtract and assign. | |
| TransportFun & | operator*= (const TransportFun &y) |
| Multiply and assign. | |
| TransportFun & | operator/= (const TransportFun &y) |
| Approximate division and assignation. | |
| TransportFun & | operator+= (const T &y) |
| Add constant and assign. | |
| TransportFun & | operator-= (const T &y) |
| Subtract constant and assign. | |
| TransportFun & | operator*= (const T &y) |
| Multiply by constant and assign. | |
| TransportFun & | operator/= (const T &y) |
| Divide by constant and assign. | |
| bool | operator== (const TransportFun &y) const |
| Equality operator. | |
| bool | operator== (const T &y) const |
| Equality with constant. | |
| bool | operator!= (const TransportFun &y) const |
| Inequality operator. | |
| bool | operator!= (const T &y) const |
| Inequality with constant. | |
| TransportFun | inverse () const |
| Approximate reciprocal value 1/(*this). | |
| TransportFun | multiply (const TransportFun &y) const |
| Multiplication truncated to order one. | |
| TransportFun< T, N > | multiplyVariable (int var) const |
| Multiply by variable var. | |
| T | evaluate (const FVector< T, N > &) const |
| Evaluate TransportFun at point. | |
| TransportFun< T, N > | substitute (const TransportMap< T, N > &m) const |
| Substitute. | |
| TransportFun< T, N > | substitute (const FMatrix< T, N, N > &M) const |
| Substitute. | |
| TransportFun | taylor (const T series[2]) const |
| Taylor series. | |
| std::istream & | get (std::istream &is) |
| Read TransportFun on the stream [b]is[/b]. | |
| std::ostream & | put (std::ostream &os) const |
| Write TransportFun on the stream [b]os[/b]. | |
Static Public Member Functions | |
| static TransportFun | makeVariable (int var) |
| Make variable. | |
Private Attributes | |
| T | data [SIZE] |
| Representation. | |
Static Private Attributes | |
| static const int | SIZE = (N + 1) *(N + 2) / 2 |
| Size of representation. | |
Transport function in N variables of type T.
Definition at line 40 of file TransportFun.h.
| TransportFun< T, N >::TransportFun | ( | ) |
Default constructor.
Definition at line 40 of file TransportFun.hpp.
Referenced by inverse(), makeVariable(), multiply(), multiplyVariable(), operator!=(), operator*=(), operator*=(), operator+(), operator+=(), operator+=(), operator-(), operator-=(), operator-=(), operator/=(), operator/=(), operator=(), operator==(), substitute(), substitute(), and taylor().
| TransportFun< T, N >::TransportFun | ( | const T & | rhs | ) |
| TransportFun< T, N >::TransportFun | ( | int | rhs | ) |
| T TransportFun< T, N >::evaluate | ( | const FVector< T, N > & | rhs | ) | const |
| std::istream & TransportFun< T, N >::get | ( | std::istream & | is | ) |
Read TransportFun on the stream [b]is[/b].
Definition at line 340 of file TransportFun.hpp.
References data, and Tps< T >::truncOrder.
Referenced by operator>>().
| const T TransportFun< T, N >::getCoefficient | ( | int | index | ) | const |
| const T TransportFun< T, N >::getCoefficient | ( | int | index1, |
| int | index2 ) const |
| TransportFun< T, N > TransportFun< T, N >::inverse | ( | ) | const |
Approximate reciprocal value 1/(*this).
Definition at line 239 of file TransportFun.hpp.
References data, taylor(), and TransportFun().
Referenced by operator/(), operator/(), operator/=(), and TransportMap< T, N >::operator/=().
|
static |
Make variable.
Definition at line 126 of file TransportFun.hpp.
References data, SIZE, and TransportFun().
| TransportFun< T, N > TransportFun< T, N >::multiply | ( | const TransportFun< T, N > & | y | ) | const |
Multiplication truncated to order one.
Definition at line 252 of file TransportFun.hpp.
References data, SIZE, and TransportFun().
Referenced by operator*(), operator*=(), operator/(), and operator/=().
| TransportFun< T, N > TransportFun< T, N >::multiplyVariable | ( | int | var | ) | const |
|
inline |
Inequality with constant.
Definition at line 233 of file TransportFun.hpp.
|
inline |
Inequality operator.
Definition at line 227 of file TransportFun.hpp.
References TransportFun().
|
inline |
|
inline |
| TransportFun< T, N > & TransportFun< T, N >::operator*= | ( | const T & | y | ) |
Multiply by constant and assign.
Definition at line 190 of file TransportFun.hpp.
References data, SIZE, and TransportFun().
| TransportFun< T, N > & TransportFun< T, N >::operator*= | ( | const TransportFun< T, N > & | y | ) |
Multiply and assign.
Definition at line 163 of file TransportFun.hpp.
References multiply(), and TransportFun().
|
inline |
Unary plus.
Definition at line 135 of file TransportFun.hpp.
References TransportFun().
|
inline |
Add constant and assign.
Definition at line 176 of file TransportFun.hpp.
References data, and TransportFun().
| TransportFun< T, N > & TransportFun< T, N >::operator+= | ( | const TransportFun< T, N > & | y | ) |
Add and assign.
Definition at line 149 of file TransportFun.hpp.
References data, SIZE, and TransportFun().
| TransportFun< T, N > TransportFun< T, N >::operator- | ( | ) | const |
Unary minus.
Definition at line 141 of file TransportFun.hpp.
References data, SIZE, and TransportFun().
|
inline |
Subtract constant and assign.
Definition at line 183 of file TransportFun.hpp.
References data, and TransportFun().
| TransportFun< T, N > & TransportFun< T, N >::operator-= | ( | const TransportFun< T, N > & | y | ) |
Subtract and assign.
Definition at line 156 of file TransportFun.hpp.
References data, SIZE, and TransportFun().
| TransportFun< T, N > & TransportFun< T, N >::operator/= | ( | const T & | y | ) |
Divide by constant and assign.
Definition at line 197 of file TransportFun.hpp.
References data, SIZE, and TransportFun().
| TransportFun< T, N > & TransportFun< T, N >::operator/= | ( | const TransportFun< T, N > & | y | ) |
Approximate division and assignation.
Definition at line 169 of file TransportFun.hpp.
References data, inverse(), multiply(), and TransportFun().
| TransportFun< T, N > & TransportFun< T, N >::operator= | ( | const T & | y | ) |
Convert and assign.
Definition at line 60 of file TransportFun.hpp.
References data, SIZE, and TransportFun().
| bool TransportFun< T, N >::operator== | ( | const T & | y | ) | const |
| bool TransportFun< T, N >::operator== | ( | const TransportFun< T, N > & | y | ) | const |
Equality operator.
Definition at line 205 of file TransportFun.hpp.
References data, SIZE, and TransportFun().
|
inline |
|
inline |
| std::ostream & TransportFun< T, N >::put | ( | std::ostream & | os | ) | const |
Write TransportFun on the stream [b]os[/b].
Definition at line 395 of file TransportFun.hpp.
References data.
Referenced by operator<<().
| void TransportFun< T, N >::setCoefficient | ( | int | index, |
| const T & | value ) |
| void TransportFun< T, N >::setCoefficient | ( | int | index1, |
| int | index2, | ||
| const T & | value ) |
| TransportFun< T, N > TransportFun< T, N >::substitute | ( | const FMatrix< T, N, N > & | M | ) | const |
Substitute.
Definition at line 304 of file TransportFun.hpp.
References substitute(), and TransportFun().
| TransportFun< T, N > TransportFun< T, N >::substitute | ( | const TransportMap< T, N > & | m | ) | const |
Substitute.
Definition at line 310 of file TransportFun.hpp.
References data, and TransportFun().
Referenced by substitute().
| TransportFun< T, N > TransportFun< T, N >::taylor | ( | const T | series[2] | ) | const |
Taylor series.
Definition at line 332 of file TransportFun.hpp.
References TransportFun().
Referenced by inverse().
|
private |
Representation.
Definition at line 192 of file TransportFun.h.
Referenced by evaluate(), get(), getCoefficient(), getCoefficient(), inverse(), makeVariable(), multiply(), operator()(), operator()(), operator*=(), operator+=(), operator+=(), operator-(), operator-=(), operator-=(), operator/=(), operator/=(), operator=(), operator==(), operator==(), operator[](), operator[](), put(), setCoefficient(), setCoefficient(), substitute(), TransportFun(), TransportFun(), and TransportFun().
|
staticprivate |
Size of representation.
Definition at line 187 of file TransportFun.h.
Referenced by makeVariable(), multiply(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), operator==(), operator==(), TransportFun(), TransportFun(), and TransportFun().