alpaqa 1.0.0a13
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
box.hpp File Reference
#include <alpaqa/config/config.hpp>
#include <alpaqa/util/float.hpp>
+ Include dependency graph for box.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Box< Conf >
 

Namespaces

namespace  alpaqa
 
namespace  alpaqa::sets
 

Functions

template<Config Conf>
auto project (const auto &v, const Box< Conf > &box)
 Project a vector onto a box.
 
template<Config Conf>
auto projecting_difference (const auto &v, const Box< Conf > &box)
 Get the difference between the given vector and its projection.
 
template<Config Conf>
auto dist_squared (const auto &v, const Box< Conf > &box)
 Get the distance squared between the given vector and its projection.
 
template<Config Conf>
auto dist_squared (const auto &v, const Box< Conf > &box, const auto &Σ) -> real_t< Conf >
 Get the distance squared between the given vector and its projection in the Σ norm.