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

#include <constant.hpp>

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

Public Types

using value_t = ValueType
 
using shape_t = ppl::vec
 

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
 
constexpr 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::vec > >
Constant< ValueType, ppl::vec > & self ()
 
const Constant< ValueType, ppl::vec > & 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::vec >::shape_t = ppl::vec

◆ value_t

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

Constructor & Destructor Documentation

◆ Constant()

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

Member Function Documentation

◆ activate_refcnt()

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

◆ ad()

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

◆ cols()

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

◆ eval()

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

◆ get()

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

◆ rows()

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

◆ size()

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

◆ traverse()

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

Member Data Documentation

◆ has_param

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

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