Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
mat
err
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
4
#include <
stan/math/prim/meta.hpp
>
5
#include <
stan/math/prim/mat/fun/Eigen.hpp
>
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
stan
Definition:
log_sum_exp.hpp:8
meta.hpp
stan::math::is_mat_finite
bool is_mat_finite(const Eigen::Matrix< T, R, C > &y)
Return true is the specified matrix is finite.
Definition:
is_mat_finite.hpp:20
Eigen.hpp
[
Stan Home Page
]
© 2011–2018, Stan Development Team.