alpaqa 0.0.1
Nonconvex constrained optimization
Functions
alpaqa::vec_util Namespace Reference

Functions

template<class V , class M >
auto norm_squared_weighted (V &&v, M &&Σ)
 Get the Σ norm squared of a given vector, with Σ a diagonal matrix. More...
 
template<class Vec >
real_t norm_inf (const Vec &v)
 Get the maximum or infinity-norm of the given vector. More...
 
template<class Vec >
real_t norm_1 (const Vec &v)
 Get the 1-norm of the given vector. More...
 

Function Documentation

◆ norm_squared_weighted()

auto alpaqa::vec_util::norm_squared_weighted ( V &&  v,
M &&  Σ 
)

Get the Σ norm squared of a given vector, with Σ a diagonal matrix.

Returns
\( \langle v, \Sigma v \rangle \)

Definition at line 35 of file vec.hpp.

◆ norm_inf()

real_t alpaqa::vec_util::norm_inf ( const Vec &  v)

Get the maximum or infinity-norm of the given vector.

Returns
\( \left\|v\right\|_\infty \)

Definition at line 42 of file vec.hpp.

+ Here is the caller graph for this function:

◆ norm_1()

real_t alpaqa::vec_util::norm_1 ( const Vec &  v)

Get the 1-norm of the given vector.

Returns
\( \left\|v\right\|_1 \)

Definition at line 49 of file vec.hpp.

+ Here is the caller graph for this function: