Go to the documentation of this file.
5 #ifndef __pinocchio_algorithm_proximal_hpp__
6 #define __pinocchio_algorithm_proximal_hpp__
23 template<
typename _Scalar>
24 struct ProximalSettingsTpl
53 check_expression_if_real<Scalar>(accuracy >= 0.) &&
"Accuracy must be positive.");
55 check_expression_if_real<Scalar>(
mu >= 0.) &&
"mu must be positive");
56 assert(
max_iter >= 1 &&
"max_iter must be greater or equal to 1");
77 &&
"Absolute accuracy must be positive.");
80 &&
"Relative accuracy must be positive.");
82 check_expression_if_real<Scalar>(
mu >= 0.) &&
"mu must be positive");
83 assert(
max_iter >= 1 &&
"max_iter must be greater or equal to 1");
115 #if PINOCCHIO_ENABLE_TEMPLATE_INSTANTIATION
116 #include "pinocchio/algorithm/proximal.txx"
117 #endif // PINOCCHIO_ENABLE_TEMPLATE_INSTANTIATION
119 #endif // ifndef __pinocchio_algorithm_proximal_hpp__
ProximalSettingsTpl(const Scalar absolute_accuracy, const Scalar relative_accuracy, const Scalar mu, const int max_iter)
Constructor with all the setting parameters.
#define PINOCCHIO_CHECK_INPUT_ARGUMENT(...)
Macro to check an assert-like condition and throw a std::invalid_argument exception (with a message) ...
Scalar mu
Regularization parameter of the proximal algorithm.
Scalar absolute_accuracy
Absolute proximal accuracy.
ProximalSettingsTpl(const Scalar accuracy, const Scalar mu, const int max_iter)
Constructor with all the setting parameters.
Scalar relative_accuracy
Relative proximal accuracy between two iterates.
Scalar absolute_residual
Absolute residual.
int iter
Total number of iterations of the algorithm when it has converged or reached the maximal number of al...
Scalar relative_residual
Relatice residual between two iterates.
int max_iter
Maximal number of iterations.
ProximalSettingsTpl()
Default constructor.
Main pinocchio namespace.
pinocchio
Author(s):
autogenerated on Fri Nov 1 2024 02:41:47