Destructor
Return a copy of this object from the heap. The caller is responsible for
deleting the pointer.
Copy constructor (deep copy)
Return a copy of this object from the heap. The caller is responsible
for deleting this pointer.
Prerequisite
Synopsis
A OddPolynomialExample
OddPolynomial<Float> pf(3); // Third order polynomial - coeffs 0 by default
pf.setCoefficient(0, 1.0);
pf[1] = 2.0; // 2x^3 + 1x^1
pf(2); // == 18
Template Type Argument Requirements (T)
Thrown Exceptions
To Do
Member Description
OddPolynomial() : OddPolynomialParam<T>()
Constructs a first order polynomial, with a coeficcient of 0.0.
explicit OddPolynomial(uInt order) : order<T>(order)
Makes a polynomial of the given order, with all coeficcients set to
zero.
OddPolynomial(const OddPolynomial<T> &other) : other<T>(other)
Copy constructor/assignment (deep copy)
template <class W> OddPolynomial(const OddPolynomial<W> &other) : OddPolynomialParam<T>(other)
OddPolynomial<T> &operator=(const OddPolynomial<T> &other)
virtual ~OddPolynomial()
virtual T eval(typename Function1D<T>::FunctionArg x) const
Evaluate the polynomial at x.
virtual Function<T> *clone() const
virtual Function<typename FunctionTraits<T>::DiffType> *cloneAD() const
virtual Function<typename FunctionTraits<T>::BaseType> *cloneNonAD() const
template <class T> class OddPolynomial_PS<AutoDiff<T> > : public OddPolynomialParam<AutoDiff<T> >
Interface
Description
Synopsis
The name OddPolynomial_PS is only for cxx2html
documentation problems. Use OddPolynomial in your code.
Member Description
OddPolynomial_PS() : OddPolynomialParam<AutoDiff<T> >()
Constructs one dimensional OddPolynomials.
explicit OddPolynomial_PS(uInt order) : order<OddPolynomialParam<T> >(order)
OddPolynomial_PS(const OddPolynomial_PS<AutoDiff<T> > &other) : other<AutoDiff<T> >(other)
template <class W> OddPolynomial_PS(const OddPolynomial_PS<W> &other) : OddPolynomialParam<other<T> >(other)
OddPolynomial_PS<AutoDiff<T> > & operator=(const OddPolynomial_PS<AutoDiff<T> > &other)
Copy assignment (deep copy)
virtual ~OddPolynomial_PS()
Destructor
virtual AutoDiff<T> eval(typename Function<AutoDiff<T> >::FunctionArg x) const
Evaluate the polynomial and its derivatives at x wrt
to the coefficients.
virtual Function<AutoDiff<T> > *clone() const
virtual Function<typename FunctionTraits<Traits<T> >::DiffType> *cloneAD() const
virtual Function<typename FunctionTraits<Traits<T> >::BaseType> *cloneNonAD() const