24template <
typename Arr>
class Ell :
public EllBase<Arr, false> {
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 (classic strategy)
Definition ell.hpp:24
static auto from_alpha(const double alpha, Arr x) -> Ell
Named constructor: initial ellipsoid from a scaling factor.
Definition ell.hpp:47
std::valarray< double > Vec
Definition ell.hpp:28
~Ell()=default
Destructor.
Ell(Ell &&E) noexcept=default
Move constructor.
static auto from_radii(const Vec &val, Arr x) -> Ell
Named constructor: initial ellipsoid from per-axis radii.
Definition ell.hpp:38
auto operator=(const Ell &E) -> Ell &=delete
Deleted copy assignment operator (non-copyable).
auto operator=(Ell &&E) noexcept -> Ell &=default
Move assignment operator.
Ell(const double alpha, Arr x)
Construct from a scaling factor and a center point (moved in).
Definition ell.hpp:53
Ell(const Vec &val, Arr x)
Construct from a diagonal vector and a center point (moved in).
Definition ell.hpp:50
Ell(const Ell &E)=default
Explicit copy constructor.
auto copy() const -> Ell
Explicitly copy the Ell object.
Definition ell.hpp:75
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)