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

#include <data.hpp>

Inheritance diagram for ppl::DataView< ValueType, ppl::mat >:
ppl::util::VarExprBase< DataView< ValueType, ppl::mat > > ppl::util::DataBase< DataView< ValueType, ppl::mat > > ppl::util::BaseCRTP< DataView< ValueType, ppl::mat > > ppl::util::VarBase< DataView< ValueType, ppl::mat > > ppl::util::BaseCRTP< DataView< ValueType, ppl::mat > > ppl::Data< ValueType, ppl::mat >

Public Types

using value_t = ValueType
 
using var_t = Eigen::Map< const Eigen::Matrix< value_t, Eigen::Dynamic, Eigen::Dynamic > >
 
using id_t = const void *
 
using shape_t = ppl::mat
 

Public Member Functions

 DataView (const value_t *begin, size_t rows, size_t cols) noexcept
 
const var_teval () const
 
const var_tget () const
 
size_t size () const
 
size_t rows () const
 
size_t cols () const
 
id_t id () const
 
template<class PtrPackType >
auto ad (const PtrPackType &) const
 
template<class PtrType >
void bind (PtrType begin)
 
void activate_refcnt () const
 
- Public Member Functions inherited from ppl::util::BaseCRTP< DataView< ValueType, ppl::mat > >
DataView< ValueType, ppl::mat > & self ()
 
const DataView< ValueType, ppl::mat > & self () const
 

Static Public Attributes

static constexpr bool has_param = false
 

Member Typedef Documentation

◆ id_t

template<class ValueType >
using ppl::DataView< ValueType, ppl::mat >::id_t = const void*

◆ shape_t

template<class ValueType >
using ppl::DataView< ValueType, ppl::mat >::shape_t = ppl::mat

◆ value_t

template<class ValueType >
using ppl::DataView< ValueType, ppl::mat >::value_t = ValueType

◆ var_t

template<class ValueType >
using ppl::DataView< ValueType, ppl::mat >::var_t = Eigen::Map<const Eigen::Matrix<value_t, Eigen::Dynamic, Eigen::Dynamic> >

Constructor & Destructor Documentation

◆ DataView()

template<class ValueType >
ppl::DataView< ValueType, ppl::mat >::DataView ( const value_t begin,
size_t  rows,
size_t  cols 
)
inlinenoexcept

Member Function Documentation

◆ activate_refcnt()

template<class ValueType >
void ppl::DataView< ValueType, ppl::mat >::activate_refcnt ( ) const
inline

◆ ad()

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

◆ bind()

template<class ValueType >
template<class PtrType >
void ppl::DataView< ValueType, ppl::mat >::bind ( PtrType  begin)
inline

◆ cols()

template<class ValueType >
size_t ppl::DataView< ValueType, ppl::mat >::cols ( ) const
inline

◆ eval()

template<class ValueType >
const var_t& ppl::DataView< ValueType, ppl::mat >::eval ( ) const
inline

◆ get()

template<class ValueType >
const var_t& ppl::DataView< ValueType, ppl::mat >::get ( ) const
inline

◆ id()

template<class ValueType >
id_t ppl::DataView< ValueType, ppl::mat >::id ( ) const
inline

◆ rows()

template<class ValueType >
size_t ppl::DataView< ValueType, ppl::mat >::rows ( ) const
inline

◆ size()

template<class ValueType >
size_t ppl::DataView< ValueType, ppl::mat >::size ( ) const
inline

Member Data Documentation

◆ has_param

template<class ValueType >
constexpr bool ppl::DataView< ValueType, ppl::mat >::has_param = false
staticconstexpr

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