![]() |
Stan
1.0
probability, sampling & optimization
|
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. | |
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
|
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.
| 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 error_handling.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 39 of file error_handling.hpp.
|
inline |
Checks if the given number has finite value.
Integer values are always finite. Returns true for all arguments.
| n | Value to test. |
true Definition at line 88 of file boost_error_handling.hpp.
|
inline |
Checks if the given number has finite value.
Integer values are always finite. Returns true for all arguments.
| n | Value to test. |
true Definition at line 145 of file boost_error_handling.hpp.
|
inline |
Checks if the given number has finite value.
Integer values are always finite. Returns true for all arguments.
| n | Value to test. |
true Definition at line 202 of file boost_error_handling.hpp.
|
inline |
Checks if the given number has finite value.
Integer values are always finite. Returns true for all arguments.
| n | Value to test. |
true Definition at line 259 of file boost_error_handling.hpp.
|
inline |
Checks if the given number has finite value.
Integer values are always finite. Returns true for all arguments.
| n | Value to test. |
true Definition at line 316 of file boost_error_handling.hpp.
|
inline |
Checks if the given number has finite value.
Integer values are always finite. Returns true for all arguments.
| n | Value to test. |
true Definition at line 373 of file boost_error_handling.hpp.
|
inline |
Checks if the given number has finite value.
Integer values are always finite. Returns true for all arguments.
| n | Value to test. |
true Definition at line 430 of file boost_error_handling.hpp.
|
inline |
Checks if the given number has finite value.
Integer values are always finite. Returns true for all arguments.
| n | Value to test. |
true Definition at line 487 of file boost_error_handling.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 54 of file error_handling.hpp.
|
inline |
Checks if the given number is infinite.
Integer values are never infinite. Returns false for all arguments.
| n | Value to test. |
false Definition at line 102 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is infinite.
Integer values are never infinite. Returns false for all arguments.
| n | Value to test. |
false Definition at line 159 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is infinite.
Integer values are never infinite. Returns false for all arguments.
| n | Value to test. |
false Definition at line 216 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is infinite.
Integer values are never infinite. Returns false for all arguments.
| n | Value to test. |
false Definition at line 273 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is infinite.
Integer values are never infinite. Returns false for all arguments.
| n | Value to test. |
false Definition at line 330 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is infinite.
Integer values are never infinite. Returns false for all arguments.
| n | Value to test. |
false Definition at line 387 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is infinite.
Integer values are never infinite. Returns false for all arguments.
| n | Value to test. |
false Definition at line 444 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is infinite.
Integer values are never infinite. Returns false for all arguments.
| n | Value to test. |
false Definition at line 501 of file boost_error_handling.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 69 of file error_handling.hpp.
|
inline |
Checks if the given number is NaN.
Integer values are never NaN. Returns false for all arguments.
| n | Value to test. |
false Definition at line 115 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is NaN.
Integer values are never NaN. Returns false for all arguments.
| n | Value to test. |
false Definition at line 172 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is NaN.
Integer values are never NaN. Returns false for all arguments.
| n | Value to test. |
false Definition at line 229 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is NaN.
Integer values are never NaN. Returns false for all arguments.
| n | Value to test. |
false Definition at line 286 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is NaN.
Integer values are never NaN. Returns false for all arguments.
| n | Value to test. |
false Definition at line 343 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is NaN.
Integer values are never NaN. Returns false for all arguments.
| n | Value to test. |
false Definition at line 400 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is NaN.
Integer values are never NaN. Returns false for all arguments.
| n | Value to test. |
false Definition at line 457 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is NaN.
Integer values are never NaN. Returns false for all arguments.
| n | Value to test. |
false Definition at line 514 of file boost_error_handling.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 84 of file error_handling.hpp.
|
inline |
Checks if the given number is normal.
Integer values are always normal. Return true for all arguments.
| n | Value to test. |
true Definition at line 129 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is normal.
Integer values are always normal. Return true for all arguments.
| n | Value to test. |
true Definition at line 186 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is normal.
Integer values are always normal. Return true for all arguments.
| n | Value to test. |
true Definition at line 243 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is normal.
Integer values are always normal. Return true for all arguments.
| n | Value to test. |
true Definition at line 300 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is normal.
Integer values are always normal. Return true for all arguments.
| n | Value to test. |
true Definition at line 357 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is normal.
Integer values are always normal. Return true for all arguments.
| n | Value to test. |
true Definition at line 414 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is normal.
Integer values are always normal. Return true for all arguments.
| n | Value to test. |
true Definition at line 471 of file boost_error_handling.hpp.
|
inline |
Checks if the given number is normal.
Integer values are always normal. Return true for all arguments.
| n | Value to test. |
true Definition at line 528 of file boost_error_handling.hpp.