pub struct ColumnSums<F, const N_TABLES: usize> { /* private fields */ }Expand description
One field element per column of the matrix, summed across row groups.
Reading the groups end to end walks the columns in order.
Implementations§
Source§impl<F: BinaryField, const N_TABLES: usize> ColumnSums<F, N_TABLES>
impl<F: BinaryField, const N_TABLES: usize> ColumnSums<F, N_TABLES>
Sourcepub fn add_scaled_to(&self, weight: F, out: &mut [F])
pub fn add_scaled_to(&self, weight: F, out: &mut [F])
Adds every column’s sum into out, scaled by one weight.
A caller folding a matrix in chunks scales each chunk by its own weight on the way out.
§Preconditions
outmust hold one element per column.
Trait Implementations§
Source§impl<F: Clone, const N_TABLES: usize> Clone for ColumnSums<F, N_TABLES>
impl<F: Clone, const N_TABLES: usize> Clone for ColumnSums<F, N_TABLES>
Source§fn clone(&self) -> ColumnSums<F, N_TABLES>
fn clone(&self) -> ColumnSums<F, N_TABLES>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: BinaryField, const N_TABLES: usize> Default for ColumnSums<F, N_TABLES>
impl<F: BinaryField, const N_TABLES: usize> Default for ColumnSums<F, N_TABLES>
impl<F: Eq, const N_TABLES: usize> Eq for ColumnSums<F, N_TABLES>
Source§impl<F: PartialEq, const N_TABLES: usize> PartialEq for ColumnSums<F, N_TABLES>
impl<F: PartialEq, const N_TABLES: usize> PartialEq for ColumnSums<F, N_TABLES>
Source§fn eq(&self, other: &ColumnSums<F, N_TABLES>) -> bool
fn eq(&self, other: &ColumnSums<F, N_TABLES>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<F: PartialEq, const N_TABLES: usize> StructuralPartialEq for ColumnSums<F, N_TABLES>
Auto Trait Implementations§
impl<F, const N_TABLES: usize> Freeze for ColumnSums<F, N_TABLES>where
F: Freeze,
impl<F, const N_TABLES: usize> RefUnwindSafe for ColumnSums<F, N_TABLES>where
F: RefUnwindSafe,
impl<F, const N_TABLES: usize> Send for ColumnSums<F, N_TABLES>where
F: Send,
impl<F, const N_TABLES: usize> Sync for ColumnSums<F, N_TABLES>where
F: Sync,
impl<F, const N_TABLES: usize> Unpin for ColumnSums<F, N_TABLES>where
F: Unpin,
impl<F, const N_TABLES: usize> UnsafeUnpin for ColumnSums<F, N_TABLES>where
F: UnsafeUnpin,
impl<F, const N_TABLES: usize> UnwindSafe for ColumnSums<F, N_TABLES>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more