![]() |
Prev | Next |
jac =
f.Jacobian(
x)
F : B^n \rightarrow B^m
to denote the
AD function
corresponding to f.
The syntax above sets jac to the
Jacobian of F evaluated at x; i.e.,
\[
jac = F^{(1)} (x)
\]
ADFun<
Base>
f
Note that the ADFun
object f is not const
(see Jacobian uses Forward
below).
const
Vector &
x
(see Vector
below)
and its size
must be equal to n, the dimension of the
domain
space for f.
It specifies
that point at which to evaluate the Jacobian.
Vector
jac
(see Vector
below)
and its size is
m * n
; i.e., the product of the
domain
and
range
dimensions for f.
For
i = 0 , \ldots , m - 1
and
j = 0 , \ldots , n - 1
\[.
jac[ i * n + j ] = \D{ F_i }{ x_j } ( x )
\]
Jacobian
,
the previous calls to Forward
are undefined.
true
, if it succeeds and false
otherwise.