26#ifndef SCIMATH_POLYNOMIAL_H
27#define SCIMATH_POLYNOMIAL_H
30#include <casacore/casa/aips.h>
31#include <casacore/scimath/Functionals/PolynomialParam.h>
32#include <casacore/scimath/Functionals/Function1D.h>
33#include <casacore/scimath/Mathematics/AutoDiff.h>
34#include <casacore/scimath/Mathematics/AutoDiffMath.h>
131 using PolynomialParam<T>::param_p;
133 using PolynomialParam<T>::nparameters;
134 using PolynomialParam<T>
::order;
138#define Polynomial_PS Polynomial
212#ifndef CASACORE_NO_AUTO_TEMPLATES
213#include <casacore/scimath/Functionals/Polynomial.tcc>
214#include <casacore/scimath/Functionals/Polynomial2.tcc>
virtual Function< typename FunctionTraits< AutoDiff< T > >::DiffType > * cloneAD() const
Polynomial_PS()
Constructs one dimensional Polynomials.
virtual Function< typename FunctionTraits< AutoDiff< T > >::BaseType > * cloneNonAD() const
Polynomial_PS< AutoDiff< T > > & operator=(const Polynomial_PS< AutoDiff< T > > &other)
Copy assignment (deep copy).
Polynomial_PS(uInt order)
Polynomial_PS(const Polynomial_PS< W > &other)
virtual ~Polynomial_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
Return a copy of this object from the heap.
Polynomial_PS(const Polynomial_PS< AutoDiff< T > > &other)
Copy constructor (deep copy).
this file contains all the compiler specific defines
Polynomial< T > derivative() const
Return the polynomial which is the derivative of this one.
virtual ~Polynomial()
Destructor.
virtual Function< typename FunctionTraits< T >::DiffType > * cloneAD() const
Record & operator=(const Record &other)
Copy the data in the other record to this record.
uInt order() const
What is the order of the polynomial, i.e.
virtual T eval(typename Function1D< T >::FunctionArg x) const
Evaluate the polynomial at x.
virtual Function< typename FunctionTraits< T >::BaseType > * cloneNonAD() const
RecordInterface * clone() const override
Make a copy of this object.