提交 27cca8f5 编写于 作者: X xmyqsh 提交者: Jiaming Tao

Planning: refine AddRegularization

上级 efdb41b7
......@@ -34,7 +34,7 @@ PiecewiseLinearKernel::PiecewiseLinearKernel(const uint32_t dimension,
offset_matrix_(Eigen::MatrixXd::Zero(dimension_, 1)) {}
void PiecewiseLinearKernel::AddRegularization(const double param) {
Eigen::MatrixXd identity_matrix = kernel_matrix_ +=
kernel_matrix_ +=
Eigen::MatrixXd::Identity(kernel_matrix_.rows(), kernel_matrix_.cols()) *
param;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册