autoppl  v0.8
A C++ template library for probabilistic programming
ppl::expr::constraint::PosDef Struct Reference

#include <pos_def.hpp>

Static Public Member Functions

static constexpr size_t size (size_t rows)
 
template<class CType , class UCType >
static constexpr void transform (const CType &c, UCType &uc)
 
template<class LowerType , class UCType , class CType >
static constexpr void inv_transform (LowerType &lower, const UCType &uc, CType &c)
 

Member Function Documentation

◆ inv_transform()

template<class LowerType , class UCType , class CType >
static constexpr void ppl::expr::constraint::PosDef::inv_transform ( LowerType &  lower,
const UCType &  uc,
CType &  c 
)
inlinestaticconstexpr

Inverse transforms from unconstrained parameters (uc), which is vector-like in the sense that operator()(index) is defined, to constrained parameter (c), which is matrix-like. Lower should also be matrix-like supporting operator()(index, index) which is used a temporary storage for the transformation.

◆ size()

static constexpr size_t ppl::expr::constraint::PosDef::size ( size_t  rows)
inlinestaticconstexpr

Returns the number of unconstrained parameters based on the rows (which is also cols) of a positive-definite matrix.

◆ transform()

template<class CType , class UCType >
static constexpr void ppl::expr::constraint::PosDef::transform ( const CType &  c,
UCType &  uc 
)
inlinestaticconstexpr

Transforms from constrained (c) to unconstrained (uc).


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