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>
138#define Polynomial_PS Polynomial
169 Polynomial_PS<AutoDiff<T> > &
174 virtual ~Polynomial_PS() {}
194 *cloneNonAD()
const {
212#ifndef CASACORE_NO_AUTO_TEMPLATES
213#include <casacore/scimath/Functionals/Polynomial.tcc>
214#include <casacore/scimath/Functionals/Polynomial2.tcc>
FunctionParam< T > param_p
The parameters and masks.
uInt nparameters() const
Returns the number of parameters.
PolynomialParam< T > & operator=(const PolynomialParam< T > &other)
uInt order() const
What is the order of the polynomial, i.e.
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)
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)
virtual Function< T > * clone() const
Return a copy of this object from the heap.
Polynomial(const Polynomial< W > &other)
virtual Function< typename FunctionTraits< T >::DiffType > * cloneAD() const
virtual ~Polynomial()
Destructor.
Polynomial< T > & operator=(const Polynomial< T > &other)
virtual T eval(typename Function1D< T >::FunctionArg x) const
Evaluate the polynomial at x.
virtual Function< typename FunctionTraits< T >::BaseType > * cloneNonAD() const
this file contains all the compiler specific defines
PtrHolder< T > & operator=(const PtrHolder< T > &other)