Prev | Next |
ok = afun.rev_depend(
parameter_x, type_x, depend_x, depend_y
)
template <class Base> bool atomic_three<Base>::rev_depend( const vector<Base>& parameter_x , const vector<ad_type_enum>& type_x , vector<bool>& depend_x , const vector<bool>& depend_y )
f
,
and f.optimize()
is used.
n=ax.size()
.
The input values of the elements of
depend_x
are not specified (must not matter).
Upon return, for @(@
j = 0 , \ldots , n-1
@)@,
depend_x[j]
is true if the values of interest depend
on the value of ax[j]
in the corresponding
afun(ax, ay)
call.
m=ay.size()
.
For @(@
i = 0 , \ldots , m-1
@)@,
depend_y[i]
is true if the values of interest depend
on the value of ay[i]
in the corresponding
afun(ax, ay)
call.
ok
is true.
Otherwise, it is false.
atomic_three_rev_depend.cpp | Atomic Functions Reverse Dependency Analysis: Example and Test |
rev_depend
definition:
atomic_three_rev_depend.cpp
.