Stan Math Library  2.20.0
reverse mode automatic differentiation
Functions
boost::math Namespace Reference

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 isnormal (const stan::math::var &v)
 Checks if the given number is normal. More...
 

Detailed Description

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

Function Documentation

◆ fpclassify()

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 24 of file boost_fpclassify.hpp.

◆ isfinite()

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 22 of file boost_isfinite.hpp.

◆ isnormal()

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 21 of file boost_isnormal.hpp.


     [ Stan Home Page ] © 2011–2018, Stan Development Team.