autoppl  v0.8
A C++ template library for probabilistic programming
ppl::expr::var::Constant< ValueType, ppl::scl > Struct Template Reference

#include <constant.hpp>

Inheritance diagram for ppl::expr::var::Constant< ValueType, ppl::scl >:
ppl::util::VarExprBase< Constant< ValueType, ppl::scl > > ppl::util::BaseCRTP< Constant< ValueType, ppl::scl > >

Public Types

using value_t = ValueType
 
using shape_t = ppl::scl
 

Public Member Functions

 Constant (value_t c)
 
template<class Func >
void traverse (Func &&) const
 
value_t eval () const
 
value_t get () const
 
constexpr size_t size () const
 
template<class PtrPackType >
auto ad (const PtrPackType &) const
 
void activate_refcnt () const
 
- Public Member Functions inherited from ppl::util::BaseCRTP< Constant< ValueType, ppl::scl > >
Constant< ValueType, ppl::scl > & self ()
 
const Constant< ValueType, ppl::scl > & self () const
 

Static Public Attributes

static constexpr bool has_param = false
 

Member Typedef Documentation

◆ shape_t

template<class ValueType >
using ppl::expr::var::Constant< ValueType, ppl::scl >::shape_t = ppl::scl

◆ value_t

template<class ValueType >
using ppl::expr::var::Constant< ValueType, ppl::scl >::value_t = ValueType

Constructor & Destructor Documentation

◆ Constant()

template<class ValueType >
ppl::expr::var::Constant< ValueType, ppl::scl >::Constant ( value_t  c)
inline

Member Function Documentation

◆ activate_refcnt()

template<class ValueType >
void ppl::expr::var::Constant< ValueType, ppl::scl >::activate_refcnt ( ) const
inline

◆ ad()

template<class ValueType >
template<class PtrPackType >
auto ppl::expr::var::Constant< ValueType, ppl::scl >::ad ( const PtrPackType &  ) const
inline

◆ eval()

template<class ValueType >
value_t ppl::expr::var::Constant< ValueType, ppl::scl >::eval ( ) const
inline

◆ get()

template<class ValueType >
value_t ppl::expr::var::Constant< ValueType, ppl::scl >::get ( ) const
inline

◆ size()

template<class ValueType >
constexpr size_t ppl::expr::var::Constant< ValueType, ppl::scl >::size ( ) const
inlineconstexpr

◆ traverse()

template<class ValueType >
template<class Func >
void ppl::expr::var::Constant< ValueType, ppl::scl >::traverse ( Func &&  ) const
inline

Member Data Documentation

◆ has_param

template<class ValueType >
constexpr bool ppl::expr::var::Constant< ValueType, ppl::scl >::has_param = false
staticconstexpr

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