|
cyqlone
develop
Fast, parallel and vectorized solver for linear systems with optimal control structure.
|
#include <cyqlone/reduce.hpp>
Utilities for computing vector norms.
| T | Scalar type. |
| simd | SIMD type. Void for scalar-only. |
Definition at line 26 of file reduce.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 () |
| using cyqlone::norms< T, simd >::result = typename norms<T>::result |
Accumulator.
Definition at line 28 of file reduce.hpp.
|
inline |
Update the accumulator with a new value.
Definition at line 39 of file reduce.hpp.
|
inline |
Reduce the SIMD accumulator to a scalar result.
Definition at line 47 of file reduce.hpp.
|
inlinestatic |
Definition at line 55 of file reduce.hpp.