pub struct AdditiveRsEncoder<F, Ntt = PolyBasisNtt> { /* private fields */ }Expand description
Reed–Solomon over the additive NTT domain.
The message holds the low-index novel-basis coefficients of each column, so the codeword is
the evaluation of f̂(Ŵ_0(x), …, Ŵ_{k−1}(x)) on S_{k + log_inv_rate}.
The alphabet is BinaryField128, where PolyBasisNtt is the faster transform and falls
back to LchNtt on a target without a carryless multiply, so it is the default.
F is phantom: Encoder is only implemented below for F = BinaryField128, and stays
that way as long as the alphabet is fixed (D9), so the parameter carries no other instance.
Trait Implementations§
Source§impl<F: Clone, Ntt: Clone> Clone for AdditiveRsEncoder<F, Ntt>
impl<F: Clone, Ntt: Clone> Clone for AdditiveRsEncoder<F, Ntt>
Source§fn clone(&self) -> AdditiveRsEncoder<F, Ntt>
fn clone(&self) -> AdditiveRsEncoder<F, Ntt>
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: Default, Ntt: Default> Default for AdditiveRsEncoder<F, Ntt>
impl<F: Default, Ntt: Default> Default for AdditiveRsEncoder<F, Ntt>
Source§fn default() -> AdditiveRsEncoder<F, Ntt>
fn default() -> AdditiveRsEncoder<F, Ntt>
Returns the “default value” for a type. Read more
Source§impl<Ntt: AdditiveNtt<BinaryField128> + Sync> Encoder<BinaryField128> for AdditiveRsEncoder<BinaryField128, Ntt>
The alphabet is fixed at BinaryField128 (D9), as Encoder requires of every impl outside
p3-commit’s blanket one.
impl<Ntt: AdditiveNtt<BinaryField128> + Sync> Encoder<BinaryField128> for AdditiveRsEncoder<BinaryField128, Ntt>
The alphabet is fixed at BinaryField128 (D9), as Encoder requires of every impl outside
p3-commit’s blanket one.
Source§fn encode_batch(
&self,
message: RowMajorMatrix<BinaryField128>,
log_inv_rate: usize,
) -> RowMajorMatrix<BinaryField128>
fn encode_batch( &self, message: RowMajorMatrix<BinaryField128>, log_inv_rate: usize, ) -> RowMajorMatrix<BinaryField128>
Encodes each column of
message into a codeword. Read moreAuto Trait Implementations§
impl<F, Ntt> Freeze for AdditiveRsEncoder<F, Ntt>
impl<F, Ntt> RefUnwindSafe for AdditiveRsEncoder<F, Ntt>
impl<F, Ntt> Send for AdditiveRsEncoder<F, Ntt>
impl<F, Ntt> Sync for AdditiveRsEncoder<F, Ntt>
impl<F, Ntt> Unpin for AdditiveRsEncoder<F, Ntt>
impl<F, Ntt> UnsafeUnpin for AdditiveRsEncoder<F, Ntt>
impl<F, Ntt> UnwindSafe for AdditiveRsEncoder<F, Ntt>
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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