atomic_posintpower< Type > Class Template Reference
Detailed Description
template<class Type>
class atomic_posintpower< Type >
Automatic differentiation of x -> x^p, p>=2 integer, as CppAD user-atomic function.
This class implements forward and reverse operations for the function x -> x^p for use within CppAD. While CppAD would implement integer powers as a recursion of multiplications, we still use pow functions as they allow us to avoid overestimation in interval arithmetics.
Definition at line 439 of file exprinterpret_cppad.cpp.
Public Member Functions | |
atomic_posintpower () | |
Constructor & Destructor Documentation
◆ atomic_posintpower()
template<class Type>
|
inline |
Definition at line 442 of file exprinterpret_cppad.cpp.
References pow(), r, univariate_for_sparse_jac(), univariate_rev_sparse_hes(), and univariate_rev_sparse_jac().