Automatic Differentiation
 
Loading...
Searching...
No Matches
elementwise_check.hpp File Reference

Go to the source code of this file.

Classes

class  stan::math::internal::Iser< F >
 Apply an error check to a container, signal failure with false. More...
 

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 
namespace  stan::math::internal
 A comparator that works for any container type that has the brackets operator.
 

Functions

void stan::math::internal::pipe_in (std::stringstream &ss)
 No-op.
 
template<typename Arg0 , typename... Args>
void stan::math::internal::pipe_in (std::stringstream &ss, Arg0 arg0, const Args... args)
 Pipes given arguments into a stringstream.
 
template<typename... Args>
void stan::math::internal::elementwise_throw_domain_error (const Args... args)
 Throws domain error with concatenation of arguments for the error message.
 
template<typename F , typename T , typename... Indexings, require_stan_scalar_t< T > * = nullptr>
void stan::math::elementwise_check (const F &is_good, const char *function, const char *name, const T &x, const char *must_be, const Indexings &... indexings)
 Check that the predicate holds for the value of x.
 
template<typename F , typename T , typename... Indexings, require_eigen_t< T > * = nullptr, std::enable_if_t<(Eigen::internal::traits< T >::Flags &Eigen::LinearAccessBit)||T::IsVectorAtCompileTime > * = nullptr>
void stan::math::elementwise_check (const F &is_good, const char *function, const char *name, const T &x, const char *must_be, const Indexings &... indexings)
 Check that the predicate holds for all elements of the value of x.
 
template<typename F , typename T >
bool stan::math::elementwise_is (const F &is_good, const T &x)
 Check that the predicate holds for the value of x, working elementwise on containers.