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

#include <constant.hpp>

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

Public Types

using value_t = ValueType
 
using shape_t = ppl::mat
 

Public Member Functions

template<class T >
 Constant (const Eigen::EigenBase< T > &c)
 
template<class Func >
void traverse (Func &&) const
 
const auto & eval () const
 
const auto & get () const
 
size_t size () const
 
size_t rows () const
 
size_t cols () const
 
template<class PtrPackType >
auto ad (const PtrPackType &) const
 
void activate_refcnt () const
 
- Public Member Functions inherited from ppl::util::BaseCRTP< Constant< ValueType, ppl::mat > >
Constant< ValueType, ppl::mat > & self ()
 
const Constant< ValueType, ppl::mat > & 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::mat >::shape_t = ppl::mat

◆ value_t

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

Constructor & Destructor Documentation

◆ Constant()

template<class ValueType >
template<class T >
ppl::expr::var::Constant< ValueType, ppl::mat >::Constant ( const Eigen::EigenBase< T > &  c)
inline

Member Function Documentation

◆ activate_refcnt()

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

◆ ad()

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

◆ cols()

template<class ValueType >
size_t ppl::expr::var::Constant< ValueType, ppl::mat >::cols ( ) const
inline

◆ eval()

template<class ValueType >
const auto& ppl::expr::var::Constant< ValueType, ppl::mat >::eval ( ) const
inline

◆ get()

template<class ValueType >
const auto& ppl::expr::var::Constant< ValueType, ppl::mat >::get ( ) const
inline

◆ rows()

template<class ValueType >
size_t ppl::expr::var::Constant< ValueType, ppl::mat >::rows ( ) const
inline

◆ size()

template<class ValueType >
size_t ppl::expr::var::Constant< ValueType, ppl::mat >::size ( ) const
inline

◆ traverse()

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

Member Data Documentation

◆ has_param

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

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