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

◆ get_base1() [10/11]

template<typename EigMat , require_eigen_t< EigMat > * = nullptr>
const value_type_t< EigMat > & stan::math::get_base1 ( const EigMat &  x,
size_t  m,
size_t  n,
const char *  error_msg,
size_t  idx 
)
inline

Return a reference to the value of the specified matrix at the specified base-one row and column indexes.

If either index is out of range, throw a std::out_of_range exception with the specified error message and index indicated.

Template Parameters
EigMattype of the matrix
Parameters
xMatrix from which to get a row
mRow index plus 1.
nColumn index plus 1.
error_msgError message if either index is out of range.
idxNested index level to report in error message if either index is out of range.
Returns
Value of matrix at row m - 1 and column n - 1.
Exceptions
std::out_of_rangeif idx is out of range.

Definition at line 277 of file get_base1.hpp.