1 #ifndef STAN_MATH_PRIM_MAT_ERR_CHECK_FINITE_HPP 2 #define STAN_MATH_PRIM_MAT_ERR_CHECK_FINITE_HPP 9 #include <boost/math/special_functions/fpclassify.hpp> 26 template <
typename T,
int R,
int C>
28 static void check(
const char*
function,
const char* name,
29 const Eigen::Matrix<T, R, C>& y) {
31 for (
int n = 0; n < y.size(); ++n) {
34 ", but must be finite!");
bool isfinite(const stan::math::var &v)
Checks if the given number has finite value.
T value_of(const fvar< T > &v)
Return the value of the specified variable.
void domain_error_vec(const char *function, const char *name, const T &y, size_t i, const char *msg1, const char *msg2)
Throw a domain error with a consistently formatted message.
(Expert) Numerical traits for algorithmic differentiation variables.
static void check(const char *function, const char *name, const Eigen::Matrix< T, R, C > &y)