Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ check_row_index()

template<typename T_y , typename = require_matrix_t<T_y>>
void stan::math::check_row_index ( const char *  function,
const char *  name,
const T_y &  y,
size_t  i 
)
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.

Template Parameters
TMatrix type
Parameters
functionFunction name (for error messages)
nameVariable name (for error messages)
ymatrix to test
irow index to check
Exceptions
<code>std::out_of_range</code>if the index is out of range.

Definition at line 25 of file check_row_index.hpp.