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

forward declaration for Linf 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::Linf< Vec >

forward declaration for Linf norm

compute the max norm of a vector

||X||_infinity or max value of X (abs)

Parameters
vectorX with N elements of type T
Returns
scalar

Definition at line 74 of file vector_norms.hpp.

Member Typedef Documentation

◆ codomain_type

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

Definition at line 77 of file vector_norms.hpp.

◆ domain_type

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

Definition at line 75 of file vector_norms.hpp.

◆ scalar_type

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

Definition at line 76 of file vector_norms.hpp.

Member Function Documentation

◆ operator()()

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

Definition at line 79 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: