CppAD: A C++ Algorithmic Differentiation Package
20130102
|
#define CPPAD_USER_ATOMIC | ( | afun, | |
Tvector, | |||
Base, | |||
forward, | |||
reverse, | |||
for_jac_sparse, | |||
rev_jac_sparse, | |||
rev_hes_sparse | |||
) |
inline void afun ( \ size_t id , \ const Tvector< CppAD::AD<Base> >& ax , \ Tvector< CppAD::AD<Base> >& ay \ ) \ { CPPAD_ASSERT_FIRST_CALL_NOT_PARALLEL; \ static CppAD::user_atomic<Base> fun( \ #afun , \ forward , \ reverse , \ for_jac_sparse , \ rev_jac_sparse , \ rev_hes_sparse \ ); \ fun.ad(id, ax, ay); \ }
Defines the function afun(id, ax, ay)
where id
is ax
and ay
are vectors with AD<Base>
elements.
afun
, preceeded by a pound sign, is a version of afun
with quotes arround it.Definition at line 768 of file user_atomic.hpp.