it would be convenient to have an engine function that computes x^y but always returns 0 if x==0. (We have a special case where we are computing 0^0, where C++ quite reasonably returns NaN; we know we want the answer to be 0 in this case.) I took a crack at this on a branch (with CppAD::CondExpLt), but am so far failing (perhaps because of some issue with vectorization? Not sure ...)
If this is not something @stevencarlislewalker can figure out quickly I might ask on the TMB list ...
(attn: @jfree-man)
it would be convenient to have an engine function that computes
x^ybut always returns 0 ifx==0. (We have a special case where we are computing0^0, where C++ quite reasonably returnsNaN; we know we want the answer to be 0 in this case.) I took a crack at this on a branch (withCppAD::CondExpLt), but am so far failing (perhaps because of some issue with vectorization? Not sure ...)If this is not something @stevencarlislewalker can figure out quickly I might ask on the TMB list ...
(attn: @jfree-man)