autoppl  v0.8
A C++ template library for probabilistic programming
ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained > Struct Template Reference

#include <unconstrained.hpp>

Public Types

using value_t = ValueType
 
using shape_t = ShapeType
 
using constraint_t = Unconstrained
 
using var_t = util::var_t< value_t, shape_t >
 
using view_t = ad::util::shape_to_raw_view_t< value_t, shape_t >
 

Public Member Functions

 Transformer (size_t rows, size_t cols, constraint_t=constraint_t())
 
void transform ()
 
void inv_transform (size_t)
 
template<class CurrPtrPack , class PtrPack >
auto inv_transform_ad (const CurrPtrPack &curr_pack, const PtrPack &, size_t) const
 
template<class CurrPtrPack , class PtrPack >
auto logj_inv_transform_ad (const CurrPtrPack &, const PtrPack &) const
 
template<class GenType , class ContDist >
void init (GenType &gen, ContDist &dist)
 
void activate_refcnt (size_t) const
 
var_tget_c ()
 
const var_tget_c () const
 
constexpr size_t size_uc () const
 
constexpr size_t rows_uc () const
 
constexpr size_t cols_uc () const
 
constexpr size_t size_c () const
 
constexpr size_t rows_c () const
 
constexpr size_t cols_c () const
 
constexpr size_t bind_size_uc () const
 
constexpr size_t bind_size_c () const
 
constexpr size_t bind_size_v () const
 
template<class CurrPtrPack , class PtrPack >
void bind (const CurrPtrPack &curr_pack, const PtrPack &)
 

Member Typedef Documentation

◆ constraint_t

template<class ValueType , class ShapeType >
using ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::constraint_t = Unconstrained

◆ shape_t

template<class ValueType , class ShapeType >
using ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::shape_t = ShapeType

◆ value_t

template<class ValueType , class ShapeType >
using ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::value_t = ValueType

◆ var_t

template<class ValueType , class ShapeType >
using ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::var_t = util::var_t<value_t, shape_t>

◆ view_t

template<class ValueType , class ShapeType >
using ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::view_t = ad::util::shape_to_raw_view_t<value_t, shape_t>

Constructor & Destructor Documentation

◆ Transformer()

template<class ValueType , class ShapeType >
ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::Transformer ( size_t  rows,
size_t  cols,
constraint_t  = constraint_t() 
)
inline

Constructs a Transformer object.

Parameters
rowsnumber of constrained rows
colsnumber of constrained cols

Member Function Documentation

◆ activate_refcnt()

template<class ValueType , class ShapeType >
void ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::activate_refcnt ( size_t  ) const
inline

◆ bind()

template<class ValueType , class ShapeType >
template<class CurrPtrPack , class PtrPack >
void ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::bind ( const CurrPtrPack &  curr_pack,
const PtrPack &   
)
inline

Binds unconstrained viewer to unconstrained region.

◆ bind_size_c()

template<class ValueType , class ShapeType >
constexpr size_t ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::bind_size_c ( ) const
inlineconstexpr

◆ bind_size_uc()

template<class ValueType , class ShapeType >
constexpr size_t ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::bind_size_uc ( ) const
inlineconstexpr

◆ bind_size_v()

template<class ValueType , class ShapeType >
constexpr size_t ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::bind_size_v ( ) const
inlineconstexpr

◆ cols_c()

template<class ValueType , class ShapeType >
constexpr size_t ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::cols_c ( ) const
inlineconstexpr

◆ cols_uc()

template<class ValueType , class ShapeType >
constexpr size_t ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::cols_uc ( ) const
inlineconstexpr

◆ get_c() [1/2]

template<class ValueType , class ShapeType >
var_t& ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::get_c ( )
inline

◆ get_c() [2/2]

template<class ValueType , class ShapeType >
const var_t& ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::get_c ( ) const
inline

◆ init()

template<class ValueType , class ShapeType >
template<class GenType , class ContDist >
void ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::init ( GenType &  gen,
ContDist &  dist 
)
inline

◆ inv_transform()

template<class ValueType , class ShapeType >
void ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::inv_transform ( size_t  )
inline

◆ inv_transform_ad()

template<class ValueType , class ShapeType >
template<class CurrPtrPack , class PtrPack >
auto ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::inv_transform_ad ( const CurrPtrPack &  curr_pack,
const PtrPack &  ,
size_t   
) const
inline

◆ logj_inv_transform_ad()

template<class ValueType , class ShapeType >
template<class CurrPtrPack , class PtrPack >
auto ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::logj_inv_transform_ad ( const CurrPtrPack &  ,
const PtrPack &   
) const
inline

◆ rows_c()

template<class ValueType , class ShapeType >
constexpr size_t ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::rows_c ( ) const
inlineconstexpr

◆ rows_uc()

template<class ValueType , class ShapeType >
constexpr size_t ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::rows_uc ( ) const
inlineconstexpr

◆ size_c()

template<class ValueType , class ShapeType >
constexpr size_t ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::size_c ( ) const
inlineconstexpr

◆ size_uc()

template<class ValueType , class ShapeType >
constexpr size_t ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::size_uc ( ) const
inlineconstexpr

◆ transform()

template<class ValueType , class ShapeType >
void ppl::expr::constraint::Transformer< ValueType, ShapeType, Unconstrained >::transform ( )
inline

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