void expect_eq_diffs(const stan::agrad::var& x1, const stan::agrad::var& x2, const stan::agrad::var& y1, const stan::agrad::var& y2, std::string message="") { expect_eq_diffs(x1.val(), x2.val(), y1.val(), y2.val(), message); }
/** * Checks if the given number is infinite. * * Return <code>true</code> if the value of the * a is positive or negative infinity. * * @param a Variable to test. * @return <code>true</code> if value is infinite. */ inline int isinf(const stan::agrad::var& a) { return isinf(a.val()); }
/** * The inverse hyperbolic sine function for variables (C99). * * For non-variable function, see boost::math::asinh(). * * The derivative is defined by * * \f$\frac{d}{dx} \mbox{asinh}(x) = \frac{x}{x^2 + 1}\f$. * * @param a The variable. * @return Inverse hyperbolic sine of the variable. */ inline var asinh(const stan::agrad::var& a) { if (boost::math::isinf(a)) return var(new asinh_vari(a.val(), a.vi_)); return var(new asinh_vari(boost::math::asinh(a.val()),a.vi_)); }
inline bool isfinite(const stan::agrad::var& v) { return (boost::math::isfinite)(v.val()); }
double double_from_var(stan::agrad::var var_) { return var_.val(); }
inline bool isinf(const stan::agrad::var& v) { return (boost::math::isinf)(v.val()); }