Go to the documentation of this file.
29 #ifndef SCIMATH_COMBIFUNCTION_H
30 #define SCIMATH_COMBIFUNCTION_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/scimath/Functionals/CombiParam.h>
35 #include <casacore/scimath/Mathematics/AutoDiff.h>
36 #include <casacore/scimath/Mathematics/AutoDiffMath.h>
160 #define CombiFunction_PS CombiFunction
186 CombiFunction_PS<AutoDiff<T> > &
203 return new CombiFunction_PS<AutoDiff<T> >(*this); }
209 *cloneNonAD()
const {
219 #undef CombiFunction_PS
224 #ifndef CASACORE_NO_AUTO_TEMPLATES
225 #include <casacore/scimath/Functionals/CombiFunction.tcc>
226 #include <casacore/scimath/Functionals/Combi2Function.tcc>
227 #endif //# CASACORE_NO_AUTO_TEMPLATES
Class that computes partial derivatives by automatic differentiation.
PtrHolder< T > & operator=(const PtrHolder< T > &other)
virtual T eval(typename Function< T >::FunctionArg x) const
Evaluate the function at x.
CombiFunction(const CombiFunction< W > &other)
CombiFunction_PS(const CombiFunction_PS< AutoDiff< T > > &other)
Make this object a (deep) copy of other.
CombiFunction_PS< AutoDiff< T > > & operator=(const CombiFunction_PS< AutoDiff< T > > &other)
Make this object a (deep) copy of other.
virtual Function< AutoDiff< T > > * clone() const
Return a copy of this object from the heap.
virtual Function< typename FunctionTraits< AutoDiff< T > >::DiffType > * cloneAD() const
Parameters for a linear combination of function objects.
CombiFunction(const CombiFunction< T > &other, Bool)
virtual Function< T > * clone() const
Return a copy of this object from the heap.
virtual AutoDiff< T > eval(typename Function< AutoDiff< T > >::FunctionArg x) const
Evaluate the function and its derivatives at x wrt to the coefficients.
CombiFunction_PS(const CombiFunction_PS< W > &other)
virtual ~CombiFunction_PS()
Destructor.
CombiParam< T > & operator=(const CombiParam< T > &other)
Make this object a (deep) copy of other.
CombiFunction()
The default constructor – no functions, no parameters, nothing, the function operator returns a 0.
this file contains all the compiler specific defines
CombiFunction(const CombiFunction< W > &other, Bool)
Form a linear combination of function objects.
CombiFunction_PS()
The default constructor – no functions, no parameters, nothing, the function operator returns a 0.
virtual ~CombiFunction()
Destructor.
Numerical functional interface class.
virtual Function< typename FunctionTraits< AutoDiff< T > >::BaseType > * cloneNonAD() const
CombiFunction< T > & operator=(const CombiFunction< T > &other)
Make this object a (deep) copy of other.
bool Bool
Define the standard types used by Casacore.
CombiFunction(const CombiFunction< T > &other)
Make this object a (deep) copy of other.
virtual Function< typename FunctionTraits< T >::DiffType > * cloneAD() const
virtual Function< typename FunctionTraits< T >::BaseType > * cloneNonAD() const