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

◆ get_base1() [11/11]

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

Return a reference to the value of the specified Eigen vector at the specified base-one index.

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

Template Parameters
EigVectype of the vector
Parameters
xEigen vector from which to get a value.
mRow index plus 1.
error_msgError message if the index is out of range.
idxNested index level to report in error message if the index is out of range.
Returns
Value of Eigen vector at row m - 1.
Exceptions
std::out_of_rangeif idx is out of range.

Definition at line 301 of file get_base1.hpp.