batmat 0.0.21
Batched linear algebra routines
Loading...
Searching...
No Matches
batmat::linalg::norms< T, simd > Struct Template Reference

#include <batmat/linalg/norms.hpp>

Detailed Description

template<class T, class simd>
struct batmat::linalg::norms< T, simd >

Utilities for computing vector norms.

Template Parameters
TScalar type.
simdSIMD type. Void for scalar-only.

Definition at line 26 of file norms.hpp.

Classes

struct  result_simd
 Lane-wise accumulators. More...

Public Types

using result = typename norms<T>::result
 Accumulator.

Public Member Functions

result_simd operator() (result_simd accum, simd t) const
 Update the accumulator with a new value.
result operator() (result_simd accum) const
 Reduce the SIMD accumulator to a scalar result.

Static Public Member Functions

static result_simd zero_simd ()

Class Documentation

◆ batmat::linalg::norms::result_simd

struct batmat::linalg::norms::result_simd
Class Members
simd amax
simd asum
simd sumsq

Member Typedef Documentation

◆ result

template<class T, class simd>
using batmat::linalg::norms< T, simd >::result = typename norms<T>::result

Accumulator.

Definition at line 28 of file norms.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<class T, class simd>
result_simd batmat::linalg::norms< T, simd >::operator() ( result_simd accum,
simd t ) const
inline

Update the accumulator with a new value.

Definition at line 39 of file norms.hpp.

◆ operator()() [2/2]

template<class T, class simd>
result batmat::linalg::norms< T, simd >::operator() ( result_simd accum) const
inline

Reduce the SIMD accumulator to a scalar result.

Definition at line 47 of file norms.hpp.

◆ zero_simd()

template<class T, class simd>
result_simd batmat::linalg::norms< T, simd >::zero_simd ( )
inlinestatic

Definition at line 53 of file norms.hpp.


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