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

#include <data.hpp>

Detailed Description

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

Data a user-friendly wrapper of DataView. It is a DataView (it views itself). The difference is that it owns the container of values. This will usually be used as a quick means to add values directly into a data object.

A Data is not a variable expression, but a DataView is. This means any model expression that references Data objects will not create copies of underlying container.

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: