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

#include <data.hpp>

Detailed Description

template<class ValueType, class ShapeType = ppl::scl>
struct ppl::DataView< ValueType, ShapeType >

DataView is a class that only views data values. It cannot modify the underlying value. If there are multiple values, i.e. shape is vec or mat, it views all of the elements. Specializations for ppl::scl, vec, and mat are provided and all else are disabled.

Template Parameters
ValueTypeunderlying value type (usually double or int).
ShapeTypeone of the three shape tags.

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