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