Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::internal::Iser< F > Class Template Reference

Detailed Description

template<typename F>
class stan::math::internal::Iser< F >

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.

Template Parameters
Ftype 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
 

The documentation for this class was generated from the following file: