autoppl  v0.8
A C++ template library for probabilistic programming
ppl::Param< ValueType, ppl::vec, ConstraintType > Struct Template Reference

#include <param.hpp>

Inheritance diagram for ppl::Param< ValueType, ppl::vec, ConstraintType >:
ppl::ParamView< ValueType, ppl::vec, ConstraintType > ppl::util::ParamBase< Param< ValueType, ppl::vec, ConstraintType > > ppl::util::VarExprBase< ParamView< ValueType, ppl::vec, ConstraintType > > ppl::util::ParamBase< ParamView< ValueType, ppl::vec, ConstraintType > > ppl::util::VarBase< Param< ValueType, ppl::vec, ConstraintType > > ppl::util::BaseCRTP< ParamView< ValueType, ppl::vec, ConstraintType > > ppl::util::VarBase< ParamView< ValueType, ppl::vec, ConstraintType > > ppl::util::BaseCRTP< Param< ValueType, ppl::vec, ConstraintType > > ppl::util::BaseCRTP< ParamView< ValueType, ppl::vec, ConstraintType > >

Public Types

using base_t = ParamView< ValueType, ppl::vec, ConstraintType >
 
- Public Types inherited from ppl::ParamView< ValueType, ppl::vec, ConstraintType >
using value_t = ValueType
 
using shape_t = ppl::vec
 
using constraint_t = ConstraintType
 
using var_t = util::var_t< value_t, shape_t >
 
using id_t = const void *
 

Public Member Functions

 Param (size_t n, size_t=1, constraint_t c=constraint_t())
 
- Public Member Functions inherited from ppl::ParamView< ValueType, ppl::vec, ConstraintType >
 ParamView (details::ParamInfoPack *i_pack, size_t rows=1, size_t cols=1, constraint_t c=constraint_t()) noexcept
 
void traverse (Func &&) const
 
const var_teval ()
 
void inv_eval ()
 
auto ad (const util::PtrPack< value_t *, value_t *, TPValPtrType, TPAdjPtrType, value_t * > &pack) const
 
auto logj_ad (const util::PtrPack< value_t *, value_t *, TPValPtrType, TPAdjPtrType, value_t * > &pack) const
 
void init (GenType &gen, ContDist &dist)
 
void activate (util::OffsetPack &pack) const
 
void activate_refcnt () const
 
void bind (const PtrPackType &pack)
 
var_tget ()
 
const var_tget () const
 
constexpr size_t size () const
 
constexpr size_t rows () const
 
constexpr size_t cols () const
 
id_t id () const
 
auto & offset ()
 
auto offset () const
 
constexpr size_t size_uc () const
 
constexpr size_t size_c () const
 
- Public Member Functions inherited from ppl::util::BaseCRTP< ParamView< ValueType, ppl::vec, ConstraintType > >
ParamView< ValueType, ppl::vec, ConstraintType > & self ()
 
const ParamView< ValueType, ppl::vec, ConstraintType > & self () const
 
- Public Member Functions inherited from ppl::util::BaseCRTP< Param< ValueType, ppl::vec, ConstraintType > >
Param< ValueType, ppl::vec, ConstraintType > & self ()
 
const Param< ValueType, ppl::vec, ConstraintType > & self () const
 

Additional Inherited Members

- Static Public Attributes inherited from ppl::ParamView< ValueType, ppl::vec, ConstraintType >
static constexpr bool has_param
 

Member Typedef Documentation

◆ base_t

template<class ValueType , class ConstraintType >
using ppl::Param< ValueType, ppl::vec, ConstraintType >::base_t = ParamView<ValueType, ppl::vec, ConstraintType>

Constructor & Destructor Documentation

◆ Param()

template<class ValueType , class ConstraintType >
ppl::Param< ValueType, ppl::vec, ConstraintType >::Param ( size_t  n,
size_t  = 1,
constraint_t  c = constraint_t() 
)
inline

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