Prev Next ForwardZero

Zero Order Forward Mode: Function Values

Syntax
y = f.Forward(0, x)

Purpose
We use  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
The object f has prototype
     ADFun<
Basef
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
The argument 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.

y
The result 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
The type 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.

Example
The file Forward.cpp contains an example and test of this operation. It returns true if it succeeds and false otherwise.
Input File: omh/forward.omh