|
PANOC-ALM
quadratic-penalty
Nonconvex constrained optimization
|
Go to the documentation of this file.
10 using realvec = Eigen::Matrix<real_t, Eigen::Dynamic, 1>;
12 using realmat = Eigen::Matrix<real_t, Eigen::Dynamic, Eigen::Dynamic>;
16 using rvec = Eigen::Ref<vec>;
18 using crvec = Eigen::Ref<const vec>;
22 using rmat = Eigen::Ref<mat>;
24 using crmat = Eigen::Ref<const mat>;
26 constexpr
real_t inf = std::numeric_limits<real_t>::infinity();
28 constexpr
real_t NaN = std::numeric_limits<real_t>::quiet_NaN();
34 template <
class V,
class M>
36 return v.dot(
Σ.asDiagonal() *
v);
43 return v.template lpNorm<Eigen::Infinity>();
Eigen::Ref< vec > rvec
Default type for mutable references to vectors.
constexpr real_t NaN
Not a number.
realvec vec
Default type for vectors.
Eigen::Ref< mat > rmat
Default type for mutable references to matrices.
Eigen::Matrix< real_t, Eigen::Dynamic, Eigen::Dynamic > realmat
Default type for floating point matrices.
Eigen::Ref< const mat > crmat
Default type for immutable references to matrices.
Eigen::Ref< const vec > crvec
Default type for immutable references to vectors.
Eigen::Matrix< real_t, Eigen::Dynamic, 1 > realvec
Default type for floating point vectors.
auto norm_squared_weighted(V &&v, M &&Σ)
Get the Σ norm squared of a given vector, with Σ a diagonal matrix.
realmat mat
Default type for matrices.
real_t norm_inf(const Vec &v)
Get the maximum or infinity-norm of the given vector.
double real_t
Default floating point type.