autoppl  v0.8
A C++ template library for probabilistic programming
ppl::util::dist_expr_traits< DistExprType > Struct Template Reference

#include <dist_expr_traits.hpp>

Public Types

using value_t = typename DistExprType::value_t
 
using dist_value_t = typename DistExprType::dist_value_t
 

Static Public Attributes

static constexpr bool is_cont_v = util::is_cont_v<value_t>
 
static constexpr bool is_disc_v = util::is_disc_v<value_t>
 

Detailed Description

template<class DistExprType>
struct ppl::util::dist_expr_traits< DistExprType >

Traits for Distribution Expression classes. value_t type of value Variable represents during computation dist_value_t type of pdf/log_pdf value

Member Typedef Documentation

◆ dist_value_t

template<class DistExprType >
using ppl::util::dist_expr_traits< DistExprType >::dist_value_t = typename DistExprType::dist_value_t

◆ value_t

template<class DistExprType >
using ppl::util::dist_expr_traits< DistExprType >::value_t = typename DistExprType::value_t

Member Data Documentation

◆ is_cont_v

template<class DistExprType >
constexpr bool ppl::util::dist_expr_traits< DistExprType >::is_cont_v = util::is_cont_v<value_t>
staticconstexpr

◆ is_disc_v

template<class DistExprType >
constexpr bool ppl::util::dist_expr_traits< DistExprType >::is_disc_v = util::is_disc_v<value_t>
staticconstexpr

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