29 #ifndef SCIMATH_AUTODIFF_H
30 #define SCIMATH_AUTODIFF_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Arrays/Vector.h>
352 #ifndef CASACORE_NO_AUTO_TEMPLATES
353 #include <casacore/scimath/Mathematics/AutoDiff.tcc>
Vector< T > grad_p
The derivatives.
void derivatives(Vector< T > &res) const
T & value()
Returns the value of the function.
Vector< T > & derivatives()
void operator/=(const T other)
AutoDiff(const T &v, const uInt ndiffs)
A function f(x0,x1,...,xn,...) with a value of v.
void operator+=(const T other)
const T & deriv(uInt which) const
Bool isConstant() const
Is it a constant, i.e., with zero derivatives?
void operator-=(const AutoDiff< T > &other)
AutoDiff(const T &v, const Vector< T > &derivs)
Construct a function f(x0,x1,...,xn) of a value v and a vector of derivatives derivs(0) = df/dx0,...
void operator*=(const AutoDiff< T > &other)
In-place mathematical operators.
void operator/=(const AutoDiff< T > &other)
const value_type & const_reference
uInt nd_p
The number of derivatives.
AutoDiff(const T &v)
Construct a constant with a value of v.
AutoDiff< T > & operator=(const AutoDiff< T > &other)
Assign one to another.
void operator+=(const AutoDiff< T > &other)
AutoDiff()
Construct a constant with a value of zero.
const Vector< T > & derivatives() const
Returns a vector of the derivatives of an AutoDiff.
T & derivative(uInt which)
Returns a specific derivative.
AutoDiff(const AutoDiff< T > &other)
Construct one from another.
uInt nDerivatives() const
Return total number of derivatives.
const T & derivative(uInt which) const
const value_type * const_iterator
void operator*=(const T other)
void operator-=(const T other)
T val_p
The function value.
AutoDiff< T > & operator=(const T &v)
Assignment operator.
AutoDiff(const T &v, const uInt ndiffs, const uInt n)
A function f(x0,x1,...,xn,...) with a value of v.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.