template
class
Taylor<class>
(Return to index)
A representation for a Taylor series in one variable,
whose coefficients are of type T. For some operations this class
assumes that the type T has particular operations, like PoissonBracket.
The class Taylor<T> is mainly meant for implementing a Lie generator
with one parameter as a Taylor series in this parameter. This permits
easy integration with respect to the parameter.
Type: |
Instantiable |
Include file: |
./FixedAlgebra/Taylor.hh |
Synopsis (including inherited members):
Documentation:
- Public members:
-
Taylor
(int)
;
- Construct a zero series of a given order.
-
inline T* begin
()
;
- Get pointer to beginning of series (zero-order term).
Version for non-constant series.
-
inline const T* begin
()const
;
- Get pointer to beginning of series (zero-order term).
Version for constant series.
-
void clear
()
;
- Clear all coefficients.
-
inline T* end
()
;
- Get pointer to end of series (one beyond highest term).
Version for non-constant series.
-
inline const T* end
()const
;
- Get pointer to end of series (one beyond highest term).
Version for constant series.
-
inline int getOrder
()const
;
- Return order of this series.
-
Taylor integrate
()const
;
- Integrate with respect to the variable.
-
Taylor& operator*=
(const T&)
;
- Multiply by scalar and assign.
-
Taylor& operator+=
(const Taylor&)
;
- Add series and assign.
-
Taylor operator-
()const
;
- Change sign of series.
-
Taylor& operator-=
(const Taylor&)
;
- Subtract series and assign.
-
Taylor& operator/=
(const T&)
;
- Divide by scalar and assign.
-
T& operator[]
(int)
;
- Get coefficient.
Return a reference to coefficient of order n.
Result is undefined, if n is out of range.
-
const T& operator[]
(int)const
;
- Get coefficient.
Return a reference to constant coefficient of order n.
Result is undefined, if n is out of range.
-
T sum
()const
;
- Return sum of series.
Documentation generated by fci on Mon Feb 7 11:41:54 2000