Automatic Differentiation
 
Loading...
Searching...
No Matches
is_column_index.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_ERR_IS_COLUMN_INDEX_HPP
2#define STAN_MATH_PRIM_ERR_IS_COLUMN_INDEX_HPP
3
6
7namespace stan {
8namespace math {
9
19template <typename EigMat, require_eigen_t<EigMat>* = nullptr>
20inline bool is_column_index(const EigMat& y, size_t i) {
21 return i >= stan::error_index::value
22 && i < static_cast<size_t>(y.cols()) + stan::error_index::value;
23}
24
25} // namespace math
26} // namespace stan
27#endif
bool is_column_index(const EigMat &y, size_t i)
Return true if column index is in bounds.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9