alpaqa 0.0.1
Nonconvex constrained optimization
Namespaces | Typedefs | Functions | Variables
vec.hpp File Reference
#include <Eigen/Core>
+ Include dependency graph for vec.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  alpaqa
 
namespace  alpaqa::vec_util
 

Typedefs

using real_t = double
 Default floating point type. More...
 
using realvec = Eigen::Matrix< real_t, Eigen::Dynamic, 1 >
 Default type for floating point vectors. More...
 
using realmat = Eigen::Matrix< real_t, Eigen::Dynamic, Eigen::Dynamic >
 Default type for floating point matrices. More...
 
using vec = realvec
 Default type for vectors. More...
 
using rvec = Eigen::Ref< vec >
 Default type for mutable references to vectors. More...
 
using crvec = Eigen::Ref< const vec >
 Default type for immutable references to vectors. More...
 
using mat = realmat
 Default type for matrices. More...
 
using rmat = Eigen::Ref< mat >
 Default type for mutable references to matrices. More...
 
using crmat = Eigen::Ref< const mat >
 Default type for immutable references to matrices. More...
 

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...
 

Variables

constexpr real_t inf = std::numeric_limits<real_t>::infinity()
 \( \infty \) More...
 
constexpr real_t NaN = std::numeric_limits<real_t>::quiet_NaN()
 Not a number. More...