Prev | Next |
af = f.base2ad()
f
and
af
; i.e., the type
AD<Base>
was used to record
the operation sequence.
ADFun<Base> f
It does it's derivative calculations using the type
Base
.
ADFun< AD<Base> , Base > af
It has the same operation sequence as
f
,
but it does it's derivative calculations using the type
AD<Base>
.
This enables one to record new functions that are defined
using derivatives of the function
f
.
Initially, there are no Taylor coefficients stored in
af
and
af.size_order()
is zero.
base2ad
function does not preserve
VecAD
operations (which might be expected); see the
base2vec_ad.cpp
example.