autoppl  v0.8
A C++ template library for probabilistic programming
ppl::expr::constraint::Bounded< LowerType, UpperType > Struct Template Reference

#include <bounded.hpp>

Public Member Functions

 Bounded (const lower_t &lower, const upper_t &upper)
 
template<class T >
constexpr void transform (const T &c, T &uc) const
 
template<class T >
constexpr void inv_transform (const T &uc, T &c)
 
template<class UCViewType , class CurrPtrPackType , class PtrPackType >
auto inv_transform_ad (const UCViewType &uc_view, const CurrPtrPackType &curr_pack, const PtrPackType &pack, size_t refcnt) const
 
template<class UCViewType , class CurrPtrPack , class PtrPack >
auto logj_inv_transform_ad (const UCViewType &uc_view, const CurrPtrPack &curr_pack, const PtrPack &pack) const
 
void activate_refcnt () const
 
template<class PtrPack >
void bind (const PtrPack &pack)
 

Constructor & Destructor Documentation

◆ Bounded()

template<class LowerType , class UpperType >
ppl::expr::constraint::Bounded< LowerType, UpperType >::Bounded ( const lower_t &  lower,
const upper_t &  upper 
)
inline

Member Function Documentation

◆ activate_refcnt()

template<class LowerType , class UpperType >
void ppl::expr::constraint::Bounded< LowerType, UpperType >::activate_refcnt ( ) const
inline

◆ bind()

template<class LowerType , class UpperType >
template<class PtrPack >
void ppl::expr::constraint::Bounded< LowerType, UpperType >::bind ( const PtrPack &  pack)
inline

◆ inv_transform()

template<class LowerType , class UpperType >
template<class T >
constexpr void ppl::expr::constraint::Bounded< LowerType, UpperType >::inv_transform ( const T &  uc,
T &  c 
)
inlineconstexpr

Inverse transforms from unconstrained (uc) to constrained (c).

◆ inv_transform_ad()

template<class LowerType , class UpperType >
template<class UCViewType , class CurrPtrPackType , class PtrPackType >
auto ppl::expr::constraint::Bounded< LowerType, UpperType >::inv_transform_ad ( const UCViewType &  uc_view,
const CurrPtrPackType &  curr_pack,
const PtrPackType &  pack,
size_t  refcnt 
) const
inline

◆ logj_inv_transform_ad()

template<class LowerType , class UpperType >
template<class UCViewType , class CurrPtrPack , class PtrPack >
auto ppl::expr::constraint::Bounded< LowerType, UpperType >::logj_inv_transform_ad ( const UCViewType &  uc_view,
const CurrPtrPack &  curr_pack,
const PtrPack &  pack 
) const
inline

◆ transform()

template<class LowerType , class UpperType >
template<class T >
constexpr void ppl::expr::constraint::Bounded< LowerType, UpperType >::transform ( const T &  c,
T &  uc 
) const
inlineconstexpr

Transforms from constrained (c) to unconstrained (uc).


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