numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Base class of solvers using implicit formulas for regularization. More...
#include <num_collect/regularization/implicit_regularized_solver_base.h>
Public Member Functions | |
void | calculate_data_for (const data_type &solution, data_type &data) const |
Calculate data for a solution. | |
void | change_data (const data_type &data) |
Change data. | |
auto | regularization_term (const data_type &solution) const -> scalar_type |
Calculate the regularization term. | |
auto | residual_norm (const data_type &solution) const -> scalar_type |
Calculate the squared norm of the residual. | |
Public Member Functions inherited from num_collect::regularization::regularized_solver_base< Derived, Data > | |
auto | data_size () const -> index_type |
Get the size of data. | |
auto | param_search_region () const -> std::pair< scalar_type, scalar_type > |
Get the default region to search for the optimal regularization parameter. | |
void | solve (const scalar_type ¶m, data_type &solution) |
Solve for a regularization parameter. | |
Public Member Functions inherited from num_collect::logging::logging_mixin | |
logging_mixin (log_tag_view tag) | |
Constructor. | |
template<typename Child > | |
void | configure_child_algorithm_logger_if_exists (Child &child) |
Configure a logger of a child algorithm if exists. | |
auto | logger () const noexcept -> const num_collect::logging::logger & |
Access to the logger. | |
auto | logger () noexcept -> num_collect::logging::logger & |
Access to the logger. | |
Protected Member Functions | |
implicit_regularized_solver_base (logging::log_tag_view tag) | |
Constructor. | |
auto | derived () const noexcept -> const Derived & |
Access derived object. | |
auto | derived () noexcept -> Derived & |
Access derived object. | |
Protected Member Functions inherited from num_collect::regularization::regularized_solver_base< Derived, Data > | |
regularized_solver_base (logging::log_tag_view tag) | |
Constructor. | |
auto | derived () const noexcept -> const Derived & |
Access derived object. | |
auto | derived () noexcept -> Derived & |
Access derived object. | |
Additional Inherited Members | |
Public Types inherited from num_collect::regularization::regularized_solver_base< Derived, Data > | |
using | data_type = Data |
Type of data. | |
using | scalar_type |
Type of scalars. | |
Base class of solvers using implicit formulas for regularization.
Derived | Type of derived class. |
Data | Type of data. |
Definition at line 35 of file implicit_regularized_solver_base.h.
|
inlineexplicitprotected |
Constructor.
[in] | tag | Log tag. |
Definition at line 86 of file implicit_regularized_solver_base.h.
|
inline |
Calculate data for a solution.
[in] | solution | Solution. |
[out] | data | Data. |
Definition at line 76 of file implicit_regularized_solver_base.h.
|
inline |
Change data.
[in] | data | New data. |
Definition at line 68 of file implicit_regularized_solver_base.h.
|
inlinenodiscardprotectednoexcept |
Access derived object.
Definition at line 105 of file implicit_regularized_solver_base.h.
|
inlinenodiscardprotectednoexcept |
Access derived object.
Definition at line 96 of file implicit_regularized_solver_base.h.
|
inlinenodiscard |
Calculate the regularization term.
[in] | solution | Solution. |
Definition at line 58 of file implicit_regularized_solver_base.h.
|
inlinenodiscard |
Calculate the squared norm of the residual.
[in] | solution | Solution. |
Definition at line 47 of file implicit_regularized_solver_base.h.