Stan  1.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Functions
boost::math Namespace Reference

Reimplmeneting boost functionality for stan::agrad::var and and bugs in classification of integer types. More...

Functions

template<>
int fpclassify (const stan::agrad::var v)
 Categorizes the given stan::agrad::var value.
 
template<>
bool isfinite (const stan::agrad::var v)
 Checks if the given number has finite value.
 
template<>
bool isinf (const stan::agrad::var v)
 Checks if the given number is infinite.
 
template<>
bool isnan (const stan::agrad::var v)
 Checks if the given number is NaN.
 
template<>
bool isnormal (const stan::agrad::var v)
 Checks if the given number is normal.
 
template<>
bool isfinite (short n)
 Checks if the given number has finite value.
 
template<>
bool isinf (short n)
 Checks if the given number is infinite.
 
template<>
bool isnan (short n)
 Checks if the given number is NaN.
 
template<>
bool isnormal (short n)
 Checks if the given number is normal.
 
template<>
bool isfinite (unsigned short n)
 Checks if the given number has finite value.
 
template<>
bool isinf (unsigned short n)
 Checks if the given number is infinite.
 
template<>
bool isnan (unsigned short n)
 Checks if the given number is NaN.
 
template<>
bool isnormal (unsigned short n)
 Checks if the given number is normal.
 
template<>
bool isfinite (int n)
 Checks if the given number has finite value.
 
template<>
bool isinf (int n)
 Checks if the given number is infinite.
 
template<>
bool isnan (int n)
 Checks if the given number is NaN.
 
template<>
bool isnormal (int n)
 Checks if the given number is normal.
 
template<>
bool isfinite (unsigned int n)
 Checks if the given number has finite value.
 
template<>
bool isinf (unsigned int n)
 Checks if the given number is infinite.
 
template<>
bool isnan (unsigned int n)
 Checks if the given number is NaN.
 
template<>
bool isnormal (unsigned int n)
 Checks if the given number is normal.
 
template<>
bool isfinite (long n)
 Checks if the given number has finite value.
 
template<>
bool isinf (long n)
 Checks if the given number is infinite.
 
template<>
bool isnan (long n)
 Checks if the given number is NaN.
 
template<>
bool isnormal (long n)
 Checks if the given number is normal.
 
template<>
bool isfinite (unsigned long n)
 Checks if the given number has finite value.
 
template<>
bool isinf (unsigned long n)
 Checks if the given number is infinite.
 
template<>
bool isnan (unsigned long n)
 Checks if the given number is NaN.
 
template<>
bool isnormal (unsigned long n)
 Checks if the given number is normal.
 
template<>
bool isfinite (long long n)
 Checks if the given number has finite value.
 
template<>
bool isinf (long long n)
 Checks if the given number is infinite.
 
template<>
bool isnan (long long n)
 Checks if the given number is NaN.
 
template<>
bool isnormal (long long n)
 Checks if the given number is normal.
 
template<>
bool isfinite (unsigned long long n)
 Checks if the given number has finite value.
 
template<>
bool isinf (unsigned long long n)
 Checks if the given number is infinite.
 
template<>
bool isnan (unsigned long long n)
 Checks if the given number is NaN.
 
template<>
bool isnormal (unsigned long long n)
 Checks if the given number is normal.
 

Detailed Description

Reimplmeneting boost functionality for stan::agrad::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

template<>
int boost::math::fpclassify ( const stan::agrad::var  v)
inline

Categorizes the given stan::agrad::var value.

Categorizes the stan::agrad::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 error_handling.hpp.

template<>
bool boost::math::isfinite ( const stan::agrad::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 39 of file error_handling.hpp.

template<>
bool boost::math::isfinite ( short  n)
inline

Checks if the given number has finite value.

Integer values are always finite. Returns true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 88 of file boost_error_handling.hpp.

template<>
bool boost::math::isfinite ( unsigned short  n)
inline

Checks if the given number has finite value.

Integer values are always finite. Returns true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 145 of file boost_error_handling.hpp.

template<>
bool boost::math::isfinite ( int  n)
inline

Checks if the given number has finite value.

Integer values are always finite. Returns true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 202 of file boost_error_handling.hpp.

template<>
bool boost::math::isfinite ( unsigned int  n)
inline

Checks if the given number has finite value.

Integer values are always finite. Returns true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 259 of file boost_error_handling.hpp.

template<>
bool boost::math::isfinite ( long  n)
inline

Checks if the given number has finite value.

Integer values are always finite. Returns true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 316 of file boost_error_handling.hpp.

template<>
bool boost::math::isfinite ( unsigned long  n)
inline

Checks if the given number has finite value.

Integer values are always finite. Returns true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 373 of file boost_error_handling.hpp.

template<>
bool boost::math::isfinite ( long long  n)
inline

Checks if the given number has finite value.

Integer values are always finite. Returns true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 430 of file boost_error_handling.hpp.

template<>
bool boost::math::isfinite ( unsigned long long  n)
inline

Checks if the given number has finite value.

Integer values are always finite. Returns true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 487 of file boost_error_handling.hpp.

template<>
bool boost::math::isinf ( const stan::agrad::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 54 of file error_handling.hpp.

template<>
bool boost::math::isinf ( short  n)
inline

Checks if the given number is infinite.

Integer values are never infinite. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 102 of file boost_error_handling.hpp.

template<>
bool boost::math::isinf ( unsigned short  n)
inline

Checks if the given number is infinite.

Integer values are never infinite. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 159 of file boost_error_handling.hpp.

template<>
bool boost::math::isinf ( int  n)
inline

Checks if the given number is infinite.

Integer values are never infinite. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 216 of file boost_error_handling.hpp.

template<>
bool boost::math::isinf ( unsigned int  n)
inline

Checks if the given number is infinite.

Integer values are never infinite. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 273 of file boost_error_handling.hpp.

template<>
bool boost::math::isinf ( long  n)
inline

Checks if the given number is infinite.

Integer values are never infinite. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 330 of file boost_error_handling.hpp.

template<>
bool boost::math::isinf ( unsigned long  n)
inline

Checks if the given number is infinite.

Integer values are never infinite. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 387 of file boost_error_handling.hpp.

template<>
bool boost::math::isinf ( long long  n)
inline

Checks if the given number is infinite.

Integer values are never infinite. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 444 of file boost_error_handling.hpp.

template<>
bool boost::math::isinf ( unsigned long long  n)
inline

Checks if the given number is infinite.

Integer values are never infinite. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 501 of file boost_error_handling.hpp.

template<>
bool boost::math::isnan ( const stan::agrad::var  v)
inline

Checks if the given number is NaN.

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

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

Definition at line 69 of file error_handling.hpp.

template<>
bool boost::math::isnan ( short  n)
inline

Checks if the given number is NaN.

Integer values are never NaN. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 115 of file boost_error_handling.hpp.

template<>
bool boost::math::isnan ( unsigned short  n)
inline

Checks if the given number is NaN.

Integer values are never NaN. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 172 of file boost_error_handling.hpp.

template<>
bool boost::math::isnan ( int  n)
inline

Checks if the given number is NaN.

Integer values are never NaN. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 229 of file boost_error_handling.hpp.

template<>
bool boost::math::isnan ( unsigned int  n)
inline

Checks if the given number is NaN.

Integer values are never NaN. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 286 of file boost_error_handling.hpp.

template<>
bool boost::math::isnan ( long  n)
inline

Checks if the given number is NaN.

Integer values are never NaN. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 343 of file boost_error_handling.hpp.

template<>
bool boost::math::isnan ( unsigned long  n)
inline

Checks if the given number is NaN.

Integer values are never NaN. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 400 of file boost_error_handling.hpp.

template<>
bool boost::math::isnan ( long long  n)
inline

Checks if the given number is NaN.

Integer values are never NaN. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 457 of file boost_error_handling.hpp.

template<>
bool boost::math::isnan ( unsigned long long  n)
inline

Checks if the given number is NaN.

Integer values are never NaN. Returns false for all arguments.

Parameters
nValue to test.
Returns
false

Definition at line 514 of file boost_error_handling.hpp.

template<>
bool boost::math::isnormal ( const stan::agrad::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 84 of file error_handling.hpp.

template<>
bool boost::math::isnormal ( short  n)
inline

Checks if the given number is normal.

Integer values are always normal. Return true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 129 of file boost_error_handling.hpp.

template<>
bool boost::math::isnormal ( unsigned short  n)
inline

Checks if the given number is normal.

Integer values are always normal. Return true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 186 of file boost_error_handling.hpp.

template<>
bool boost::math::isnormal ( int  n)
inline

Checks if the given number is normal.

Integer values are always normal. Return true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 243 of file boost_error_handling.hpp.

template<>
bool boost::math::isnormal ( unsigned int  n)
inline

Checks if the given number is normal.

Integer values are always normal. Return true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 300 of file boost_error_handling.hpp.

template<>
bool boost::math::isnormal ( long  n)
inline

Checks if the given number is normal.

Integer values are always normal. Return true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 357 of file boost_error_handling.hpp.

template<>
bool boost::math::isnormal ( unsigned long  n)
inline

Checks if the given number is normal.

Integer values are always normal. Return true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 414 of file boost_error_handling.hpp.

template<>
bool boost::math::isnormal ( long long  n)
inline

Checks if the given number is normal.

Integer values are always normal. Return true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 471 of file boost_error_handling.hpp.

template<>
bool boost::math::isnormal ( unsigned long long  n)
inline

Checks if the given number is normal.

Integer values are always normal. Return true for all arguments.

Parameters
nValue to test.
Returns
true

Definition at line 528 of file boost_error_handling.hpp.


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