28 #ifndef SCIMATH_POLYNOMIAL_H
29 #define SCIMATH_POLYNOMIAL_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/scimath/Functionals/PolynomialParam.h>
34 #include <casacore/scimath/Functionals/Function1D.h>
35 #include <casacore/scimath/Mathematics/AutoDiff.h>
36 #include <casacore/scimath/Mathematics/AutoDiffMath.h>
140 #define Polynomial_PS Polynomial
171 Polynomial_PS<AutoDiff<T> > &
196 *cloneNonAD()
const {
214 #ifndef CASACORE_NO_AUTO_TEMPLATES
215 #include <casacore/scimath/Functionals/Polynomial.tcc>
216 #include <casacore/scimath/Functionals/Polynomial2.tcc>
uInt order() const
What is the order of the polynomial, i.e.
PolynomialParam< T > & operator=(const PolynomialParam< T > &other)
Polynomial_PS(uInt order)
virtual Function< T > * clone() const
Return a copy of this object from the heap.
Polynomial(uInt order)
Makes a polynomial of the given order, with all coeficcients set to zero.
Polynomial< T > derivative() const
Return the polynomial which is the derivative of this one.
Polynomial()
Constructs a zero'th order polynomial, with a coeficcient of 0.0.
Polynomial(const Polynomial< T > &other)
Copy constructor/assignment (deep copy)
Polynomial(const Polynomial< W > &other)
virtual ~Polynomial()
Destructor.
virtual Function< typename FunctionTraits< T >::BaseType > * cloneNonAD() const
virtual Function< typename FunctionTraits< T >::DiffType > * cloneAD() const
Polynomial< T > & operator=(const Polynomial< T > &other)
virtual T eval(typename Function1D< T >::FunctionArg x) const
Evaluate the polynomial at x.
this file contains all the compiler specific defines
PtrHolder< T > & operator=(const PtrHolder< T > &other)