pub type PackedBabyBearNeon = PackedMontyField31Neon<BabyBearParameters>;
Aliased Type§
struct PackedBabyBearNeon(pub [MontyField31<BabyBearParameters>; 4]);
Fields§
§0: [MontyField31<BabyBearParameters>; 4]
Trait Implementations
Source§impl<PMP> Add<MontyField31<PMP>> for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> Add<MontyField31<PMP>> for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§type Output = PackedMontyField31Neon<PMP>
type Output = PackedMontyField31Neon<PMP>
The resulting type after applying the
+
operator.Source§fn add(self, rhs: MontyField31<PMP>) -> PackedMontyField31Neon<PMP>
fn add(self, rhs: MontyField31<PMP>) -> PackedMontyField31Neon<PMP>
Performs the
+
operation. Read moreSource§impl<PMP> Add for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> Add for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§type Output = PackedMontyField31Neon<PMP>
type Output = PackedMontyField31Neon<PMP>
The resulting type after applying the
+
operator.Source§fn add(self, rhs: PackedMontyField31Neon<PMP>) -> PackedMontyField31Neon<PMP>
fn add(self, rhs: PackedMontyField31Neon<PMP>) -> PackedMontyField31Neon<PMP>
Performs the
+
operation. Read moreSource§impl<PMP> AddAssign<MontyField31<PMP>> for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> AddAssign<MontyField31<PMP>> for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§fn add_assign(&mut self, rhs: MontyField31<PMP>)
fn add_assign(&mut self, rhs: MontyField31<PMP>)
Performs the
+=
operation. Read moreSource§impl<PMP> AddAssign for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> AddAssign for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§fn add_assign(&mut self, rhs: PackedMontyField31Neon<PMP>)
fn add_assign(&mut self, rhs: PackedMontyField31Neon<PMP>)
Performs the
+=
operation. Read moreSource§impl<PMP> Clone for PackedMontyField31Neon<PMP>where
PMP: Clone + PackedMontyParameters,
impl<PMP> Clone for PackedMontyField31Neon<PMP>where
PMP: Clone + PackedMontyParameters,
Source§fn clone(&self) -> PackedMontyField31Neon<PMP>
fn clone(&self) -> PackedMontyField31Neon<PMP>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<PMP> Debug for PackedMontyField31Neon<PMP>where
PMP: Debug + PackedMontyParameters,
impl<PMP> Debug for PackedMontyField31Neon<PMP>where
PMP: Debug + PackedMontyParameters,
Source§impl<PMP> Default for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> Default for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§fn default() -> PackedMontyField31Neon<PMP>
fn default() -> PackedMontyField31Neon<PMP>
Returns the “default value” for a type. Read more
Source§impl<FP> Div<MontyField31<FP>> for PackedMontyField31Neon<FP>where
FP: FieldParameters,
impl<FP> Div<MontyField31<FP>> for PackedMontyField31Neon<FP>where
FP: FieldParameters,
Source§type Output = PackedMontyField31Neon<FP>
type Output = PackedMontyField31Neon<FP>
The resulting type after applying the
/
operator.Source§fn div(self, rhs: MontyField31<FP>) -> PackedMontyField31Neon<FP>
fn div(self, rhs: MontyField31<FP>) -> PackedMontyField31Neon<FP>
Performs the
/
operation. Read moreSource§impl<FP> FieldAlgebra for PackedMontyField31Neon<FP>where
FP: FieldParameters,
impl<FP> FieldAlgebra for PackedMontyField31Neon<FP>where
FP: FieldParameters,
Source§const ZERO: PackedMontyField31Neon<FP>
const ZERO: PackedMontyField31Neon<FP>
The additive identity of the algebra. Read more
Source§const ONE: PackedMontyField31Neon<FP>
const ONE: PackedMontyField31Neon<FP>
The multiplicative identity of the Algebra Read more
Source§const TWO: PackedMontyField31Neon<FP>
const TWO: PackedMontyField31Neon<FP>
The element in the algebra given by
ONE + ONE
. Read moreSource§const NEG_ONE: PackedMontyField31Neon<FP>
const NEG_ONE: PackedMontyField31Neon<FP>
The element in the algebra given by
-ONE
. Read moretype F = MontyField31<FP>
Source§fn from_f(
f: <PackedMontyField31Neon<FP> as FieldAlgebra>::F,
) -> PackedMontyField31Neon<FP>
fn from_f( f: <PackedMontyField31Neon<FP> as FieldAlgebra>::F, ) -> PackedMontyField31Neon<FP>
Interpret a field element as a commutative algebra element. Read more
Source§fn from_canonical_u8(n: u8) -> PackedMontyField31Neon<FP>
fn from_canonical_u8(n: u8) -> PackedMontyField31Neon<FP>
Convert from a canonical
u8
. Read moreSource§fn from_canonical_u16(n: u16) -> PackedMontyField31Neon<FP>
fn from_canonical_u16(n: u16) -> PackedMontyField31Neon<FP>
Convert from a canonical
u16
. Read moreSource§fn from_canonical_u32(n: u32) -> PackedMontyField31Neon<FP>
fn from_canonical_u32(n: u32) -> PackedMontyField31Neon<FP>
Convert from a canonical
u32
. Read moreSource§fn from_canonical_u64(n: u64) -> PackedMontyField31Neon<FP>
fn from_canonical_u64(n: u64) -> PackedMontyField31Neon<FP>
Convert from a canonical
u64
. Read moreSource§fn from_canonical_usize(n: usize) -> PackedMontyField31Neon<FP>
fn from_canonical_usize(n: usize) -> PackedMontyField31Neon<FP>
Convert from a canonical
usize
. Read morefn from_wrapped_u32(n: u32) -> PackedMontyField31Neon<FP>
fn from_wrapped_u64(n: u64) -> PackedMontyField31Neon<FP>
Source§fn cube(&self) -> PackedMontyField31Neon<FP>
fn cube(&self) -> PackedMontyField31Neon<FP>
The elementary function
cube(a) = a^3
. Read moreSource§fn zero_vec(len: usize) -> Vec<PackedMontyField31Neon<FP>>
fn zero_vec(len: usize) -> Vec<PackedMontyField31Neon<FP>>
Allocates a vector of zero elements of length
len
. Many operating systems zero pages
before assigning them to a userspace process. In that case, our process should not need to
write zeros, which would be redundant. However, the compiler may not always recognize this. Read moreSource§fn exp_const_u64<const POWER: u64>(&self) -> Self
fn exp_const_u64<const POWER: u64>(&self) -> Self
Exponentiation by a constant power. Read more
Source§fn exp_power_of_2(&self, power_log: usize) -> Self
fn exp_power_of_2(&self, power_log: usize) -> Self
Compute self^{2^power_log} by repeated squaring.
Source§fn mul_2exp_u64(&self, exp: u64) -> Self
fn mul_2exp_u64(&self, exp: u64) -> Self
self * 2^exp
Source§fn powers(&self) -> Powers<Self>
fn powers(&self) -> Powers<Self>
Construct an iterator which returns powers of
self: self^0, self^1, self^2, ...
.Source§fn shifted_powers(&self, start: Self) -> Powers<Self>
fn shifted_powers(&self, start: Self) -> Powers<Self>
Construct an iterator which returns powers of
self
shifted by start: start, start*self^1, start*self^2, ...
.Source§fn powers_packed<P>(&self) -> Powers<P>where
P: PackedField<Scalar = Self>,
fn powers_packed<P>(&self) -> Powers<P>where
P: PackedField<Scalar = Self>,
Source§fn shifted_powers_packed<P>(&self, start: Self) -> Powers<P>where
P: PackedField<Scalar = Self>,
fn shifted_powers_packed<P>(&self, start: Self) -> Powers<P>where
P: PackedField<Scalar = Self>,
Construct an iterator which returns powers of
self
shifted by start
and packed into PackedField
elements. Read moreSource§impl<PMP> From<MontyField31<PMP>> for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> From<MontyField31<PMP>> for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§fn from(value: MontyField31<PMP>) -> PackedMontyField31Neon<PMP>
fn from(value: MontyField31<PMP>) -> PackedMontyField31Neon<PMP>
Converts to this type from the input type.
Source§impl<PMP> Mul<MontyField31<PMP>> for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> Mul<MontyField31<PMP>> for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§type Output = PackedMontyField31Neon<PMP>
type Output = PackedMontyField31Neon<PMP>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: MontyField31<PMP>) -> PackedMontyField31Neon<PMP>
fn mul(self, rhs: MontyField31<PMP>) -> PackedMontyField31Neon<PMP>
Performs the
*
operation. Read moreSource§impl<PMP> Mul for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> Mul for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§type Output = PackedMontyField31Neon<PMP>
type Output = PackedMontyField31Neon<PMP>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: PackedMontyField31Neon<PMP>) -> PackedMontyField31Neon<PMP>
fn mul(self, rhs: PackedMontyField31Neon<PMP>) -> PackedMontyField31Neon<PMP>
Performs the
*
operation. Read moreSource§impl<PMP> MulAssign<MontyField31<PMP>> for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> MulAssign<MontyField31<PMP>> for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§fn mul_assign(&mut self, rhs: MontyField31<PMP>)
fn mul_assign(&mut self, rhs: MontyField31<PMP>)
Performs the
*=
operation. Read moreSource§impl<PMP> MulAssign for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> MulAssign for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§fn mul_assign(&mut self, rhs: PackedMontyField31Neon<PMP>)
fn mul_assign(&mut self, rhs: PackedMontyField31Neon<PMP>)
Performs the
*=
operation. Read moreSource§impl<PMP> Neg for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> Neg for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§type Output = PackedMontyField31Neon<PMP>
type Output = PackedMontyField31Neon<PMP>
The resulting type after applying the
-
operator.Source§fn neg(self) -> PackedMontyField31Neon<PMP>
fn neg(self) -> PackedMontyField31Neon<PMP>
Performs the unary
-
operation. Read moreSource§impl<FP> PackedField for PackedMontyField31Neon<FP>where
FP: FieldParameters,
impl<FP> PackedField for PackedMontyField31Neon<FP>where
FP: FieldParameters,
type Scalar = MontyField31<FP>
Source§impl<FP> PackedFieldPow2 for PackedMontyField31Neon<FP>where
FP: FieldParameters,
impl<FP> PackedFieldPow2 for PackedMontyField31Neon<FP>where
FP: FieldParameters,
Source§fn interleave(
&self,
other: PackedMontyField31Neon<FP>,
block_len: usize,
) -> (PackedMontyField31Neon<FP>, PackedMontyField31Neon<FP>)
fn interleave( &self, other: PackedMontyField31Neon<FP>, block_len: usize, ) -> (PackedMontyField31Neon<FP>, PackedMontyField31Neon<FP>)
Take interpret two vectors as chunks of
block_len
elements. Unpack and interleave those
chunks. This is best seen with an example. If we have: Read moreSource§impl<FP> PackedValue for PackedMontyField31Neon<FP>where
FP: FieldParameters,
impl<FP> PackedValue for PackedMontyField31Neon<FP>where
FP: FieldParameters,
Source§fn from_fn<F>(f: F) -> PackedMontyField31Neon<FP>
fn from_fn<F>(f: F) -> PackedMontyField31Neon<FP>
Similar to core:array::from_fn
.
const WIDTH: usize = 4usize
type Value = MontyField31<FP>
fn from_slice(slice: &[MontyField31<FP>]) -> &PackedMontyField31Neon<FP>
fn from_slice_mut( slice: &mut [MontyField31<FP>], ) -> &mut PackedMontyField31Neon<FP>
fn as_slice(&self) -> &[MontyField31<FP>]
fn as_slice_mut(&mut self) -> &mut [MontyField31<FP>]
fn pack_slice(buf: &[Self::Value]) -> &[Self]
fn pack_slice_with_suffix(buf: &[Self::Value]) -> (&[Self], &[Self::Value])
fn pack_slice_mut(buf: &mut [Self::Value]) -> &mut [Self]
fn pack_maybe_uninit_slice_mut( buf: &mut [MaybeUninit<Self::Value>], ) -> &mut [MaybeUninit<Self>]
fn pack_slice_with_suffix_mut( buf: &mut [Self::Value], ) -> (&mut [Self], &mut [Self::Value])
fn pack_maybe_uninit_slice_with_suffix_mut( buf: &mut [MaybeUninit<Self::Value>], ) -> (&mut [MaybeUninit<Self>], &mut [MaybeUninit<Self::Value>])
fn unpack_slice(buf: &[Self]) -> &[Self::Value]
Source§impl<PMP> PartialEq for PackedMontyField31Neon<PMP>where
PMP: PartialEq + PackedMontyParameters,
impl<PMP> PartialEq for PackedMontyField31Neon<PMP>where
PMP: PartialEq + PackedMontyParameters,
Source§impl<FP> Product<MontyField31<FP>> for PackedMontyField31Neon<FP>where
FP: FieldParameters,
impl<FP> Product<MontyField31<FP>> for PackedMontyField31Neon<FP>where
FP: FieldParameters,
Source§fn product<I>(iter: I) -> PackedMontyField31Neon<FP>where
I: Iterator<Item = MontyField31<FP>>,
fn product<I>(iter: I) -> PackedMontyField31Neon<FP>where
I: Iterator<Item = MontyField31<FP>>,
Takes an iterator and generates
Self
from the elements by multiplying
the items.Source§impl<FP> Product for PackedMontyField31Neon<FP>where
FP: FieldParameters,
impl<FP> Product for PackedMontyField31Neon<FP>where
FP: FieldParameters,
Source§fn product<I>(iter: I) -> PackedMontyField31Neon<FP>where
I: Iterator<Item = PackedMontyField31Neon<FP>>,
fn product<I>(iter: I) -> PackedMontyField31Neon<FP>where
I: Iterator<Item = PackedMontyField31Neon<FP>>,
Takes an iterator and generates
Self
from the elements by multiplying
the items.Source§impl<PMP> Sub<MontyField31<PMP>> for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> Sub<MontyField31<PMP>> for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§type Output = PackedMontyField31Neon<PMP>
type Output = PackedMontyField31Neon<PMP>
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: MontyField31<PMP>) -> PackedMontyField31Neon<PMP>
fn sub(self, rhs: MontyField31<PMP>) -> PackedMontyField31Neon<PMP>
Performs the
-
operation. Read moreSource§impl<PMP> Sub for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> Sub for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§type Output = PackedMontyField31Neon<PMP>
type Output = PackedMontyField31Neon<PMP>
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: PackedMontyField31Neon<PMP>) -> PackedMontyField31Neon<PMP>
fn sub(self, rhs: PackedMontyField31Neon<PMP>) -> PackedMontyField31Neon<PMP>
Performs the
-
operation. Read moreSource§impl<PMP> SubAssign<MontyField31<PMP>> for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> SubAssign<MontyField31<PMP>> for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§fn sub_assign(&mut self, rhs: MontyField31<PMP>)
fn sub_assign(&mut self, rhs: MontyField31<PMP>)
Performs the
-=
operation. Read moreSource§impl<PMP> SubAssign for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
impl<PMP> SubAssign for PackedMontyField31Neon<PMP>where
PMP: PackedMontyParameters,
Source§fn sub_assign(&mut self, rhs: PackedMontyField31Neon<PMP>)
fn sub_assign(&mut self, rhs: PackedMontyField31Neon<PMP>)
Performs the
-=
operation. Read moreSource§impl<FP> Sum<MontyField31<FP>> for PackedMontyField31Neon<FP>where
FP: FieldParameters,
impl<FP> Sum<MontyField31<FP>> for PackedMontyField31Neon<FP>where
FP: FieldParameters,
Source§fn sum<I>(iter: I) -> PackedMontyField31Neon<FP>where
I: Iterator<Item = MontyField31<FP>>,
fn sum<I>(iter: I) -> PackedMontyField31Neon<FP>where
I: Iterator<Item = MontyField31<FP>>,
Takes an iterator and generates
Self
from the elements by “summing up”
the items.Source§impl<FP> Sum for PackedMontyField31Neon<FP>where
FP: FieldParameters,
impl<FP> Sum for PackedMontyField31Neon<FP>where
FP: FieldParameters,
Source§fn sum<I>(iter: I) -> PackedMontyField31Neon<FP>where
I: Iterator<Item = PackedMontyField31Neon<FP>>,
fn sum<I>(iter: I) -> PackedMontyField31Neon<FP>where
I: Iterator<Item = PackedMontyField31Neon<FP>>,
Takes an iterator and generates
Self
from the elements by “summing up”
the items.