Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
stan
math
rev
core
std_isinf.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_REV_CORE_STD_ISINF_HPP
2
#define STAN_MATH_REV_CORE_STD_ISINF_HPP
3
4
#include <
stan/math/prim/scal/fun/is_inf.hpp
>
5
#include <
stan/math/rev/core/var.hpp
>
6
7
namespace
std
{
8
9
/**
10
* Return <code>1</code> if the specified argument is positive
11
* infinity or negative infinity and <code>0</code> otherwise.
12
*
13
* @param a Argument.
14
* @return 1 if argument is infinite and 0 otherwise.
15
*/
16
inline
int
isinf
(
const
stan::math::var
&
a
) {
17
return
stan::math::is_inf
(a.
val
());
18
}
19
20
}
// namespace std
21
#endif
std::isinf
int isinf(const stan::math::var &a)
Definition:
std_isinf.hpp:16
std
Definition:
SpectrumLoaderBase.h:26
is_inf.hpp
stan::math::var
Definition:
var.hpp:33
a
const double a
Definition:
gUpMuFluxGen.cxx:164
var.hpp
stan::math::is_inf
int is_inf(const fvar< T > &x)
Definition:
is_inf.hpp:19
stan::math::var::val
double val() const
Definition:
var.hpp:294
Generated on Sat Jan 16 2021 14:15:41 for NOvA by
1.8.11