Stan Math Library
5.0.0
Automatic Differentiation
|
Apply an error check to a container, signal failure with false
.
Apply a predicate like is_positive to the double underlying every scalar in a container, producing true if the predicate holds everywhere and false
if it fails anywhere.
F | type of predicate |
Definition at line 27 of file elementwise_check.hpp.
#include <elementwise_check.hpp>
Public Member Functions | |
Iser (const F &is_good) | |
template<typename T , typename = require_stan_scalar_t<T>> | |
bool | is (const T &x) |
Check the scalar. | |
template<typename T , typename = require_not_stan_scalar_t<T>, typename = void> | |
bool | is (const T &x) |
Check all the scalars inside the container. | |
Private Attributes | |
const F & | is_good |