49 coeff_.resize(data_size, solution_size);
52 static constexpr double factor = 100.0;
53 const double sol_rate =
54 static_cast<double>(j) /
static_cast<double>(solution_size);
55 const double data_rate =
56 static_cast<double>(i) /
static_cast<double>(data_size);
57 const double diff = sol_rate - data_rate;
58 coeff_(i, j) = std::exp(-factor * diff * diff);
64 static constexpr double factor = 10.0;
65 const double sol_rate =
66 static_cast<double>(i) /
static_cast<double>(solution_size);
67 solution_(i) = std::sin(factor * sol_rate);
78 [[nodiscard]]
auto coeff() const -> const
Eigen::MatrixXd& {
Class of problem of blurred sine function.
Eigen::MatrixXd coeff_
Coefficient matrix.
auto coeff() const -> const Eigen::MatrixXd &
Get the coefficient matrix.
Eigen::VectorXd data_
Data.
auto solution() const -> const Eigen::VectorXd &
Get the solution.
Eigen::VectorXd data_type
Type of data vector.
auto data() const -> const Eigen::VectorXd &
Get the data.
Eigen::MatrixXd coeff_type
Type of coefficient matrices.
Eigen::VectorXd solution_
Solution.
blur_sine(num_collect::index_type data_size, num_collect::index_type solution_size)
Constructor.
Definition of index_type type.
Namespace of Eigen library.
std::ptrdiff_t index_type
Type of indices in this library.
Namespace of regularization.