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