29 #ifndef SCIMATH_COMPOUNDFUNCTION_H
30 #define SCIMATH_COMPOUNDFUNCTION_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>
287 #endif //# CASACORE_NO_AUTO_TEMPLATES
virtual Function< T > * clone() const
Return a copy of this object from the heap.
CompoundFunction(const CompoundFunction< W > &other)
void fromParam_p() const
Copy the local parameters from general block.
CompoundFunction< T > & consolidate()
Consolidate the parameter settings.
#define CompoundFunction_PS
PtrHolder< T > & operator=(const PtrHolder< T > &other)
virtual Function< typename FunctionTraits< T >::DiffType > * cloneAD() const
CompoundFunction(const CompoundFunction< T > &other)
Make this object a (deep) copy of other.
virtual ~CompoundFunction()
Destructor.
CompoundFunction(const CompoundFunction< T > &other, Bool)
CompoundFunction< T > & operator=(const CompoundFunction< T > &other)
Make this object a (deep) copy of other.
void toParam_p()
Make the general block from local parameters.
Numerical functional interface class.
bool Bool
Define the standard types used by Casacore.
Class that computes partial derivatives by automatic differentiation.
casacore::Bool clone(const casacore::String &imageName, const casacore::String &newImageName)
CompoundFunction()
The default constructor – no functions, no parameters, nothing, the function operator returns a 0...
CompoundParam< T > & operator=(const CompoundParam< T > &other)
Parameters for sum of parameterized Functions.
virtual Function< typename FunctionTraits< T >::BaseType > * cloneNonAD() const
virtual T eval(typename Function< T >::FunctionArg x) const
Evaluate the function at x.
Sum of a collection of Functions which behaves as one Function object.
CompoundFunction(const CompoundFunction< W > &other, Bool)
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.