Go to the documentation of this file.
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>
217 #endif //# CASACORE_NO_AUTO_TEMPLATES
Polynomial_PS()
Constructs one dimensional Polynomials.
virtual Function< typename FunctionTraits< T >::DiffType > * cloneAD() const
PolynomialParam< T > & operator=(const PolynomialParam< T > &other)
PtrHolder< T > & operator=(const PtrHolder< T > &other)
Polynomial(const Polynomial< T > &other)
Copy constructor/assignment (deep copy)
Polynomial(uInt order)
Makes a polynomial of the given order, with all coeficcients set to zero.
virtual ~Polynomial_PS()
Destructor.
virtual T eval(typename Function1D< T >::FunctionArg x) const
Evaluate the polynomial at x.
Polynomial_PS(uInt order)
virtual Function< typename FunctionTraits< AutoDiff< T > >::DiffType > * cloneAD() const
virtual Function< T > * clone() const
Return a copy of this object from the heap.
Polynomial(const Polynomial< W > &other)
virtual Function< AutoDiff< T > > * clone() const
Return a copy of this object from the heap.
virtual Function< typename FunctionTraits< AutoDiff< T > >::BaseType > * cloneNonAD() const
this file contains all the compiler specific defines
virtual Function< typename FunctionTraits< T >::BaseType > * cloneNonAD() const
virtual AutoDiff< T > eval(typename Function< AutoDiff< T > >::FunctionArg x) const
Evaluate the polynomial and its derivatives at x wrt to the coefficients.
Polynomial_PS(const Polynomial_PS< W > &other)
Polynomial()
Constructs a zero'th order polynomial, with a coeficcient of 0.0.
Polynomial_PS< AutoDiff< T > > & operator=(const Polynomial_PS< AutoDiff< T > > &other)
Copy assignment (deep copy)
virtual ~Polynomial()
Destructor.
uInt order() const
What is the order of the polynomial, i.e.
Polynomial< T > & operator=(const Polynomial< T > &other)
Polynomial< T > derivative() const
Return the polynomial which is the derivative of this one.
Polynomial_PS(const Polynomial_PS< AutoDiff< T > > &other)
Copy constructor (deep copy)