kyosu v0.1.0
Complex Without Complexes
 
Loading...
Searching...
No Matches

◆ linfnorm

kyosu::linfnorm = eve::functor<linfnorm_t>
inlineconstexpr

Callable object computing the linfnorm operation \( \max_{i = 0}^n |x_i| \).

Header file

#include <kyosu/functions.hpp>

Callable Signatures

namespace kyosu
{
//regular call
template<typename T, typename ... Ts> auto linfnorm(T z,Ts ... zs ) const noexcept //1
Semantic modifyier
template<typename T, typename ... Ts> auto linfnorm[flat](T z,Ts ... zs ) const noexcept //2
}
constexpr auto linfnorm
Callable object computing the linfnorm operation .
Definition: linfnorm.hpp:91
Main KYOSU namespace.
Definition: cinf.hpp:13

Parameters

  • zs...: real or Cayley-dickson values to process.

Return value

  1. Returns \( \max_{i = 0}^n |x_i| \). This is equivalent to a call to lpnorm with p being inf
  2. the flat option computes the infinite norm of the tuple of real and imaginary parts of the inputs, i.e. \( \max_{i = 0}^n \max(|\real(x_i)|, |\imag(x_i)|)\).

External references

Example