alpaqa 0.0.1
Nonconvex constrained optimization
Classes | Namespaces | Functions
box.hpp File Reference
#include "vec.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
 

Namespaces

namespace  alpaqa
 

Functions

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

Class Documentation

◆ alpaqa::Box

struct alpaqa::Box
+ Collaboration diagram for Box:
Class Members
vec upperbound
vec lowerbound