#include <lower.hpp>
|
| Transformer (size_t rows, size_t cols, const constraint_t &c) |
|
void | transform () |
|
void | inv_transform (size_t refcnt) |
|
template<class CurrPtrPack , class PtrPack > |
auto | inv_transform_ad (const CurrPtrPack &curr_pack, const PtrPack &pack, size_t refcnt) const |
|
template<class CurrPtrPack , class PtrPack > |
auto | logj_inv_transform_ad (const CurrPtrPack &curr_pack, const PtrPack &) const |
|
template<class GenType , class ContDist > |
void | init (GenType &gen, ContDist &dist) |
|
void | activate_refcnt (size_t curr_refcnt) const |
|
var_t & | get_c () |
|
const var_t & | get_c () const |
|
constexpr size_t | size_uc () const |
|
constexpr size_t | rows_uc () const |
|
constexpr size_t | cols_uc () const |
|
constexpr size_t | size_c () const |
|
constexpr size_t | rows_c () const |
|
constexpr size_t | cols_c () const |
|
constexpr size_t | bind_size_uc () const |
|
constexpr size_t | bind_size_c () const |
|
constexpr size_t | bind_size_v () const |
|
template<class CurrPtrPack , class PtrPack > |
void | bind (const CurrPtrPack &curr_pack, const PtrPack &pack) |
|
◆ constraint_t
template<class ValueType , class ShapeType , class ExprType >
◆ shape_t
template<class ValueType , class ShapeType , class ExprType >
◆ uc_view_t
template<class ValueType , class ShapeType , class ExprType >
◆ value_t
template<class ValueType , class ShapeType , class ExprType >
◆ var_t
template<class ValueType , class ShapeType , class ExprType >
◆ view_t
template<class ValueType , class ShapeType , class ExprType >
◆ Transformer()
template<class ValueType , class ShapeType , class ExprType >
Constructs a Transformer object. It represents a lower-bounded scalar.
- Parameters
-
c | constraint object must be provided since it cannot be default-constructed |
◆ activate_refcnt()
template<class ValueType , class ShapeType , class ExprType >
Activates reference count for the constraint expression. Since the constraint expression will only be evaluated once per model evaluation, we chose to only activate constraint when the current reference count is 1, i.e. only the first reference to a parameter gets to activate the constraint.
◆ bind()
template<class ValueType , class ShapeType , class ExprType >
template<class CurrPtrPack , class PtrPack >
Binds unconstrained viewer to unconstrained region, constrained viewer to constrained region, and internal visit count to visit count region.
◆ bind_size_c()
template<class ValueType , class ShapeType , class ExprType >
◆ bind_size_uc()
template<class ValueType , class ShapeType , class ExprType >
Returns the number of elements required to bind and compute unconstrained, constrained parameters and visit count.
◆ bind_size_v()
template<class ValueType , class ShapeType , class ExprType >
◆ cols_c()
template<class ValueType , class ShapeType , class ExprType >
◆ cols_uc()
template<class ValueType , class ShapeType , class ExprType >
◆ get_c() [1/2]
template<class ValueType , class ShapeType , class ExprType >
◆ get_c() [2/2]
template<class ValueType , class ShapeType , class ExprType >
◆ init()
template<class ValueType , class ShapeType , class ExprType >
template<class GenType , class ContDist >
Initializes unconstrained values such that unconstrained value is randomly generated determined by dist.
◆ inv_transform()
template<class ValueType , class ShapeType , class ExprType >
Inverse transforms from unconstrained parameters to constrained parameters. Only the first visitor of the visit count will invoke the actual transformation. The reference count is used to reset the visit count if the visit count has reached refcnt.
◆ inv_transform_ad()
template<class ValueType , class ShapeType , class ExprType >
template<class CurrPtrPack , class PtrPack >
Creates an AD expression representing the inverse transform. User must ensure that this gets called exactly refcnt number of times.
- Parameters
-
uc_val | beginning of unconstrained parameter values |
uc_adj | beginning of unconstrained parameter adjoints |
c_val | beginning of constrained value region. |
v_val | beginning of visit count |
refcnt | total reference count to determine when to loop visit count back to 0 |
◆ logj_inv_transform_ad()
template<class ValueType , class ShapeType , class ExprType >
template<class CurrPtrPack , class PtrPack >
Creates an AD expression representing the log-jacobian of inverse transform. Log-jacobian of inverse transform is identical to the unconstrained variable itself.
◆ rows_c()
template<class ValueType , class ShapeType , class ExprType >
◆ rows_uc()
template<class ValueType , class ShapeType , class ExprType >
◆ size_c()
template<class ValueType , class ShapeType , class ExprType >
◆ size_uc()
template<class ValueType , class ShapeType , class ExprType >
Returns the dimension information for the viewers of unconstrained and constrained parameters.
◆ transform()
template<class ValueType , class ShapeType , class ExprType >
This method is currently only used by Param::inv_eval. It should not handle any reference counting. It also assumes all other variables that are referenced in the constraint expression have already been evaluated.
The documentation for this struct was generated from the following file:
- include/autoppl/expression/constraint/lower.hpp