quala 0.0.1a1
Quasi-Newton and other accelerators
Functions
quala::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 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 52 of file vec.hpp.

◆ norm_inf()

real_t norm_inf ( const Vec &  v)

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

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

Definition at line 59 of file vec.hpp.

◆ norm_1()

real_t norm_1 ( const Vec &  v)

Get the 1-norm of the given vector.

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

Definition at line 66 of file vec.hpp.