Functions
boost::math Namespace Reference

Functions

template<>
int fpclassify (const stan::math::var &v)
 
template<>
bool isfinite (const stan::math::var &v)
 
template<>
bool isinf (const stan::math::var &v)
 
template<>
bool isnan (const stan::math::var &v)
 
template<>
bool isnormal (const stan::math::var &v)
 

Function Documentation

template<>
int boost::math::fpclassify ( const stan::math::var v)
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.

Parameters
vVariable to classify.
Returns
One of FP_ZERO, FP_NORMAL, FP_FINITE, FP_INFINITE, FP_NAN, or FP_SUBZERO, specifying the category of v.

Definition at line 23 of file boost_fpclassify.hpp.

References stan::math::var::val().

23  {
24  return (boost::math::fpclassify)(v.val());
25 }
int fpclassify(const stan::math::var &v)
double val() const
Definition: var.hpp:294
template<>
bool boost::math::isfinite ( const stan::math::var v)
inline

Checks if the given number has finite value.

Return true if the specified variable's value is finite.

Parameters
vVariable to test.
Returns
true if variable is finite.

Definition at line 21 of file boost_isfinite.hpp.

References stan::math::var::val().

Referenced by zcl::FmmTrackerValidation::analyze(), novaddt::NNFastMMTrigger::filter(), stan::services::util::initialize(), stan::optimization::ModelAdaptor< M >::operator()(), ana::RecoReweight::OptimalBinningHelper(), and stan::optimization::WolfLSZoom().

21  {
22  return (boost::math::isfinite)(v.val());
23 }
bool isfinite(const stan::math::var &v)
double val() const
Definition: var.hpp:294
template<>
bool boost::math::isinf ( const stan::math::var v)
inline

Checks if the given number is infinite.

Return true if the specified variable's value is infinite.

Parameters
vVariable to test.
Returns
true if variable is infinite.

Definition at line 21 of file boost_isinf.hpp.

References stan::math::var::val().

Referenced by stan::math::is_inf().

21  {
22  return (boost::math::isinf)(v.val());
23 }
bool isinf(const stan::math::var &v)
Definition: boost_isinf.hpp:21
double val() const
Definition: var.hpp:294
template<>
bool boost::math::isnan ( const stan::math::var v)
inline
template<>
bool boost::math::isnormal ( const stan::math::var v)
inline

Checks if the given number is normal.

Return true if the specified variable has a value that is normal.

Parameters
vVariable to test.
Returns
true if variable is normal.

Definition at line 20 of file boost_isnormal.hpp.

References stan::math::var::val().

20  {
21  return (boost::math::isnormal)(v.val());
22 }
bool isnormal(const stan::math::var &v)
double val() const
Definition: var.hpp:294