autoppl
v0.8
A C++ template library for probabilistic programming
|
#include <for_each.hpp>
Public Types | |
using | value_t = typename util::var_expr_traits< elt_t >::value_t |
using | shape_t = typename util::shape_traits< elt_t >::shape_t |
Public Member Functions | |
ForEachNode (const vec_expr_t &vec_expr) | |
template<class Func > | |
void | traverse (Func &&f) |
template<class Func > | |
void | traverse (Func &&f) const |
auto | get () const |
auto | eval () |
constexpr size_t | size () const |
constexpr size_t | rows () const |
constexpr size_t | cols () const |
template<class PtrPackType > | |
auto | ad (const PtrPackType &pack) const |
template<class PtrPackType > | |
void | bind (const PtrPackType &pack) |
void | activate_refcnt () const |
Public Member Functions inherited from ppl::util::BaseCRTP< ForEachNode< VecExprType > > | |
ForEachNode< VecExprType > & | self () |
const ForEachNode< VecExprType > & | self () const |
Static Public Attributes | |
static constexpr bool | has_param |
ForEachNode represents a for-loop where the expressions are contained in a vector. It is a generalization of a GlueNode for variable expressions.
VecExprType | type of vector of expressions |
using ppl::expr::var::ForEachNode< VecExprType >::shape_t = typename util::shape_traits<elt_t>::shape_t |
using ppl::expr::var::ForEachNode< VecExprType >::value_t = typename util::var_expr_traits<elt_t>::value_t |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
staticconstexpr |