Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Check that the provided multivariate inputs are of consistent size with each other.
Two multivariate inputs are of consistent size if both are std::vector
s of the same size, or if at least one is a not an std::vector
.
E.g.: check_consistent_sizes_mvt("some_function", "x1", x1, "x2", x2, etc.).
T1 | type of first input |
T2 | type of second input |
Ts | type of other inputs |
function | function name (for error messages) |
name1 | name of variable corresponding to first input |
x1 | first input |
name2 | name of variable corresponding to second input |
x2 | second input |
names_and_xs | more inputs |
`invalid_argument` | if sizes are inconsistent |
Definition at line 46 of file check_consistent_sizes_mvt.hpp.