CppAD: A C++ Algorithmic Differentiation Package
20171217

VectorBase CppAD::ADFun< Base >::Forward  (  size_t  q, 
const VectorBase &  xq,  
std::ostream &  s = std::cout 

) 
forward mode user API, multiple directions one order.
Multiple orders, one direction, forward mode Taylor coefficieints.
Base  The type used during the forward mode computations; i.e., the corresponding recording of operations used the type AD<Base>. 
VectorBase  is a Simple Vector class with eleements of type Base. 
q  is the hightest order for this forward mode computation; i.e., after this calculation there will be q+1 Taylor coefficients per variable. 
xq  contains Taylor coefficients for the independent variables. The size of xq must either be n or (q+1)*n , We define p = q + 1  xq.size()/n . For j = 0 , ... , n1 , k = p, ... , q , are xq[ (q+1p)*j + k  p ] is the kth order coefficient for the jth independent variable. 
s  Is the stream where output corresponding to PriOp operations will written. 
m*(q+1p)
. For i = 0, ... , m1
, k = p, ..., q
, y[(q+1p)*i + (kp)]
is the kth order coefficient for the ith dependent variable.N = num_var_tape_
, and C = cap_order_taylor_
. Note that for i = 1 , ..., N1
, k = 0 , ..., q
, taylor_[ C*i + k ]
is the kth order cofficent, for the ith varaible on the tape. (The first independent variable has index one on the tape and there is no variable with index zero.) Definition at line 78 of file forward.hpp.