autoppl  v0.8
A C++ template library for probabilistic programming
bernoulli.hpp File Reference
#include <cassert>
#include <fastad_bits/reverse/stat/bernoulli.hpp>
#include <autoppl/util/traits/traits.hpp>
#include <autoppl/expression/distribution/dist_utils.hpp>
#include <autoppl/math/density.hpp>

Go to the source code of this file.

Classes

struct  ppl::expr::dist::details::bern_valid_param_dim< PType >
 
struct  ppl::expr::dist::details::bern_valid_dim< VarType, PType >
 
struct  ppl::expr::dist::Bernoulli< PType >
 

Namespaces

 ppl
 
 ppl::expr
 
 ppl::expr::dist
 
 ppl::expr::dist::details
 

Macros

#define PPL_BERNOULLI_PARAM_SHAPE    "Bernoulli distribution probability must either be a scalar or vector. " \
 

Functions

template<class ProbType , class = std::enable_if_t< util::is_valid_dist_param_v<ProbType> >>
constexpr auto ppl::bernoulli (const ProbType &p_expr)
 

Variables

template<class PType >
constexpr bool ppl::expr::dist::details::bern_valid_param_dim_v
 
template<class VarType , class PType >
constexpr bool ppl::expr::dist::details::bern_valid_dim_v
 

Macro Definition Documentation

◆ PPL_BERNOULLI_PARAM_SHAPE

#define PPL_BERNOULLI_PARAM_SHAPE    "Bernoulli distribution probability must either be a scalar or vector. " \