Stan Math Library  2.20.0
reverse mode automatic differentiation
is_mat_finite.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_ERR_IS_MAT_FINITE_HPP
2 #define STAN_MATH_PRIM_MAT_ERR_IS_MAT_FINITE_HPP
3 
6 
7 namespace stan {
8 namespace math {
9 
19 template <typename T, int R, int C>
20 inline bool is_mat_finite(const Eigen::Matrix<T, R, C>& y) {
21  return y.allFinite();
22 }
23 
24 } // namespace math
25 } // namespace stan
26 #endif
bool is_mat_finite(const Eigen::Matrix< T, R, C > &y)
Return true is the specified matrix is finite.

     [ Stan Home Page ] © 2011–2018, Stan Development Team.