SOPT
Sparse OPTimisation
Public Member Functions | Public Attributes | List of all members
sopt::algorithm::PrimalDual< SCALAR >::Diagnostic Struct Reference

Values indicating how the algorithm ran. More...

#include <primal_dual.h>

+ Inheritance diagram for sopt::algorithm::PrimalDual< SCALAR >::Diagnostic:

Public Member Functions

 Diagnostic (t_uint niters=0u, bool good=false)
 
 Diagnostic (t_uint niters, bool good, t_Vector &&residual)
 

Public Attributes

t_uint niters
 Number of iterations. More...
 
bool good
 Wether convergence was achieved. More...
 
t_Vector residual
 the residual from the last iteration More...
 

Detailed Description

template<typename SCALAR>
struct sopt::algorithm::PrimalDual< SCALAR >::Diagnostic

Values indicating how the algorithm ran.

Definition at line 46 of file primal_dual.h.

Constructor & Destructor Documentation

◆ Diagnostic() [1/2]

template<typename SCALAR >
sopt::algorithm::PrimalDual< SCALAR >::Diagnostic::Diagnostic ( t_uint  niters = 0u,
bool  good = false 
)
inline

Definition at line 54 of file primal_dual.h.

55  : niters(niters), good(good), residual(t_Vector::Zero(0)) {}
t_Vector residual
the residual from the last iteration
Definition: primal_dual.h:52
t_uint niters
Number of iterations.
Definition: primal_dual.h:48
bool good
Wether convergence was achieved.
Definition: primal_dual.h:50

◆ Diagnostic() [2/2]

template<typename SCALAR >
sopt::algorithm::PrimalDual< SCALAR >::Diagnostic::Diagnostic ( t_uint  niters,
bool  good,
t_Vector &&  residual 
)
inline

Definition at line 56 of file primal_dual.h.

57  : niters(niters), good(good), residual(std::move(residual)) {}

Member Data Documentation

◆ good

template<typename SCALAR >
bool sopt::algorithm::PrimalDual< SCALAR >::Diagnostic::good

Wether convergence was achieved.

Definition at line 50 of file primal_dual.h.

◆ niters

template<typename SCALAR >
t_uint sopt::algorithm::PrimalDual< SCALAR >::Diagnostic::niters

Number of iterations.

Definition at line 48 of file primal_dual.h.

◆ residual

template<typename SCALAR >
t_Vector sopt::algorithm::PrimalDual< SCALAR >::Diagnostic::residual

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