Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ check_finite()

template<typename T_y >
void stan::math::check_finite ( const char *  function,
const char *  name,
const T_y &  y 
)
inline

Return true if all values in y are finite.

y can be a scalar, std::vector or Eigen type.

Template Parameters
T_ytype of y
Parameters
functionname of function (for error messages)
namevariable name (for error messages)
yscalar or container to test
Returns
true if all values are finite

Definition at line 28 of file check_finite.hpp.