pub struct GenericPoseidon1LinearLayersMonty31<FP, PRBP> { /* private fields */ }Expand description
Generic Poseidon1 linear layers for MontyField31.
Trait Implementations§
Source§impl<FP, PRBP, F, const WIDTH: usize> GenericPoseidon1LinearLayers<F, WIDTH> for GenericPoseidon1LinearLayersMonty31<FP, PRBP>
impl<FP, PRBP, F, const WIDTH: usize> GenericPoseidon1LinearLayers<F, WIDTH> for GenericPoseidon1LinearLayersMonty31<FP, PRBP>
Source§fn mds_multiply<R>(state: &mut [R; WIDTH], mds: &[[F; WIDTH]; WIDTH])where
R: Algebra<F>,
fn mds_multiply<R>(state: &mut [R; WIDTH], mds: &[[F; WIDTH]; WIDTH])where
R: Algebra<F>,
Dense MDS matrix-vector multiplication in O(t^2). Read more
Source§fn mds_permute<R>(state: &mut [R; WIDTH], mds: &impl Permutation<[R; WIDTH]>)where
R: Algebra<F>,
fn mds_permute<R>(state: &mut [R; WIDTH], mds: &impl Permutation<[R; WIDTH]>)where
R: Algebra<F>,
MDS multiplication dispatched via a permutation trait. Read more
Source§fn cheap_matmul<R>(
state: &mut [R; WIDTH],
first_row: &[F; WIDTH],
v: &[F; WIDTH],
)where
R: Algebra<F>,
fn cheap_matmul<R>(
state: &mut [R; WIDTH],
first_row: &[F; WIDTH],
v: &[F; WIDTH],
)where
R: Algebra<F>,
Sparse matrix-vector multiplication for partial rounds in O(t).
Auto Trait Implementations§
impl<FP, PRBP> Freeze for GenericPoseidon1LinearLayersMonty31<FP, PRBP>
impl<FP, PRBP> RefUnwindSafe for GenericPoseidon1LinearLayersMonty31<FP, PRBP>where
FP: RefUnwindSafe,
PRBP: RefUnwindSafe,
impl<FP, PRBP> Send for GenericPoseidon1LinearLayersMonty31<FP, PRBP>
impl<FP, PRBP> Sync for GenericPoseidon1LinearLayersMonty31<FP, PRBP>
impl<FP, PRBP> Unpin for GenericPoseidon1LinearLayersMonty31<FP, PRBP>
impl<FP, PRBP> UnsafeUnpin for GenericPoseidon1LinearLayersMonty31<FP, PRBP>
impl<FP, PRBP> UnwindSafe for GenericPoseidon1LinearLayersMonty31<FP, PRBP>where
FP: UnwindSafe,
PRBP: 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> 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