28 using Vec = std::valarray<double>;
1D or 2D array backed by std::vector<double> for small optimization problems
Definition arr.hpp:23
Ellipsoid Search Space (shared base)
Definition ell_base.hpp:49
Ellipsoid Search Space (stable strategy)
Definition ell_stable.hpp:24
EllStable(const double alpha, Arr x)
Construct from a scaling factor and a center point (moved in).
Definition ell_stable.hpp:57
auto copy() const -> EllStable
Explicitly copy the EllStable object.
Definition ell_stable.hpp:79
static auto from_alpha(const double alpha, Arr x) -> EllStable
Named constructor: initial ellipsoid from a scaling factor.
Definition ell_stable.hpp:49
std::valarray< double > Vec
Definition ell_stable.hpp:28
static auto from_radii(const Vec &val, Arr x) -> EllStable
Named constructor: initial ellipsoid from per-axis radii.
Definition ell_stable.hpp:38
auto operator=(EllStable &&) noexcept -> EllStable &=default
Move assignment operator.
EllStable(EllStable &&E) noexcept=default
Move constructor.
EllStable(const Vec &val, Arr x)
Construct from a diagonal vector and a center point (moved in).
Definition ell_stable.hpp:54
auto invalid_value() -> T
Return an invalid/sentinel value for type T.
Definition cutting_plane.hpp:27
Shared ellipsoid search space base (compile-time Strategy)