![]() |
Prev | Next |
fun.to_csrc(os, c_type)
template <class Base, class RecBase> void CppAD::ADFun<Base,RecBase>::to_csrc( std::ostream& os , const std::string& c_type )
Base
.
RecBase
is the same type as
Base
.
fun
is written to
os
.
float
, double
, or long_double
.
flag = cppad_jit_function_name(
nu, u, ny, y, compare_change
)
typedef int (*jit_c_type)(
size_t, const type*, size_t, type*, size_t*
)
Here
type
is the same as
c_type
except that the
underbar in long_double
is replaced by a space.
The function type
jit_c_type
is defined in the CppAD namespace.
In the case of the Visual C++ compiler (_MSC_VER
is defined),
__cdecl
and __declspec(dllimport)
are added to
the function type definition.
flag = cppad_atomic_function_name(
call_id, nu, u, ny, y, compare_change
)
typedef int (*jit_c_type)(
size_t, size_t, const type*, size_t, type*, size_t*
)
The function type
atomic_c_type
is defined in the CppAD namespace.
The corresponding function evaluates zero order forward mode for the
atomic function with the specified
function_name
.
fun
.
nu
containing the independent dynamic parameters
and independent variables
The independent dynamic parameter come first as in the same order as
dynamic
in the call to Independent
for this function.
The independent variables are in the same order as
x
in the call to Independent
for this function.
ny
.
This input values of its elements do not matter.
Upon return, it contains the function value correspond to
u
.
compare_change
. This way,
compare_change
can be used to accumulate the number of changes between multiplier calls.
nu
(
ny
) does not have its expected value.
to_csrc
routine is not implemented for
VecAD
operations.
to_csrc
.