Type Alias PackedBabyBearNeon

Source
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>

Source§

type Output = PackedMontyField31Neon<PMP>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: MontyField31<PMP>) -> PackedMontyField31Neon<PMP>

Performs the + operation. Read more
Source§

impl<PMP> Add for PackedMontyField31Neon<PMP>

Source§

type Output = PackedMontyField31Neon<PMP>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: PackedMontyField31Neon<PMP>) -> PackedMontyField31Neon<PMP>

Performs the + operation. Read more
Source§

impl<PMP> AddAssign<MontyField31<PMP>> for PackedMontyField31Neon<PMP>

Source§

fn add_assign(&mut self, rhs: MontyField31<PMP>)

Performs the += operation. Read more
Source§

impl<PMP> AddAssign for PackedMontyField31Neon<PMP>

Source§

fn add_assign(&mut self, rhs: PackedMontyField31Neon<PMP>)

Performs the += operation. Read more
Source§

impl<PMP> Clone for PackedMontyField31Neon<PMP>

Source§

fn clone(&self) -> PackedMontyField31Neon<PMP>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<PMP> Debug for PackedMontyField31Neon<PMP>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<PMP> Default for PackedMontyField31Neon<PMP>

Source§

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,

Source§

type Output = PackedMontyField31Neon<FP>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: MontyField31<FP>) -> PackedMontyField31Neon<FP>

Performs the / operation. Read more
Source§

impl<FP> FieldAlgebra for PackedMontyField31Neon<FP>
where FP: FieldParameters,

Source§

const ZERO: PackedMontyField31Neon<FP>

The additive identity of the algebra. Read more
Source§

const ONE: PackedMontyField31Neon<FP>

The multiplicative identity of the Algebra Read more
Source§

const TWO: PackedMontyField31Neon<FP>

The element in the algebra given by ONE + ONE. Read more
Source§

const NEG_ONE: PackedMontyField31Neon<FP>

The element in the algebra given by -ONE. Read more
Source§

type F = MontyField31<FP>

Source§

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>

Convert from a canonical u8. Read more
Source§

fn from_canonical_u16(n: u16) -> PackedMontyField31Neon<FP>

Convert from a canonical u16. Read more
Source§

fn from_canonical_u32(n: u32) -> PackedMontyField31Neon<FP>

Convert from a canonical u32. Read more
Source§

fn from_canonical_u64(n: u64) -> PackedMontyField31Neon<FP>

Convert from a canonical u64. Read more
Source§

fn from_canonical_usize(n: usize) -> PackedMontyField31Neon<FP>

Convert from a canonical usize. Read more
Source§

fn from_wrapped_u32(n: u32) -> PackedMontyField31Neon<FP>

Source§

fn from_wrapped_u64(n: u64) -> PackedMontyField31Neon<FP>

Source§

fn cube(&self) -> PackedMontyField31Neon<FP>

The elementary function cube(a) = a^3. Read more
Source§

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 more
Source§

fn from_bool(b: bool) -> Self

Convert from a bool.
Source§

fn double(&self) -> Self

The elementary function double(a) = 2*a. Read more
Source§

fn square(&self) -> Self

The elementary function square(a) = a^2. Read more
Source§

fn exp_u64(&self, power: u64) -> Self

Exponentiation by a u64 power. Read more
Source§

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

Compute self^{2^power_log} by repeated squaring.
Source§

fn mul_2exp_u64(&self, exp: u64) -> Self

self * 2^exp
Source§

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>

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>,

Construct an iterator which returns powers of self packed into PackedField elements. Read more
Source§

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 more
Source§

fn dot_product<const N: usize>(u: &[Self; N], v: &[Self; N]) -> Self

Compute the dot product of two vectors.
Source§

impl<PMP> From<MontyField31<PMP>> for PackedMontyField31Neon<PMP>

Source§

fn from(value: MontyField31<PMP>) -> PackedMontyField31Neon<PMP>

Converts to this type from the input type.
Source§

impl<PMP> Mul<MontyField31<PMP>> for PackedMontyField31Neon<PMP>

Source§

type Output = PackedMontyField31Neon<PMP>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: MontyField31<PMP>) -> PackedMontyField31Neon<PMP>

Performs the * operation. Read more
Source§

impl<PMP> Mul for PackedMontyField31Neon<PMP>

Source§

type Output = PackedMontyField31Neon<PMP>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: PackedMontyField31Neon<PMP>) -> PackedMontyField31Neon<PMP>

Performs the * operation. Read more
Source§

impl<PMP> MulAssign<MontyField31<PMP>> for PackedMontyField31Neon<PMP>

Source§

fn mul_assign(&mut self, rhs: MontyField31<PMP>)

Performs the *= operation. Read more
Source§

impl<PMP> MulAssign for PackedMontyField31Neon<PMP>

Source§

fn mul_assign(&mut self, rhs: PackedMontyField31Neon<PMP>)

Performs the *= operation. Read more
Source§

impl<PMP> Neg for PackedMontyField31Neon<PMP>

Source§

type Output = PackedMontyField31Neon<PMP>

The resulting type after applying the - operator.
Source§

fn neg(self) -> PackedMontyField31Neon<PMP>

Performs the unary - operation. Read more
Source§

impl<FP> PackedField for PackedMontyField31Neon<FP>
where FP: FieldParameters,

Source§

impl<FP> PackedFieldPow2 for PackedMontyField31Neon<FP>
where FP: FieldParameters,

Source§

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 more
Source§

impl<FP> PackedValue for PackedMontyField31Neon<FP>
where FP: FieldParameters,

Source§

fn from_fn<F>(f: F) -> PackedMontyField31Neon<FP>
where F: FnMut(usize) -> MontyField31<FP>,

Similar to core:array::from_fn.

Source§

const WIDTH: usize = 4usize

Source§

type Value = MontyField31<FP>

Source§

fn from_slice(slice: &[MontyField31<FP>]) -> &PackedMontyField31Neon<FP>

Source§

fn from_slice_mut( slice: &mut [MontyField31<FP>], ) -> &mut PackedMontyField31Neon<FP>

Source§

fn as_slice(&self) -> &[MontyField31<FP>]

Source§

fn as_slice_mut(&mut self) -> &mut [MontyField31<FP>]

Source§

fn pack_slice(buf: &[Self::Value]) -> &[Self]

Source§

fn pack_slice_with_suffix(buf: &[Self::Value]) -> (&[Self], &[Self::Value])

Source§

fn pack_slice_mut(buf: &mut [Self::Value]) -> &mut [Self]

Source§

fn pack_maybe_uninit_slice_mut( buf: &mut [MaybeUninit<Self::Value>], ) -> &mut [MaybeUninit<Self>]

Source§

fn pack_slice_with_suffix_mut( buf: &mut [Self::Value], ) -> (&mut [Self], &mut [Self::Value])

Source§

fn pack_maybe_uninit_slice_with_suffix_mut( buf: &mut [MaybeUninit<Self::Value>], ) -> (&mut [MaybeUninit<Self>], &mut [MaybeUninit<Self::Value>])

Source§

fn unpack_slice(buf: &[Self]) -> &[Self::Value]

Source§

impl<PMP> PartialEq for PackedMontyField31Neon<PMP>

Source§

fn eq(&self, other: &PackedMontyField31Neon<PMP>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

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>>,

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl<FP> Product for PackedMontyField31Neon<FP>
where FP: FieldParameters,

Source§

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>

Source§

type Output = PackedMontyField31Neon<PMP>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: MontyField31<PMP>) -> PackedMontyField31Neon<PMP>

Performs the - operation. Read more
Source§

impl<PMP> Sub for PackedMontyField31Neon<PMP>

Source§

type Output = PackedMontyField31Neon<PMP>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: PackedMontyField31Neon<PMP>) -> PackedMontyField31Neon<PMP>

Performs the - operation. Read more
Source§

impl<PMP> SubAssign<MontyField31<PMP>> for PackedMontyField31Neon<PMP>

Source§

fn sub_assign(&mut self, rhs: MontyField31<PMP>)

Performs the -= operation. Read more
Source§

impl<PMP> SubAssign for PackedMontyField31Neon<PMP>

Source§

fn sub_assign(&mut self, rhs: PackedMontyField31Neon<PMP>)

Performs the -= operation. Read more
Source§

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>>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<FP> Sum for PackedMontyField31Neon<FP>
where FP: FieldParameters,

Source§

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.
Source§

impl<PMP> Copy for PackedMontyField31Neon<PMP>

Source§

impl<PMP> Eq for PackedMontyField31Neon<PMP>

Source§

impl<PMP> StructuralPartialEq for PackedMontyField31Neon<PMP>