Go to the documentation of this file.
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>
354 #endif //# CASACORE_NO_AUTO_TEMPLATES
AutoDiff(const T &v)
Construct a constant with a value of v.
Class that computes partial derivatives by automatic differentiation.
T & value()
Returns the value of the function.
const value_type * const_iterator
void operator/=(const T other)
AutoDiff(const AutoDiff< T > &other)
Construct one from another.
T & derivative(uInt which)
Returns a specific derivative.
AutoDiff< T > & operator=(const T &v)
Assignment operator.
const Vector< T > & derivatives() const
Returns a vector of the derivatives of an AutoDiff.
T val_p
The function value.
AutoDiff< T > & operator=(const AutoDiff< T > &other)
Assign one to another.
AutoDiff(const T &v, const uInt ndiffs)
A function f(x0,x1,...,xn,...) with a value of v.
AutoDiff()
Construct a constant with a value of zero.
void operator/=(const AutoDiff< T > &other)
void operator*=(const T other)
this file contains all the compiler specific defines
void operator+=(const 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)
uInt nDerivatives() const
Return total number of derivatives.
const T & derivative(uInt which) const
Vector< T > grad_p
The derivatives.
Vector< T > & derivatives()
void derivatives(Vector< T > &res) const
bool Bool
Define the standard types used by Casacore.
const value_type & const_reference
const T & deriv(uInt which) const
AutoDiff(const T &v, const uInt ndiffs, const uInt n)
A function f(x0,x1,...,xn,...) with a value of v.
void operator-=(const AutoDiff< T > &other)
A 1-D Specialization of the Array class.
void operator*=(const AutoDiff< T > &other)
In-place mathematical operators.
Bool isConstant() const
Is it a constant, i.e., with zero derivatives?
void operator-=(const T other)
uInt nd_p
The number of derivatives.