Stan  1.0
probability, sampling & optimization
Classes | Functions
std Namespace Reference

Template specification of functions in std for Stan. More...

Classes

struct  numeric_limits< stan::agrad::var >
 Specialization of numeric limits for var objects. More...
 

Functions

int isnan (const stan::agrad::var &a)
 Checks if the given number is NaN. More...
 
int isinf (const stan::agrad::var &a)
 Checks if the given number is infinite. More...
 

Detailed Description

Template specification of functions in std for Stan.

Function Documentation

◆ isinf()

int std::isinf ( const stan::agrad::var a)
inline

Checks if the given number is infinite.

Return true if the value of the a is positive or negative infinity.

Parameters
aVariable to test.
Returns
true if value is infinite.

Definition at line 2374 of file agrad.hpp.

◆ isnan()

int std::isnan ( const stan::agrad::var a)
inline

Checks if the given number is NaN.

Return true if the value of the specified variable is not a number.

Parameters
aVariable to test.
Returns
true if value is not a number.

Definition at line 2361 of file agrad.hpp.


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