Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Check if the specified index is a valid element of the row or column vector This check is 1-indexed by default.
This behavior can be changed by setting stan::error_index::value
.
T | Vector type |
function | Function name (for error messages) |
name | Variable name (for error messages) |
y | vector to test |
i | row index to check |
<code>std::out_of_range</code> | if the index is out of range. |
Definition at line 27 of file check_vector_index.hpp.