batmat 0.0.22
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_simd operator() (result_simd a, result_simd b) const
 Combine two accumulators.
result operator() (result_simd accum) const
 Reduce the SIMD accumulator to a scalar result.

Static Public Member Functions

static result_simd zero_simd ()

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/3]

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 52 of file norms.hpp.

◆ operator()() [2/3]

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

Combine two accumulators.

Definition at line 60 of file norms.hpp.

◆ operator()() [3/3]

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 66 of file norms.hpp.

◆ zero_simd()

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

Definition at line 72 of file norms.hpp.


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