Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Check that the inputs are of consistent size.
Two inputs are of consistent size if they are vectors of the same size, or if at least one is not a vector.
E.g.: check_consistent_sizes("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.hpp.