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

◆ get_base1_lhs() [5/12]

template<typename T >
T & stan::math::get_base1_lhs ( std::vector< std::vector< std::vector< std::vector< std::vector< T > > > > > &  x,
size_t  i1,
size_t  i2,
size_t  i3,
size_t  i4,
size_t  i5,
const char *  error_msg,
size_t  idx 
)
inline

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

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

Template Parameters
Ttype of value
Parameters
xVector from which to get a value.
i1First index plus 1.
i2Second index plus 1.
i3Third index plus 1.
i4Fourth index plus 1.
i5Fifth index plus 1.
error_msgError message if an index is out of range.
idxNested index level to report in error message if the index is out of range.
Returns
Value of vector at indexes.
Exceptions
std::out_of_rangeif idx is out of range.

Definition at line 127 of file get_base1_lhs.hpp.