1#ifndef STAN_MATH_PRIM_ERR_IS_MAT_FINITE_HPP
2#define STAN_MATH_PRIM_ERR_IS_MAT_FINITE_HPP
19template <
typename EigMat, require_eigen_t<EigMat>* =
nullptr>
21 return y.array().isFinite().all();
bool is_mat_finite(const EigMat &y)
Return true is the specified matrix is finite.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...