Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Check that the predicate holds for the value of x
, working elementwise on containers.
If x
is a scalar, check the double underlying the scalar. If x
is a container, check each element inside x
, recursively.
F | type of predicate |
T | type of x |
is_good | predicate to check, must accept doubles and produce bools |
x | variable to check, can be a scalar, a container of scalars, a container of containers of scalars, etc |
false
if any of the scalars fail the error check Definition at line 333 of file elementwise_check.hpp.