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

| TransportFun< T, N > & TransportFun< T, N >::operator/= | ( | const T & | y | ) |
Divide by constant and assign.
Definition at line 197 of file TransportFun.hpp.
| TransportFun< T, N > & TransportFun< T, N >::operator= | ( | const T & | y | ) |
| bool TransportFun< T, N >::operator== | ( | const TransportFun< T, N > & | y | ) | const |
Equality operator.
Definition at line 205 of file TransportFun.hpp.
References TransportFun< T, N >::data, and SIZE.
| bool TransportFun< T, N >::operator== | ( | const T & | y | ) | const |
|
inline |
Get coefficient.
Definition at line 100 of file TransportFun.hpp.
|
inline |
Get coefficient.
Definition at line 106 of file TransportFun.hpp.
| 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 endl(), Inform::precision(), and T.

| void TransportFun< T, N >::setCoefficient | ( | int | index, |
| const T & | value | ||
| ) |
Set coefficient.
Definition at line 85 of file TransportFun.hpp.
Referenced by TransportMapper::applyTransportMap().
| void TransportFun< T, N >::setCoefficient | ( | int | index1, |
| int | index2, | ||
| const T & | value | ||
| ) |
Set coefficient.
Definition at line 91 of file TransportFun.hpp.
| TransportFun< T, N > TransportFun< T, N >::substitute | ( | const TransportMap< T, N > & | m | ) | const |
| TransportFun< T, N > TransportFun< T, N >::substitute | ( | const FMatrix< T, N, N > & | M | ) | const |
Substitute.
Definition at line 304 of file TransportFun.hpp.
| TransportFun< T, N > TransportFun< T, N >::taylor | ( | const T | series[2] | ) | const |
|
private |
Representation.
Definition at line 192 of file TransportFun.h.
Referenced by TransportFun< T, N >::makeVariable(), TransportFun< T, N >::multiply(), TransportFun< T, N >::operator+=(), TransportFun< T, N >::operator-(), TransportFun< T, N >::operator-=(), TransportFun< T, N >::operator/=(), TransportFun< T, N >::operator==(), and TransportFun< T, N >::substitute().
|
staticprivate |
Size of representation.
Definition at line 187 of file TransportFun.h.
1.8.5