![]() |
Prev | Next |
PrintFor(
text,
y)
f.Forward(0,
x)
AD<
Base>
object y is the result of an AD of Base operation.
This operation may be part of the
operation sequence
that is transferred to an ADFun
object f.
The ADFun
object can be evaluated at different values for the
independent variables
.
This may result in a corresponding value for y
that is different from when the operation sequence was recorded.
The routine PrintFor
requests a printing,
when
f.Forward(0,
x)
is executed,
of the value for y that corresponds to the
independent variable values specified by x.
const char *
text
The corresponding text is written to std::cout
before the
value of y.
const AD<
Base> &
y
const VecAD<
Base>::reference &
y
The value of y that corresponds to x
is written to std::cout
during the execution of
f.Forward(0,
x)
Nan
.