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 transform is a type parameter, because the fastest one differs by alphabet. The default is the one the widest tower level uses.
Implementations§
Source§impl<F, Ntt> AdditiveRsEncoder<F, Ntt>
impl<F, Ntt> AdditiveRsEncoder<F, Ntt>
Trait Implementations§
Source§impl<Ntt: AdditiveNtt<BinaryField8> + Sync> Encoder<BinaryField8> for AdditiveRsEncoder<BinaryField8, Ntt>
impl<Ntt: AdditiveNtt<BinaryField8> + Sync> Encoder<BinaryField8> for AdditiveRsEncoder<BinaryField8, Ntt>
Source§fn encode_batch(
&self,
message: RowMajorMatrix<BinaryField8>,
log_inv_rate: usize,
) -> RowMajorMatrix<BinaryField8>
fn encode_batch( &self, message: RowMajorMatrix<BinaryField8>, log_inv_rate: usize, ) -> RowMajorMatrix<BinaryField8>
Encodes each column of
message into a codeword. Read moreSource§fn encode_batch_padded(
&self,
message: RowMajorMatrix<BinaryField8>,
log_inv_rate: usize,
) -> RowMajorMatrix<BinaryField8>
fn encode_batch_padded( &self, message: RowMajorMatrix<BinaryField8>, log_inv_rate: usize, ) -> RowMajorMatrix<BinaryField8>
Encodes a coefficient matrix already padded to its final height. Read more
Source§impl<Ntt: AdditiveNtt<BinaryField16> + Sync> Encoder<BinaryField16> for AdditiveRsEncoder<BinaryField16, Ntt>
impl<Ntt: AdditiveNtt<BinaryField16> + Sync> Encoder<BinaryField16> for AdditiveRsEncoder<BinaryField16, Ntt>
Source§fn encode_batch(
&self,
message: RowMajorMatrix<BinaryField16>,
log_inv_rate: usize,
) -> RowMajorMatrix<BinaryField16>
fn encode_batch( &self, message: RowMajorMatrix<BinaryField16>, log_inv_rate: usize, ) -> RowMajorMatrix<BinaryField16>
Encodes each column of
message into a codeword. Read moreSource§fn encode_batch_padded(
&self,
message: RowMajorMatrix<BinaryField16>,
log_inv_rate: usize,
) -> RowMajorMatrix<BinaryField16>
fn encode_batch_padded( &self, message: RowMajorMatrix<BinaryField16>, log_inv_rate: usize, ) -> RowMajorMatrix<BinaryField16>
Encodes a coefficient matrix already padded to its final height. Read more
Source§impl<Ntt: AdditiveNtt<BinaryField32> + Sync> Encoder<BinaryField32> for AdditiveRsEncoder<BinaryField32, Ntt>
impl<Ntt: AdditiveNtt<BinaryField32> + Sync> Encoder<BinaryField32> for AdditiveRsEncoder<BinaryField32, Ntt>
Source§fn encode_batch(
&self,
message: RowMajorMatrix<BinaryField32>,
log_inv_rate: usize,
) -> RowMajorMatrix<BinaryField32>
fn encode_batch( &self, message: RowMajorMatrix<BinaryField32>, log_inv_rate: usize, ) -> RowMajorMatrix<BinaryField32>
Encodes each column of
message into a codeword. Read moreSource§fn encode_batch_padded(
&self,
message: RowMajorMatrix<BinaryField32>,
log_inv_rate: usize,
) -> RowMajorMatrix<BinaryField32>
fn encode_batch_padded( &self, message: RowMajorMatrix<BinaryField32>, log_inv_rate: usize, ) -> RowMajorMatrix<BinaryField32>
Encodes a coefficient matrix already padded to its final height. Read more
Source§impl<Ntt: AdditiveNtt<BinaryField64> + Sync> Encoder<BinaryField64> for AdditiveRsEncoder<BinaryField64, Ntt>
impl<Ntt: AdditiveNtt<BinaryField64> + Sync> Encoder<BinaryField64> for AdditiveRsEncoder<BinaryField64, Ntt>
Source§fn encode_batch(
&self,
message: RowMajorMatrix<BinaryField64>,
log_inv_rate: usize,
) -> RowMajorMatrix<BinaryField64>
fn encode_batch( &self, message: RowMajorMatrix<BinaryField64>, log_inv_rate: usize, ) -> RowMajorMatrix<BinaryField64>
Encodes each column of
message into a codeword. Read moreSource§fn encode_batch_padded(
&self,
message: RowMajorMatrix<BinaryField64>,
log_inv_rate: usize,
) -> RowMajorMatrix<BinaryField64>
fn encode_batch_padded( &self, message: RowMajorMatrix<BinaryField64>, log_inv_rate: usize, ) -> RowMajorMatrix<BinaryField64>
Encodes a coefficient matrix already padded to its final height. Read more
Source§impl<Ntt: AdditiveNtt<BinaryField128> + Sync> Encoder<BinaryField128> for AdditiveRsEncoder<BinaryField128, Ntt>
impl<Ntt: AdditiveNtt<BinaryField128> + Sync> Encoder<BinaryField128> for AdditiveRsEncoder<BinaryField128, Ntt>
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 moreSource§fn encode_batch_padded(
&self,
message: RowMajorMatrix<BinaryField128>,
log_inv_rate: usize,
) -> RowMajorMatrix<BinaryField128>
fn encode_batch_padded( &self, message: RowMajorMatrix<BinaryField128>, log_inv_rate: usize, ) -> RowMajorMatrix<BinaryField128>
Encodes a coefficient matrix already padded to its final height. Read more
Source§impl<Ntt: AdditiveNtt<Poly64> + Sync> Encoder<Poly64> for AdditiveRsEncoder<Poly64, Ntt>
impl<Ntt: AdditiveNtt<Poly64> + Sync> Encoder<Poly64> for AdditiveRsEncoder<Poly64, Ntt>
Source§fn encode_batch(
&self,
message: RowMajorMatrix<Poly64>,
log_inv_rate: usize,
) -> RowMajorMatrix<Poly64>
fn encode_batch( &self, message: RowMajorMatrix<Poly64>, log_inv_rate: usize, ) -> RowMajorMatrix<Poly64>
Encodes each column of
message into a codeword. Read moreSource§fn encode_batch_padded(
&self,
message: RowMajorMatrix<Poly64>,
log_inv_rate: usize,
) -> RowMajorMatrix<Poly64>
fn encode_batch_padded( &self, message: RowMajorMatrix<Poly64>, log_inv_rate: usize, ) -> RowMajorMatrix<Poly64>
Encodes a coefficient matrix already padded to its final height. Read more
Auto 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