1#ifndef CPPAD_CG_MATH_OTHER_INCLUDED
2#define CPPAD_CG_MATH_OTHER_INCLUDED
23 using namespace CppAD::cg;
30 if (
y.isParameter()) {
31 if (
y.isIdenticalZero()) {
33 }
else if (
y.isIdenticalOne()) {
75 using namespace CppAD::cg;
80 }
else if (x.
getValue() == Base(0.0)) {
91 result.setValue(Base(1.0));
92 }
else if (x.
getValue() == Base(0.0)) {
93 result.setValue(Base(0.0));
95 result.setValue(Base(-1.0));
const Base & getValue() const
bool isValueDefined() const
CodeHandler< Base > * getCodeHandler() const
bool GreaterThanZero(const cg::CG< Base > &x)
cg::CG< Base > sign(const cg::CG< Base > &x)
cg::CG< Base > pow(const cg::CG< Base > &x, const cg::CG< Base > &y)