autoppl
v0.8
A C++ template library for probabilistic programming
|
Go to the documentation of this file.
28 std::is_base_of_v<ParamBase<T>, T>;
32 std::is_base_of_v<TParamBase<T>, T>;
36 std::is_base_of_v<DataBase<T>, T>;
38 template <
class VarType>
44 using id_t =
typename VarType::id_t;
45 static constexpr
bool is_cont_v = util::is_cont_v<typename base_t::value_t>;
46 static constexpr
bool is_disc_v = util::is_disc_v<typename base_t::value_t>;
52 template <
class VarType>
58 template <
class VarType>
62 template <
class VarType>
66 #if __cplusplus <= 201703L
70 param_is_base_of_v<T> &&
72 has_func_id_v<const T>
77 tparam_is_base_of_v<T> &&
79 has_func_id_v<const T>
84 data_is_base_of_v<T> &&
86 has_func_id_v<const T>
109 data_is_base_of_v<T> &&
110 requires (
const T cx,
size_t i) {
112 { cx.id() } -> std::same_as<typename var_traits<T>::id_t>;
119 param_is_base_of_v<T> &&
123 requires (T x,
const T cx,
size_t i) {
124 { cx.id() } -> std::same_as<typename var_traits<T>::id_t>;
131 tparam_is_base_of_v<T> &&
135 requires (T x,
const T cx,
size_t i) {
136 { cx.id() } -> std::same_as<typename var_traits<T>::id_t>;
148 concept dist_assignable_c =
Definition: var_traits.hpp:16
Definition: var_traits.hpp:54
Definition: var_traits.hpp:12
typename VarType::constraint_t constraint_t
Definition: var_traits.hpp:55
Definition: var_traits.hpp:24
Definition: var_expr_traits.hpp:28
#define PPL_CONT_XOR_DISC
Definition: type_traits.hpp:42
constexpr bool tparam_is_base_of_v
Definition: var_traits.hpp:31
constexpr bool is_var_v
Definition: var_traits.hpp:92
constexpr bool param_is_base_of_v
Definition: var_traits.hpp:27
typename VarType::id_t id_t
Definition: var_traits.hpp:44
Definition: var_traits.hpp:40
Definition: var_traits.hpp:60
Definition: type_traits.hpp:65
constexpr bool is_tparam_v
Definition: var_traits.hpp:76
constexpr bool is_param_v
Definition: var_traits.hpp:69
static constexpr bool is_disc_v
Definition: var_traits.hpp:46
constexpr bool is_dist_assignable_v
Definition: var_traits.hpp:99
static constexpr bool is_cont_v
Definition: var_traits.hpp:45
Definition: var_traits.hpp:64
constexpr bool data_is_base_of_v
Definition: var_traits.hpp:35
Definition: bounded.hpp:11
Definition: var_traits.hpp:20
constexpr bool is_data_v
Definition: var_traits.hpp:83