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> > &
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.
FunctionParam< T > param_p
The parameters and masks.
virtual T eval(typename Function< T >::FunctionArg x) const
Evaluate the function at x.
uInt nFunctions() const
Return the number of functions in the sum.
CompoundFunction(const CompoundFunction< W > &other)
Bool parset_p
Indicate parameter written.
CompoundFunction< T > & consolidate()
Consolidate the parameter settings.
virtual Function< typename FunctionTraits< T >::BaseType > * cloneNonAD() const
#define CompoundFunction_PS
uInt nparameters() const
Returns the number of parameters.
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.
void fromParam_p() const
Copy the local parameters from general block.
const Function< T > & function(uInt which) const
Return a reference to a specific Function.
Numerical functional interface class.
Block< uInt > paroff_p
Index of offset for each function to its parameters in general list.
bool Bool
Define the standard types used by Casacore.
Class that computes partial derivatives by automatic differentiation.
PtrBlock< Function< T > * > functionPtr_p
Pointer to each added function.
uInt addFunction(const Function< T > &newFunction)
Add a function to the sum.
CompoundFunction()
The default constructor – no functions, no parameters, nothing, the function operator returns a 0...
Block< uInt > funpar_p
Index of function belonging to parameter.
CompoundParam< T > & operator=(const CompoundParam< T > &other)
Parameters for sum of parameterized Functions.
Block< uInt > locpar_p
Index of local parameter.
Sum of a collection of Functions which behaves as one Function object.
this file contains all the compiler specific defines
CompoundFunction(const CompoundFunction< W > &other, Bool)