39template <
typename Derived, base::concepts::dense_matrix Data>
47 typename Eigen::NumTraits<typename data_type::Scalar>::Real;
57 return derived().solve(param, solution);
77 return derived().param_search_region();
94 [[nodiscard]]
auto derived() noexcept -> Derived& {
95 return *
static_cast<Derived*
>(
this);
103 [[nodiscard]]
auto derived() const noexcept -> const Derived& {
104 return *
static_cast<const Derived*
>(
this);
Class of tags of logs without memory management.
Class to incorporate logging in algorithms.
logging_mixin(log_tag_view tag)
Constructor.
Base class of solvers for regularization.
regularized_solver_base(logging::log_tag_view tag)
Constructor.
auto derived() noexcept -> Derived &
Access derived object.
auto data_size() const -> index_type
Get the size of data.
auto derived() const noexcept -> const Derived &
Access derived object.
void solve(const scalar_type ¶m, data_type &solution)
Solve for a regularization parameter.
typename Eigen::NumTraits< typename data_type::Scalar >::Real scalar_type
Type of scalars.
Data data_type
Type of data.
auto param_search_region() const -> std::pair< scalar_type, scalar_type >
Get the default region to search for the optimal regularization parameter.
Definition of dense_matrix concept.
Definition of index_type type.
Definition of log_tag_view class.
Definition of logging_mixin class.
std::ptrdiff_t index_type
Type of indices in this library.
Namespace of regularization algorithms.