Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Throw an out_of_range exception with a consistently formatted message.
This is an abstraction for all Stan functions to use when throwing out of range. This will allow us to change the behavior for all functions at once. The message is: "<function>: index <index> out of range; expecting index to be between " "1 and <max><msg1><msg2>"
function | Name of the function |
max | Max |
index | Index |
msg1 | Message to print. Default is "". |
msg2 | Message to print. Default is "". |
std::out_of_range | with message. |
Definition at line 27 of file out_of_range.hpp.