akreon-linalg
Fixed-size linear algebra and numerical methods in C++26.
Loading...
Searching...
No Matches
linalg::L1< Vec > Struct Template Reference

forward declaration for L1 norm More...

#include <vector_norms.hpp>

Public Types

using domain_type = remove_cvref_t< Vec >
 
using scalar_type = vector_element_t< domain_type >
 
using codomain_type = real_type_t< scalar_type >
 

Public Member Functions

constexpr codomain_type operator() (const domain_type &x) const
 

Detailed Description

template<FieldVector Vec>
struct linalg::L1< Vec >

forward declaration for L1 norm

compute the L1 norm of a vector

|| X ||_1 or sum_i^N(|x_i|) for all i

Parameters
vectorX with N elements of type T
Returns
scalar

Definition at line 52 of file vector_norms.hpp.

Member Typedef Documentation

◆ codomain_type

template<FieldVector Vec>
using linalg::L1< Vec >::codomain_type = real_type_t<scalar_type>

Definition at line 55 of file vector_norms.hpp.

◆ domain_type

template<FieldVector Vec>
using linalg::L1< Vec >::domain_type = remove_cvref_t<Vec>

Definition at line 53 of file vector_norms.hpp.

◆ scalar_type

template<FieldVector Vec>
using linalg::L1< Vec >::scalar_type = vector_element_t<domain_type>

Definition at line 54 of file vector_norms.hpp.

Member Function Documentation

◆ operator()()

template<FieldVector Vec>
constexpr codomain_type linalg::L1< Vec >::operator() ( const domain_type &  x) const
inlineconstexpr

Definition at line 57 of file vector_norms.hpp.

References linalg::constexpr_abs(), and linalg::mat_rows_v.


The documentation for this struct was generated from the following files: