29 #ifndef SCIMATH_COMPOUNDFUNCTION_H
30 #define SCIMATH_COMPOUNDFUNCTION_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/scimath/Functionals/CompoundParam.h>
35 #include <casacore/scimath/Functionals/Function.h>
36 #include <casacore/scimath/Mathematics/AutoDiff.h>
37 #include <casacore/scimath/Mathematics/AutoDiffMath.h>
188 #define CompoundFunction_PS CompoundFunction
218 CompoundFunction_PS<AutoDiff<T> > &
241 CompoundFunction_PS<AutoDiff<T> > &consolidate() { fromParam_p();
242 toParam_p();
return *
this; }
253 *cloneNonAD()
const {
261 void fromParam_p()
const;
279 #undef CompoundFunction_PS
284 #ifndef CASACORE_NO_AUTO_TEMPLATES
285 #include <casacore/scimath/Functionals/CompoundFunction.tcc>
286 #include <casacore/scimath/Functionals/Compound2Function.tcc>
#define CompoundFunction_PS
CompoundFunction(const CompoundFunction< T > &other)
Make this object a (deep) copy of other.
virtual ~CompoundFunction()
Destructor.
virtual T eval(typename Function< T >::FunctionArg x) const
Evaluate the function at x.
virtual Function< T > * clone() const
Return a copy of this object from the heap.
virtual Function< typename FunctionTraits< T >::DiffType > * cloneAD() const
virtual Function< typename FunctionTraits< T >::BaseType > * cloneNonAD() const
CompoundFunction()
The default constructor – no functions, no parameters, nothing, the function operator returns a 0.
void fromParam_p() const
Copy the local parameters from general block.
CompoundFunction< T > & operator=(const CompoundFunction< T > &other)
Make this object a (deep) copy of other.
CompoundFunction(const CompoundFunction< T > &other, Bool)
void toParam_p()
Make the general block from local parameters.
CompoundFunction< T > & consolidate()
Consolidate the parameter settings.
CompoundFunction(const CompoundFunction< W > &other)
CompoundFunction(const CompoundFunction< W > &other, Bool)
CompoundParam< T > & operator=(const CompoundParam< T > &other)
const ArgType * FunctionArg
this file contains all the compiler specific defines
PtrHolder< T > & operator=(const PtrHolder< T > &other)
bool Bool
Define the standard types used by Casacore.