Prev | Next | atomic_three_for_type |
ok = afun.for_type(parameter_x, type_x, type_y)
template <class Base> bool atomic_three<Base>::for_type( const vector<Base>& parameter_x , const vector<ad_type_enum>& type_x , vector<ad_type_enum>& type_y )
afun(ax, ay)
where afun
is a user defined atomic function.
m=ay.size()
.
The input values of the elements of
type_y
are not specified (must not matter).
Upon return, for @(@
i = 0 , \ldots , m-1
@)@,
type_y[i]
is set to one of the following values:
constant_enum
if
ay[i]
only depends on
the arguments that are constants.
dynamic_enum
if
ay[i]
depends on
a dynamic parameter and does not depend on any variables.
variable_enum
if
ay[i]
depends on
a variable.
ok
is true.
Otherwise, it is false.
for_type
definition:
get_started.cpp
.