\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
cpp_fun_hessian#
View page sourceHessian of an AD Function#
Syntax#
H = f.hessian ( x , w )
f#
This is either a d_fun or a_fun function object. Upon return, the zero order taylor_coefficients in f correspond to the value of x . The other Taylor coefficients in f are unspecified.
f(x)#
We use the notation \(f: \B{R}^n \rightarrow \B{R}^m\) for the function corresponding to f . Note that n is the size of ax and m is the size of ay in to the constructor for f .
g(x)#
We use the notation \(g: \B{R}^n \rightarrow \B{R}\) for the function defined by
x#
If f is a d_fun or a_fun ,
this argument has prototype
const vec_double& xconst vec_a_double& xand its size must be n . It specifies the argument value at we are computing the Hessian \(g^{(2)}(x)\).
w#
If f is a d_fun or a_fun ,
this argument has prototype
const vec_double& wconst vec_a_double& wand its size must be m . It specifies the vector w in the definition of \(g(x)\) above.
H#
If f is a d_fun or a_fun ,
the result has prototype
vec_double Hvec_a_double Hand its size is n * n .
For i between zero and n -1
and j between zero and n -1 ,