OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
A representation for a Taylor series in one variable,. More...
#include <Taylor.h>
Public Member Functions | |
Taylor (int) | |
Construct a zero series of a given order. More... | |
Taylor () | |
Taylor (const Taylor &) | |
~Taylor () | |
const Taylor & | operator= (const Taylor &) |
T * | begin () |
Get pointer to beginning of series (zero-order term). More... | |
const T * | begin () const |
Get pointer to beginning of series (zero-order term). More... | |
T * | end () |
Get pointer to end of series (one beyond highest term). More... | |
const T * | end () const |
Get pointer to end of series (one beyond highest term). More... | |
T & | operator[] (int n) |
Get coefficient. More... | |
const T & | operator[] (int n) const |
Get coefficient. More... | |
Taylor | operator- () const |
Change sign of series. More... | |
Taylor & | operator*= (const T &) |
Multiply by scalar and assign. More... | |
Taylor & | operator/= (const T &) |
Divide by scalar and assign. More... | |
Taylor & | operator+= (const Taylor &) |
Add series and assign. More... | |
Taylor & | operator-= (const Taylor &) |
Subtract series and assign. More... | |
void | clear () |
Clear all coefficients. More... | |
Taylor | integrate () const |
Integrate with respect to the variable. More... | |
T | sum () const |
Return sum of series. More... | |
int | getOrder () const |
Return order of this series. More... | |
Private Attributes | |
Array1D< T > | itsCoeffs |
A representation for a Taylor series in one variable,.
Construct a zero series of a given order.
Definition at line 33 of file Taylor.hpp.
Definition at line 40 of file Taylor.hpp.
Definition at line 47 of file Taylor.hpp.
Definition at line 54 of file Taylor.hpp.
|
inline |
Get pointer to beginning of series (zero-order term).
Definition at line 68 of file Taylor.hpp.
Referenced by Taylor< T >::integrate(), operator*(), operator+(), Taylor< T >::operator+=(), Taylor< T >::operator-(), operator-(), Taylor< T >::operator-=(), and operator/().
|
inline |
Get pointer to beginning of series (zero-order term).
Definition at line 75 of file Taylor.hpp.
void Taylor< T >::clear |
Clear all coefficients.
Definition at line 160 of file Taylor.hpp.
References begin(), and end().
|
inline |
Get pointer to end of series (one beyond highest term).
Definition at line 82 of file Taylor.hpp.
Referenced by operator*(), operator+(), Taylor< T >::operator+=(), operator-(), Taylor< T >::operator-=(), and operator/().
|
inline |
Get pointer to end of series (one beyond highest term).
Definition at line 89 of file Taylor.hpp.
|
inline |
Return order of this series.
Definition at line 192 of file Taylor.hpp.
Referenced by operator*(), operator+(), Taylor< T >::operator+=(), operator-(), Taylor< T >::operator-=(), operator/(), operator<<(), and PoissonBracket().
Integrate with respect to the variable.
Definition at line 167 of file Taylor.hpp.
References Taylor< T >::begin(), begin(), end(), and Attrib::Legacy::Distribution::T.
Multiply by scalar and assign.
Definition at line 116 of file Taylor.hpp.
References begin(), and end().
Add series and assign.
Definition at line 132 of file Taylor.hpp.
References Taylor< T >::begin(), begin(), Taylor< T >::end(), end(), Taylor< T >::getOrder(), and Hypervolume::n.
Change sign of series.
Definition at line 108 of file Taylor.hpp.
References Taylor< T >::begin(), begin(), and end().
Subtract series and assign.
Definition at line 146 of file Taylor.hpp.
References Taylor< T >::begin(), begin(), Taylor< T >::end(), end(), Taylor< T >::getOrder(), and Hypervolume::n.
Divide by scalar and assign.
Definition at line 124 of file Taylor.hpp.
References begin(), and end().
Definition at line 60 of file Taylor.hpp.
References Taylor< T >::itsCoeffs.
|
inline |
Get coefficient.
Definition at line 96 of file Taylor.hpp.
|
inline |
Get coefficient.
Definition at line 102 of file Taylor.hpp.
T Taylor< T >::sum |
Return sum of series.
Definition at line 185 of file Taylor.hpp.
References begin(), end(), and Attrib::Legacy::Distribution::T.
Definition at line 108 of file Taylor.h.
Referenced by Taylor< T >::operator=().