autoppl
v0.8
A C++ template library for probabilistic programming
|
#include <dot.hpp>
Public Types | |
using | value_t = std::common_type_t< typename util::var_expr_traits< lhs_t >::value_t, typename util::var_expr_traits< rhs_t >::value_t > |
using | shape_t = ad::core::details::dot_shape_t< lhs_t, rhs_t > |
Public Member Functions | |
DotNode (const lhs_t &lhs, const rhs_t &rhs) | |
template<class Func > | |
void | traverse (Func &&) const |
auto | eval () |
auto | get () |
size_t | size () const |
size_t | rows () const |
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 |
Static Public Attributes | |
static constexpr bool | has_param |
This class represents a dot product between a matrix expression and a vector expression. No other combination of shapes is allowed to be represented currently (compiler error if user attempts to pass in other shapes).
LHSVarExprType | lhs variable expression type |
RHSVarExprType | rhs variable expression type |
using ppl::expr::var::DotNode< LHSVarExprType, RHSVarExprType >::shape_t = ad::core::details::dot_shape_t<lhs_t, rhs_t> |
using ppl::expr::var::DotNode< LHSVarExprType, RHSVarExprType >::value_t = std::common_type_t< typename util::var_expr_traits<lhs_t>::value_t, typename util::var_expr_traits<rhs_t>::value_t > |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
staticconstexpr |