|
Prev | Next | ForwardZero |
y = f.Forward(0, x)
y = f.Forward(x, x, s)
F : B^n \rightarrow B^m
to denote the
AD function
corresponding to
f
.
The result of the syntax above is
\[
y = F(x)
\]
(See the FunCheck discussion
for
possible differences between
F(x)
and the algorithm that defined
the operation sequence.)
f
has prototype
ADFun<Base> f
Note that the ADFun
object
f
is not const.
After this call to Forward, the value returned by
f.size_taylor()
will be equal to one (see size_taylor
).
x
has prototype
const Vector& x
(see Vector
below)
and its size
must be equal to
n
, the dimension of the
domain
space for
f
.
s
is not present, std::cout
is used in its place.
Otherwise, this argument has prototype
std::ostream& s
It specifies where the output corresponding to PrintFor
,
and this zero order forward mode call, will be written.
y
has prototype
Vector y
(see Vector
below)
and its value is
F(x)
.
The size of
y
is equal to
m
, the dimension of the
range
space for
f
.
Vector
must be a SimpleVector
class with
elements of type
Base
.
The routine CheckSimpleVector
will generate an error message
if this is not the case.