NumericAL
A header-only C++20 lexer built on REAL
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
numerical::detail::pairwise_tree< C > Struct Template Reference

pairwise_tree of complex numbers, as NumPy's sums their parts interleaved. More...

#include <tensor.hpp>

Static Public Member Functions

static constexpr std::size_t half (std::size_t count) noexcept
 The first half's length: NumPy's half of the parts (count of them, less their remainder by 8), in complex numbers.
 
static C combine (const C *p, std::size_t width=1)
 The partial sums at p, width apart, added pairwise.
 

Static Public Attributes

static constexpr std::size_t lanes {4}
 The partial sums.
 
static constexpr std::size_t block {64}
 The most values one block sums.
 

Detailed Description

template<split_complex C>
struct numerical::detail::pairwise_tree< C >

pairwise_tree of complex numbers, as NumPy's sums their parts interleaved.

Definition at line 1006 of file tensor.hpp.

Member Function Documentation

◆ combine()

template<split_complex C>
static C numerical::detail::pairwise_tree< C >::combine ( const C *  p,
std::size_t  width = 1 
)
inlinestatic

The partial sums at p, width apart, added pairwise.

Definition at line 1018 of file tensor.hpp.

◆ half()

template<split_complex C>
static constexpr std::size_t numerical::detail::pairwise_tree< C >::half ( std::size_t  count)
inlinestaticconstexprnoexcept

The first half's length: NumPy's half of the parts (count of them, less their remainder by 8), in complex numbers.

Definition at line 1012 of file tensor.hpp.

Member Data Documentation

◆ block

template<split_complex C>
constexpr std::size_t numerical::detail::pairwise_tree< C >::block {64}
staticconstexpr

The most values one block sums.

Definition at line 1008 of file tensor.hpp.

◆ lanes

template<split_complex C>
constexpr std::size_t numerical::detail::pairwise_tree< C >::lanes {4}
staticconstexpr

The partial sums.

Definition at line 1007 of file tensor.hpp.


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