Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Check if the specified matrix/vector is of non-zero size.
Throws a std:invalid_argument otherwise. The message will indicate that the variable name "has size 0".
T_y | Type of container |
function | Function name (for error messages) |
name | Variable name (for error messages) |
y | Container to test. This will accept matrices and vectors |
<code>std::invalid_argument</code> | if the specified matrix/vector has zero size |
Definition at line 22 of file check_nonzero_size.hpp.