Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::group_elements::InterleavedArrayPolicy Struct Reference

Memory layout policy for batch affine operations with interleaved arrays. More...

#include <element.hpp>

Static Public Member Functions

template<typename AffineElement >
static constexpr size_t lhs_index (size_t i) noexcept
 
template<typename AffineElement >
static constexpr size_t rhs_index (size_t i) noexcept
 
template<typename AffineElement >
static constexpr size_t output_index (size_t i, size_t num_pairs) noexcept
 
template<typename AffineElement , typename Fq >
static void prefetch_iteration (const AffineElement *base_points, const Fq *scratch, size_t i, size_t num_pairs) noexcept
 

Static Public Attributes

static constexpr bool ENABLE_PREFETCH = true
 

Detailed Description

Memory layout policy for batch affine operations with interleaved arrays.

Layout: (points[2i], points[2i+1]) -> points[num_pairs+i] (non-sequential, needs prefetch)

Definition at line 195 of file element.hpp.

Member Function Documentation

◆ lhs_index()

template<typename AffineElement >
static constexpr size_t bb::group_elements::InterleavedArrayPolicy::lhs_index ( size_t  i)
inlinestaticconstexprnoexcept

Definition at line 198 of file element.hpp.

◆ output_index()

template<typename AffineElement >
static constexpr size_t bb::group_elements::InterleavedArrayPolicy::output_index ( size_t  i,
size_t  num_pairs 
)
inlinestaticconstexprnoexcept

Definition at line 202 of file element.hpp.

◆ prefetch_iteration()

template<typename AffineElement , typename Fq >
static void bb::group_elements::InterleavedArrayPolicy::prefetch_iteration ( const AffineElement *  base_points,
const Fq scratch,
size_t  i,
size_t  num_pairs 
)
inlinestaticnoexcept

Definition at line 208 of file element.hpp.

◆ rhs_index()

template<typename AffineElement >
static constexpr size_t bb::group_elements::InterleavedArrayPolicy::rhs_index ( size_t  i)
inlinestaticconstexprnoexcept

Definition at line 200 of file element.hpp.

Member Data Documentation

◆ ENABLE_PREFETCH

constexpr bool bb::group_elements::InterleavedArrayPolicy::ENABLE_PREFETCH = true
staticconstexpr

Definition at line 196 of file element.hpp.


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