Stan Math Library
5.0.0
Automatic Differentiation
|
|
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.
T | type of value |
x | Vector from which to get a value. |
i1 | First index plus 1. |
i2 | Second index plus 1. |
i3 | Third index plus 1. |
i4 | Fourth index plus 1. |
i5 | Fifth index plus 1. |
i6 | Sixth index plus 1. |
i7 | Seventh index plus 1. |
i8 | Eigth index plus 1. |
error_msg | Error message if an index is out of range. |
idx | Nested index level to report in error message if the index is out of range. |
std::out_of_range | if idx is out of range. |
Definition at line 222 of file get_base1.hpp.