28 #ifndef SCIMATH_FUNCTIONTRAITS_H
29 #define SCIMATH_FUNCTIONTRAITS_H
154 static const T &
getValue(
const T &in) {
return in; }
157 const uInt) { out = val; }
163 #define FunctionTraits_P FunctionTraits
187 const uInt i) { out =
Type(val, nder, i); }
190 #undef FunctionTraits_P
192 #define FunctionTraits_PA FunctionTraits
216 const uInt i) { out =
Type(val, nder, i); }
219 #undef FunctionTraits_PA
221 #define FunctionTraits_PX FunctionTraits
245 const uInt i) { out =
Type(val, nder, i); }
248 #undef FunctionTraits_PX
AutoDiffA< T > Type
Actual template type.
#define FunctionTraits_PA
FunctionTraits_P< T >::NumericType NumericType
Template numeric type.
AutoDiffX< T > DiffType
Default type for differentiation.
static void setValue(Type &out, const T &val, const uInt nder, const uInt i)
Set a value (and possible derivative)
AutoDiffX< T > ArgType
Type for arguments.
static const T & getValue(const Type &in)
Get the value.
FunctionTraits_PA< T >::NumericType NumericType
Template numeric type.
AutoDiff< T > ParamType
Type for parameters.
#define FunctionTraits_PX
T BaseType
Template base type.
AutoDiffA< T > DiffType
Default type for differentiation.
static const T & getValue(const T &in)
Get the value.
AutoDiff< T > DiffType
Default type for differentiation.
FunctionTraits_PX< T >::NumericType NumericType
Template numeric type.
static void setValue(T &out, const T &val, const uInt, const uInt)
Set a value (and possible derivative)
T ParamType
Type for parameters.
static void setValue(Type &out, const T &val, const uInt nder, const uInt i)
Set a value (and possible derivative)
Class that computes partial derivatives by automatic differentiation.
static const T & getValue(const Type &in)
Get the value.
T ParamType
Type for parameters.
AutoDiffX< T > Type
Actual template type.
static void setValue(Type &out, const T &val, const uInt nder, const uInt i)
Set a value (and possible derivative)
T ArgType
Type for arguments.
T BaseType
Template base type.
AutoDiffA< T > ArgType
Type for arguments.
AutoDiff< T > Type
Actual template type.
Class that computes partial derivatives by automatic differentiation.
Function data types for parameters and arguments.
T Type
Actual template type.
Class that computes partial derivatives by automatic differentiation.
AutoDiffA< T > ParamType
Type for parameters.
T BaseType
Template base type.
T ArgType
Type for arguments.
AutoDiff< T > DiffType
Default type for differentiation.
T NumericType
Numeric type of template.
static const T & getValue(const Type &in)
Get the value.
T & value()
Returns the value of the function.
T BaseType
Template base type.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.