template
class
TransportFun<class,int>
(Return to index)
Transport function in N variables of type T.
All divide operations throw DivideError,
if the constant part of the divisor is zero.
The copy constructor, destructor, and assignment operator generated
by the compiler perform the correct operation. For speed reasons
they are not implemented.
Type: |
Instantiable |
Include file: |
./FixedAlgebra/TransportFun.hh |
Synopsis (including inherited members):
- Public members:
-
TransportFun
()
;
-
TransportFun
(const T&)
;
-
TransportFun
(int)
;
-
TransportFun& operator=
(const T&)
;
-
const T getCoefficient
(int)const
;
-
const T getCoefficient
(int,int)const
;
-
void setCoefficient
(int,const T&)
;
-
void setCoefficient
(int,int,const T&)
;
-
inline const T operator[]
(int)const
;
-
inline T& operator[]
(int)
;
-
inline const T operator()
(int,int)const
;
-
inline T& operator()
(int,int)
;
-
static TransportFun makeVariable
(int)
;
-
TransportFun operator+
()const
;
-
TransportFun operator-
()const
;
-
TransportFun& operator+=
(const TransportFun&)
;
-
TransportFun& operator-=
(const TransportFun&)
;
-
TransportFun& operator*=
(const TransportFun&)
;
-
TransportFun& operator/=
(const TransportFun&)
;
-
TransportFun& operator+=
(const T&)
;
-
TransportFun& operator-=
(const T&)
;
-
TransportFun& operator*=
(const T&)
;
-
TransportFun& operator/=
(const T&)
;
-
bool operator==
(const TransportFun&)const
;
-
bool operator==
(const T&)const
;
-
bool operator!=
(const TransportFun&)const
;
-
bool operator!=
(const T&)const
;
-
TransportFun inverse
()const
;
-
TransportFun multiply
(const TransportFun&)const
;
-
TransportFun<T,N> multiplyVariable
(int)const
;
-
T evaluate
(const FVector<T,N>&)const
;
-
TransportFun<T,N> substitute
(const TransportMap<T,N>&)const
;
-
TransportFun<T,N> substitute
(const FMatrix<T,N,N>&)const
;
-
TransportFun taylor
(const T[2])const
;
-
std::istream& get
(std::istream&)
;
-
std::ostream& put
(std::ostream&)const
;
Documentation:
- Public members:
-
TransportFun
()
;
- Default constructor.
Construct zero value.
-
TransportFun
(const T&)
;
- Conversion.
-
TransportFun
(int)
;
- Conversion.
-
T evaluate
(const FVector<T,N>&)const
;
- Evaluate TransportFun at point.
-
std::istream& get
(std::istream&)
;
- Read TransportFun on the stream is.
-
const T getCoefficient
(int)const
;
- Get coefficient.
Return value of the coefficient denoted by the index.
The index zero stands for the constant term,
any other value selects the derivative by the variable index+1.
Return zero, if index is out of range.
-
const T getCoefficient
(int,int)const
;
- Get coefficient.
Return value of the second-order coefficient denoted by indices.
Return zero, if indices are out of range.
-
TransportFun inverse
()const
;
- Approximate reciprocal value 1/(*this).
-
static TransportFun makeVariable
(int)
;
- Make variable.
Construct the variable identified by the index var,
with total of nVar variables.
-
TransportFun multiply
(const TransportFun&)const
;
- Multiplication truncated to order one.
-
TransportFun<T,N> multiplyVariable
(int)const
;
- Multiply by variable var.
-
bool operator!=
(const TransportFun&)const
;
- Inequality operator.
-
bool operator!=
(const T&)const
;
- Inequality with constant.
-
inline const T operator()
(int,int)const
;
- Get coefficient.
Return value of the second-order coefficient denoted by indices.
NOTE: i1 <= i2.
Result is undefined, if indices are out of range.
-
inline T& operator()
(int,int)
;
- Get coefficient.
Return a reference to the second-order coefficient denoted by indices.
NOTE: i1 <= i2.
Result is undefined, if indices are out of range.
-
TransportFun& operator*=
(const TransportFun&)
;
- Multiply and assign.
-
TransportFun& operator*=
(const T&)
;
- Multiply by constant and assign.
-
TransportFun operator+
()const
;
- Unary plus.
-
TransportFun& operator+=
(const TransportFun&)
;
- Add and assign.
-
TransportFun& operator+=
(const T&)
;
- Add constant and assign.
-
TransportFun operator-
()const
;
- Unary minus.
-
TransportFun& operator-=
(const TransportFun&)
;
- Subtract and assign.
-
TransportFun& operator-=
(const T&)
;
- Subtract constant and assign.
-
TransportFun& operator/=
(const TransportFun&)
;
- Approximate division and assignation.
-
TransportFun& operator/=
(const T&)
;
- Divide by constant and assign.
-
TransportFun& operator=
(const T&)
;
- Convert and assign.
-
bool operator==
(const TransportFun&)const
;
- Equality operator.
-
bool operator==
(const T&)const
;
- Equality with constant.
-
inline const T operator[]
(int)const
;
- Get coefficient.
Return value of the coefficient denoted by the index.
The index zero stands for the constant term,
any other value selects the derivative by the variable index+1.
Result is undefined, if index is out of range.
-
inline T& operator[]
(int)
;
- Get coefficient.
Return a reference to the coefficient denoted by the index.
Result is undefined, if index is out of range.
The index zero stands for the constant term,
any other value selects the derivative by the variable index+1.
-
std::ostream& put
(std::ostream&)const
;
- Write TransportFun on the stream os.
-
void setCoefficient
(int,const T&)
;
- Set coefficient.
Assign value of the coefficient denoted by the index.
The index zero stands for the constant term,
any other value selects the derivative by the variable index+1.
Ignore, if index is out of range.
-
void setCoefficient
(int,int,const T&)
;
- Set coefficient.
Assign value of the second-order coefficient denoted by indices.
Ignore, if indices are out of range.
-
TransportFun<T,N> substitute
(const TransportMap<T,N>&)const
;
- Substitute.
Substitute map m in TransportFun, giving new TransportFun.
-
TransportFun<T,N> substitute
(const FMatrix<T,N,N>&)const
;
- Substitute.
Substitute matrix M in TransportFun, giving new TransportFun.
-
TransportFun taylor
(const T[2])const
;
- Taylor series.
Expand Taylor series with coefficiens series and order one.
Documentation generated by fci on Mon Feb 7 11:41:56 2000