![]() |
Stan Math Library
2.12.0
reverse mode automatic differentiation
|
Reimplmeneting boost functionality for stan::math::var
and and bugs in classification of integer types.
More...
Functions | |
template<> | |
int | fpclassify (const stan::math::var &v) |
Categorizes the given stan::math::var value. More... | |
template<> | |
bool | isfinite (const stan::math::var &v) |
Checks if the given number has finite value. More... | |
template<> | |
bool | isinf (const stan::math::var &v) |
Checks if the given number is infinite. More... | |
template<> | |
bool | isnan (const stan::math::var &v) |
Checks if the given number is NaN. More... | |
template<> | |
bool | isnormal (const stan::math::var &v) |
Checks if the given number is normal. More... | |
Reimplmeneting boost functionality for stan::math::var
and and bugs in classification of integer types.
FIXME: remove when BOOST fixes isfinite(). See ticket #6517. (Boost 1.48.0) https://svn.boost.org/trac/boost/ticket/6517
|
inline |
Categorizes the given stan::math::var value.
Categorizes the stan::math::var value, v, into the following categories: zero, subnormal, normal, infinite, or NAN.
v | Variable to classify. |
FP_ZERO
, FP_NORMAL
, FP_FINITE
, FP_INFINITE
, FP_NAN
, or FP_SUBZERO
, specifying the category of v. Definition at line 24 of file boost_fpclassify.hpp.
|
inline |
Checks if the given number has finite value.
Return true
if the specified variable's value is finite.
v | Variable to test. |
true
if variable is finite. Definition at line 22 of file boost_isfinite.hpp.
|
inline |
Checks if the given number is infinite.
Return true
if the specified variable's value is infinite.
v | Variable to test. |
true
if variable is infinite. Definition at line 22 of file boost_isinf.hpp.
|
inline |
Checks if the given number is NaN.
Return true
if the specified variable has a value that is NaN.
v | Variable to test. |
true
if variable is NaN. Definition at line 21 of file boost_isnan.hpp.
|
inline |
Checks if the given number is normal.
Return true
if the specified variable has a value that is normal.
v | Variable to test. |
true
if variable is normal. Definition at line 21 of file boost_isnormal.hpp.