26#ifndef SCIMATH_EVENPOLYNOMIAL_H
27#define SCIMATH_EVENPOLYNOMIAL_H
30#include <casacore/casa/aips.h>
31#include <casacore/scimath/Functionals/EvenPolynomialParam.h>
32#include <casacore/scimath/Functionals/Function1D.h>
33#include <casacore/scimath/Mathematics/AutoDiff.h>
34#include <casacore/scimath/Mathematics/AutoDiffMath.h>
129#define EvenPolynomial_PS EvenPolynomial
160 EvenPolynomial_PS<AutoDiff<T> > &
165 virtual ~EvenPolynomial_PS() {}
185 *cloneNonAD()
const {
197#undef EvenPolynomial_PS
202#ifndef CASACORE_NO_AUTO_TEMPLATES
203#include <casacore/scimath/Functionals/EvenPolynomial.tcc>
204#include <casacore/scimath/Functionals/EvenPolynomial2.tcc>
#define EvenPolynomial_PS
uInt order() const
What is the order of the polynomial, i.e.
EvenPolynomialParam< T > & operator=(const EvenPolynomialParam< T > &other)
EvenPolynomial_PS(uInt order)
virtual Function< typename FunctionTraits< AutoDiff< T > >::BaseType > * cloneNonAD() const
EvenPolynomial_PS(const EvenPolynomial_PS< AutoDiff< T > > &other)
Copy constructor (deep copy)
EvenPolynomial_PS()
Constructs one dimensional EvenPolynomials.
virtual Function< AutoDiff< T > > * clone() const
Return a copy of this object from the heap.
virtual ~EvenPolynomial_PS()
Destructor.
EvenPolynomial_PS< AutoDiff< T > > & operator=(const EvenPolynomial_PS< AutoDiff< T > > &other)
Copy assignment (deep copy)
virtual Function< typename FunctionTraits< AutoDiff< T > >::DiffType > * cloneAD() const
EvenPolynomial_PS(const EvenPolynomial_PS< W > &other)
virtual AutoDiff< T > eval(typename Function< AutoDiff< T > >::FunctionArg x) const
Evaluate the polynomial and its derivatives at x wrt to the coefficients.
EvenPolynomial< T > & operator=(const EvenPolynomial< T > &other)
virtual T eval(typename Function1D< T >::FunctionArg x) const
Evaluate the polynomial at x.
EvenPolynomial()
Constructs a zeroth order polynomial, with a coeficcient of 0.0.
virtual ~EvenPolynomial()
Destructor.
EvenPolynomial(const EvenPolynomial< W > &other)
virtual Function< typename FunctionTraits< T >::DiffType > * cloneAD() const
EvenPolynomial(const EvenPolynomial< T > &other)
Copy constructor/assignment (deep copy)
virtual Function< typename FunctionTraits< T >::BaseType > * cloneNonAD() const
virtual Function< T > * clone() const
Return a copy of this object from the heap.
EvenPolynomial(uInt order)
Makes a polynomial of the given order, with all coeficcients set to zero.
FunctionParam< T > param_p
The parameters and masks.
uInt nparameters() const
Returns the number of parameters.
this file contains all the compiler specific defines
PtrHolder< T > & operator=(const PtrHolder< T > &other)