rework
This commit is contained in:
32 files changed
+75060
-630
No files matched your search
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
#include "autoopt/derivative.hpp"
|
||||
|
||||
namespace autoopt {
|
||||
@@ -76,7 +74,7 @@ struct log_barrier_optimization_problem
|
||||
auto base_grad = _base_problem.gradient(params);
|
||||
Eigen::VectorX<T> barrier_grad = autoopt::gradient<T>(
|
||||
[this]<typename U>(const Eigen::VectorX<U>& p) {
|
||||
return barrier_term<U>(p);
|
||||
return this->barrier_term<U>(p);
|
||||
},
|
||||
params);
|
||||
Eigen::VectorX<T> total_grad(params.size());
|
||||
@@ -88,7 +86,7 @@ struct log_barrier_optimization_problem
|
||||
auto base_hess = _base_problem.hessian(params);
|
||||
Eigen::MatrixX<T> barrier_hess = autoopt::hessian<T>(
|
||||
[this]<typename U>(const Eigen::VectorX<U>& p) {
|
||||
return barrier_term<U>(p);
|
||||
return this->barrier_term<U>(p);
|
||||
},
|
||||
params);
|
||||
Eigen::MatrixX<T> total_hess(params.size(), params.size());
|
||||
|
||||
Reference in new issue
Block a user