![]() |
SOPT
Sparse OPTimisation
|
Minimum set of functions and type aliases needed by reweighting. More...
Classes | |
struct | DiagnosticAndResult |
Public Types | |
using | Scalar = t_real |
using | t_Vector = Vector< Scalar > |
using | t_IsConverged = ConvergenceFunction< Scalar > |
Public Member Functions | |
DiagnosticAndResult | operator() (t_Vector const &x) const |
DiagnosticAndResult | operator() (DiagnosticAndResult const &warm) const |
Static Public Member Functions | |
static t_Vector | reweightee (DummyAlgorithm const &, t_Vector const &x) |
Applies Ψ^T * x. More... | |
static void | set_weights (DummyAlgorithm &, t_Vector const &weights) |
sets the weights More... | |
Static Public Attributes | |
static t_Vector | weights |
static int | called_with_x = 0 |
static int | called_with_warm = 0 |
static int | called_reweightee = 0 |
static int | called_weights = 0 |
Minimum set of functions and type aliases needed by reweighting.
The attributes are public and static so we can access them during the tests.
Definition at line 13 of file reweighted.cc.
using DummyAlgorithm::Scalar = t_real |
Definition at line 14 of file reweighted.cc.
Definition at line 16 of file reweighted.cc.
using DummyAlgorithm::t_Vector = Vector<Scalar> |
Definition at line 15 of file reweighted.cc.
|
inline |
Definition at line 28 of file reweighted.cc.
References DummyAlgorithm::DiagnosticAndResult::x.
|
inline |
Definition at line 23 of file reweighted.cc.
|
inlinestatic |
Applies Ψ^T * x.
Definition at line 35 of file reweighted.cc.
References called_reweightee.
Referenced by TEST_CASE().
|
inlinestatic |
sets the weights
Definition at line 40 of file reweighted.cc.
References called_weights, and weights.
Referenced by TEST_CASE().
|
static |
Definition at line 48 of file reweighted.cc.
Referenced by reweightee(), and TEST_CASE().
|
static |
Definition at line 49 of file reweighted.cc.
Referenced by set_weights(), and TEST_CASE().
|
static |
Definition at line 47 of file reweighted.cc.
Referenced by TEST_CASE().
|
static |
Definition at line 46 of file reweighted.cc.
Referenced by TEST_CASE().
|
static |
Definition at line 45 of file reweighted.cc.
Referenced by set_weights(), and TEST_CASE().