Automatic Differentiation
 
Loading...
Searching...
No Matches
is_mat_finite.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_ERR_IS_MAT_FINITE_HPP
2#define STAN_MATH_PRIM_ERR_IS_MAT_FINITE_HPP
3
7
8namespace stan {
9namespace math {
10
19template <typename EigMat, require_eigen_t<EigMat>* = nullptr>
20inline bool is_mat_finite(const EigMat& y) {
21 return y.array().isFinite().all();
22}
23
24} // namespace math
25} // namespace stan
26#endif
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 ...