|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Defines parameters whose values are lazily computed from other parameters. More...


Go to the source code of this file.
Classes | |
| class | DependentParameter |
| Parameter whose value is computed from other parameters and cached lazily. More... | |
Typedefs | |
| typedef std::function< void(const ParamSrc &, std::shared_ptr< DependentParameter >)> | DepParamUpdateFunc |
| Function signature used to recompute a DependentParameter. | |
Functions | |
| std::shared_ptr< Parameter > & | operator+= (std::shared_ptr< Parameter > &lhs, const std::shared_ptr< Parameter > &rhs) |
| Adds the payload of one shared parameter into another. | |
| std::shared_ptr< Parameter > & | operator* (std::shared_ptr< Parameter > &lhs, const scalar_t &rhs) |
| Scales a shared parameter in place. | |
Defines parameters whose values are lazily computed from other parameters.
This file declares:
A DependentParameter participates in the parameter dependency graph:
This class is the parameter-level counterpart of DependentBlock.
Definition in file DependentParameter.h.
Function signature used to recompute a DependentParameter.
The callback receives:
The callback is expected to modify the dependent parameter in-place (for example with set_expected_silent(), set_std(), set_scale(), etc.).
Definition at line 47 of file DependentParameter.h.
|
inline |
Scales a shared parameter in place.
Current behavior:
rhs is non-zero, applies *lhs *= rhs,rhs is zero, leaves lhs unchanged,lhs is null, behavior is undefined because it is dereferenced.lhs in place and returns it by reference.| lhs | Shared parameter pointer to scale. |
| rhs | Multiplicative factor. |
lhs after scaling. Definition at line 371 of file DependentParameter.h.
|
inline |
Adds the payload of one shared parameter into another.
Behavior:
rhs is null: do nothing,*lhs += *rhs,lhs with a new copied Parameter built from *rhs.This helper is intended for convenient accumulation of parameter values stored as std::shared_ptr<Parameter>.
| lhs | Left-hand side parameter pointer. |
| rhs | Right-hand side parameter pointer. |
lhs after modification/replacement. Definition at line 345 of file DependentParameter.h.