Throw a domain error with a consistently formatted message for matrices.
This is an abstraction for all Stan functions to use when throwing domain errors. This will allow us to change the behavior for all functions at once. The message is: "<function>: <name>[<i+error_index, j+error_index>]
<msg1><y>" where error_index is the value of stan::error_index::value which indicates whether the message should be 0 or 1 indexed.
- Template Parameters
-
- Parameters
-
function | Name of the function |
name | Name of the variable |
y | Variable |
i | Row index |
j | Column index |
msg | Message to print before the variable |
- Exceptions
-
Definition at line 66 of file throw_domain_error_mat.hpp.