ell1d class

Ellipsoid Method for special 1D case.

Constructors, destructors, conversion operators

ell1d(const double l, const double u) noexcept
Construct a new ell1d object.
ell1d(const ell1d& E) defaulted explicit
Construct a new ell1d object.

Public functions

auto xc() const noexcept -> double -> auto
Get the center of the ellipsoid.
auto set_xc(const double xc) noexcept -> void -> auto
Set the xc object.
auto tsq() const -> double -> constexpr auto
Get the squared radius of the ellipsoid.
auto update(const std::pair<double, double>& cut) noexcept -> CutStatus -> auto
Update the 1D ellipsoid using a deep cut.
auto update_central_cut(const std::pair<double, double>& cut) noexcept -> CutStatus -> auto
Update the 1D ellipsoid using a central cut.

Function documentation

ell1d::ell1d(const double l, const double u) noexcept

Construct a new ell1d object.

Parameters
in
in

ell1d::ell1d(const ell1d& E) explicit defaulted

Construct a new ell1d object.

Parameters
in

auto ell1d::xc() const noexcept -> double

Get the center of the ellipsoid.

Returns double The center of the ellipsoid.

auto ell1d::set_xc(const double xc) noexcept -> void

Set the xc object.

Parameters
xc in

constexpr auto ell1d::tsq() const -> double

Get the squared radius of the ellipsoid.

Returns double The squared radius.

auto ell1d::update(const std::pair<double, double>& cut) noexcept -> CutStatus

Update the 1D ellipsoid using a deep cut.

Parameters
cut in A pair containing (gradient, beta) representing the cut
Returns CutStatus The status of the cut operation

auto ell1d::update_central_cut(const std::pair<double, double>& cut) noexcept -> CutStatus

Update the 1D ellipsoid using a central cut.

Parameters
cut in A pair containing (gradient, beta) representing the cut
Returns CutStatus The status of the cut operation