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

Memory layout policy for batch affine operations with parallel 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
 

Static Public Attributes

static constexpr bool ENABLE_PREFETCH = false
 

Detailed Description

Memory layout policy for batch affine operations with parallel arrays.

Layout: (lhs[i], rhs[i]) -> rhs[i] with sequential output (no prefetch needed)

Definition at line 177 of file element.hpp.

Member Function Documentation

◆ lhs_index()

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

Definition at line 180 of file element.hpp.

◆ output_index()

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

Definition at line 185 of file element.hpp.

◆ rhs_index()

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

Definition at line 182 of file element.hpp.

Member Data Documentation

◆ ENABLE_PREFETCH

constexpr bool bb::group_elements::ParallelArrayPolicy::ENABLE_PREFETCH = false
staticconstexpr

Definition at line 178 of file element.hpp.


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