OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
TransportFun< T, N > Class Template Reference

Transport function in N variables of type T. More...

#include <TransportFun.h>

Collaboration diagram for TransportFun< T, N >:

Public Member Functions

 TransportFun ()
 Default constructor.
 TransportFun (const T &)
 Conversion.
 TransportFun (int)
 Conversion.
TransportFunoperator= (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.
TransportFunoperator+= (const TransportFun &y)
 Add and assign.
TransportFunoperator-= (const TransportFun &y)
 Subtract and assign.
TransportFunoperator*= (const TransportFun &y)
 Multiply and assign.
TransportFunoperator/= (const TransportFun &y)
 Approximate division and assignation.
TransportFunoperator+= (const T &y)
 Add constant and assign.
TransportFunoperator-= (const T &y)
 Subtract constant and assign.
TransportFunoperator*= (const T &y)
 Multiply by constant and assign.
TransportFunoperator/= (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.
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

data [SIZE]
 Representation.

Static Private Attributes

static const int SIZE = (N + 1) *(N + 2) / 2
 Size of representation.

Detailed Description

template<class T, int N>
class TransportFun< T, N >

Transport function in N variables of type T.

Definition at line 40 of file TransportFun.h.

Constructor & Destructor Documentation

◆ TransportFun() [1/3]

◆ TransportFun() [2/3]

template<class T, int N>
TransportFun< T, N >::TransportFun ( const T & rhs)

Conversion.

Definition at line 46 of file TransportFun.hpp.

References data, and SIZE.

◆ TransportFun() [3/3]

template<class T, int N>
TransportFun< T, N >::TransportFun ( int rhs)

Conversion.

Definition at line 53 of file TransportFun.hpp.

References data, and SIZE.

Member Function Documentation

◆ evaluate()

template<class T, int N>
T TransportFun< T, N >::evaluate ( const FVector< T, N > & rhs) const

Evaluate TransportFun at point.

Definition at line 282 of file TransportFun.hpp.

References data.

◆ get()

template<class T, int N>
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>>().

◆ getCoefficient() [1/2]

template<class T, int N>
const T TransportFun< T, N >::getCoefficient ( int index) const

Get coefficient.

Definition at line 68 of file TransportFun.hpp.

References data.

◆ getCoefficient() [2/2]

template<class T, int N>
const T TransportFun< T, N >::getCoefficient ( int index1,
int index2 ) const

Get coefficient.

Definition at line 74 of file TransportFun.hpp.

References data.

◆ inverse()

template<class T, int N>
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/=().

Here is the call graph for this function:

◆ makeVariable()

template<class T, int N>
TransportFun< T, N > TransportFun< T, N >::makeVariable ( int var)
static

Make variable.

Definition at line 126 of file TransportFun.hpp.

References data, SIZE, and TransportFun().

Here is the call graph for this function:

◆ multiply()

template<class T, int N>
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/=().

Here is the call graph for this function:

◆ multiplyVariable()

template<class T, int N>
TransportFun< T, N > TransportFun< T, N >::multiplyVariable ( int var) const

Multiply by variable var.

References TransportFun().

Here is the call graph for this function:

◆ operator!=() [1/2]

template<class T, int N>
bool TransportFun< T, N >::operator!= ( const T & y) const
inline

Inequality with constant.

Definition at line 233 of file TransportFun.hpp.

◆ operator!=() [2/2]

template<class T, int N>
bool TransportFun< T, N >::operator!= ( const TransportFun< T, N > & y) const
inline

Inequality operator.

Definition at line 227 of file TransportFun.hpp.

References TransportFun().

Here is the call graph for this function:

◆ operator()() [1/2]

template<class T, int N>
T & TransportFun< T, N >::operator() ( int i1,
int i2 )
inline

Get coefficient.

Definition at line 119 of file TransportFun.hpp.

References data.

◆ operator()() [2/2]

template<class T, int N>
const T TransportFun< T, N >::operator() ( int i1,
int i2 ) const
inline

Get coefficient.

Definition at line 112 of file TransportFun.hpp.

References data.

◆ operator*=() [1/2]

template<class T, int N>
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().

Here is the call graph for this function:

◆ operator*=() [2/2]

template<class T, int N>
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().

Here is the call graph for this function:

◆ operator+()

template<class T, int N>
TransportFun< T, N > TransportFun< T, N >::operator+ ( ) const
inline

Unary plus.

Definition at line 135 of file TransportFun.hpp.

References TransportFun().

Here is the call graph for this function:

◆ operator+=() [1/2]

template<class T, int N>
TransportFun< T, N > & TransportFun< T, N >::operator+= ( const T & y)
inline

Add constant and assign.

Definition at line 176 of file TransportFun.hpp.

References data, and TransportFun().

Here is the call graph for this function:

◆ operator+=() [2/2]

template<class T, int N>
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().

Here is the call graph for this function:

◆ operator-()

template<class T, int N>
TransportFun< T, N > TransportFun< T, N >::operator- ( ) const

Unary minus.

Definition at line 141 of file TransportFun.hpp.

References data, SIZE, and TransportFun().

Here is the call graph for this function:

◆ operator-=() [1/2]

template<class T, int N>
TransportFun< T, N > & TransportFun< T, N >::operator-= ( const T & y)
inline

Subtract constant and assign.

Definition at line 183 of file TransportFun.hpp.

References data, and TransportFun().

Here is the call graph for this function:

◆ operator-=() [2/2]

template<class T, int N>
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().

Here is the call graph for this function:

◆ operator/=() [1/2]

template<class T, int N>
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().

Here is the call graph for this function:

◆ operator/=() [2/2]

template<class T, int N>
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().

Here is the call graph for this function:

◆ operator=()

template<class T, int N>
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().

Here is the call graph for this function:

◆ operator==() [1/2]

template<class T, int N>
bool TransportFun< T, N >::operator== ( const T & y) const

Equality with constant.

Definition at line 215 of file TransportFun.hpp.

References data, and SIZE.

◆ operator==() [2/2]

template<class T, int N>
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().

Here is the call graph for this function:

◆ operator[]() [1/2]

template<class T, int N>
T & TransportFun< T, N >::operator[] ( int index)
inline

Get coefficient.

Definition at line 106 of file TransportFun.hpp.

References data.

◆ operator[]() [2/2]

template<class T, int N>
const T TransportFun< T, N >::operator[] ( int index) const
inline

Get coefficient.

Definition at line 100 of file TransportFun.hpp.

References data.

◆ put()

template<class T, int N>
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<<().

◆ setCoefficient() [1/2]

template<class T, int N>
void TransportFun< T, N >::setCoefficient ( int index,
const T & value )

Set coefficient.

Definition at line 85 of file TransportFun.hpp.

References data.

◆ setCoefficient() [2/2]

template<class T, int N>
void TransportFun< T, N >::setCoefficient ( int index1,
int index2,
const T & value )

Set coefficient.

Definition at line 91 of file TransportFun.hpp.

References data.

◆ substitute() [1/2]

template<class T, int N>
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().

Here is the call graph for this function:

◆ substitute() [2/2]

template<class T, int N>
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().

Here is the call graph for this function:

◆ taylor()

template<class T, int N>
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().

Here is the call graph for this function:

Member Data Documentation

◆ data

◆ SIZE

template<class T, int N>
const int TransportFun< T, N >::SIZE = (N + 1) *(N + 2) / 2
staticprivate

The documentation for this class was generated from the following files: