pub struct QuadExtField<P: QuadExtConfig> {
pub c0: P::BaseField,
pub c1: P::BaseField,
}
Expand description
An element of a quadratic extension field F_p[X]/(X^2 - P::NONRESIDUE) is
represented as c0 + c1 * X, for c0, c1 in P::BaseField
.
Fields§
§c0: P::BaseField
Coefficient c0
in the representation of the field element c = c0 + c1 * X
c1: P::BaseField
Coefficient c1
in the representation of the field element c = c0 + c1 * X
Implementations§
Source§impl<P: Fp2Config> QuadExtField<Fp2ConfigWrapper<P>>
impl<P: Fp2Config> QuadExtField<Fp2ConfigWrapper<P>>
Sourcepub fn mul_assign_by_fp(&mut self, other: &P::Fp)
pub fn mul_assign_by_fp(&mut self, other: &P::Fp)
In-place multiply both coefficients c0
and c1
of self
by an element from Fp
.
§Examples
let c0: Fp = Fp::rand(&mut test_rng());
let c1: Fp = Fp::rand(&mut test_rng());
let mut ext_element: Fp2 = Fp2::new(c0, c1);
let base_field_element: Fp = Fp::rand(&mut test_rng());
ext_element.mul_assign_by_fp(&base_field_element);
assert_eq!(ext_element.c0, c0 * base_field_element);
assert_eq!(ext_element.c1, c1 * base_field_element);
Source§impl<P: Fp4Config> QuadExtField<Fp4ConfigWrapper<P>>
impl<P: Fp4Config> QuadExtField<Fp4ConfigWrapper<P>>
Source§impl<P: Fp6Config> QuadExtField<Fp6ConfigWrapper<P>>
impl<P: Fp6Config> QuadExtField<Fp6ConfigWrapper<P>>
pub fn mul_by_034( &mut self, c0: &<P::Fp3Config as Fp3Config>::Fp, c3: &<P::Fp3Config as Fp3Config>::Fp, c4: &<P::Fp3Config as Fp3Config>::Fp, )
pub fn mul_by_014( &mut self, c0: &<P::Fp3Config as Fp3Config>::Fp, c1: &<P::Fp3Config as Fp3Config>::Fp, c4: &<P::Fp3Config as Fp3Config>::Fp, )
Source§impl<P: Fp12Config> QuadExtField<Fp12ConfigWrapper<P>>
impl<P: Fp12Config> QuadExtField<Fp12ConfigWrapper<P>>
pub fn mul_by_fp(&mut self, element: &<Self as Field>::BasePrimeField)
pub fn mul_by_034( &mut self, c0: &Fp2<<<P as Fp12Config>::Fp6Config as Fp6Config>::Fp2Config>, c3: &Fp2<<<P as Fp12Config>::Fp6Config as Fp6Config>::Fp2Config>, c4: &Fp2<<<P as Fp12Config>::Fp6Config as Fp6Config>::Fp2Config>, )
pub fn mul_by_014( &mut self, c0: &Fp2<<<P as Fp12Config>::Fp6Config as Fp6Config>::Fp2Config>, c1: &Fp2<<<P as Fp12Config>::Fp6Config as Fp6Config>::Fp2Config>, c4: &Fp2<<<P as Fp12Config>::Fp6Config as Fp6Config>::Fp2Config>, )
Source§impl<P: QuadExtConfig> QuadExtField<P>
impl<P: QuadExtConfig> QuadExtField<P>
Sourcepub const fn new(c0: P::BaseField, c1: P::BaseField) -> Self
pub const fn new(c0: P::BaseField, c1: P::BaseField) -> Self
Create a new field element from coefficients c0
and c1
,
so that the result is of the form c0 + c1 * X
.
§Examples
let c0: Fp = Fp::rand(&mut test_rng());
let c1: Fp = Fp::rand(&mut test_rng());
// `Fp2` a degree-2 extension over `Fp`.
let c: Fp2 = Fp2::new(c0, c1);
Sourcepub fn conjugate_in_place(&mut self) -> &mut Self
pub fn conjugate_in_place(&mut self) -> &mut Self
This is only to be used when the element is known to be in the cyclotomic subgroup.
Sourcepub fn norm(&self) -> P::BaseField
pub fn norm(&self) -> P::BaseField
Norm of QuadExtField over P::BaseField
:Norm(a) = a * a.conjugate()
.
This simplifies to: Norm(a) = a.x^2 - P::NON_RESIDUE * a.y^2
.
This is alternatively expressed as Norm(a) = a^(1 + p)
.
§Examples
let c: Fp2 = Fp2::rand(&mut test_rng());
let norm = c.norm();
// We now compute the norm using the `a * a.conjugate()` approach.
// A Frobenius map sends an element of `Fp2` to one of its p_th powers:
// `a.frobenius_map_in_place(1) -> a^p` and `a^p` is also `a`'s Galois conjugate.
let mut c_conjugate = c;
c_conjugate.frobenius_map_in_place(1);
let norm2 = c * c_conjugate;
// Computing the norm of an `Fp2` element should result in an element
// in BaseField `Fp`, i.e. `c1 == 0`
assert!(norm2.c1.is_zero());
assert_eq!(norm, norm2.c0);
Sourcepub fn mul_assign_by_basefield(&mut self, element: &P::BaseField)
pub fn mul_assign_by_basefield(&mut self, element: &P::BaseField)
In-place multiply both coefficients c0
& c1
of the quadratic
extension field by an element from the base field.
Trait Implementations§
Source§impl<'a, 'b, P: QuadExtConfig> Add<&'a QuadExtField<P>> for &'b QuadExtField<P>
impl<'a, 'b, P: QuadExtConfig> Add<&'a QuadExtField<P>> for &'b QuadExtField<P>
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
+
operator.Source§fn add(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
fn add(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
+
operation. Read moreSource§impl<'a, P: QuadExtConfig> Add<&'a QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> Add<&'a QuadExtField<P>> for QuadExtField<P>
Source§impl<'a, 'b, P: QuadExtConfig> Add<&'a mut QuadExtField<P>> for &'b QuadExtField<P>
impl<'a, 'b, P: QuadExtConfig> Add<&'a mut QuadExtField<P>> for &'b QuadExtField<P>
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
+
operator.Source§fn add(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
fn add(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
+
operation. Read moreSource§impl<'a, P: QuadExtConfig> Add<&'a mut QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> Add<&'a mut QuadExtField<P>> for QuadExtField<P>
Source§impl<'b, P: QuadExtConfig> Add<QuadExtField<P>> for &'b QuadExtField<P>
impl<'b, P: QuadExtConfig> Add<QuadExtField<P>> for &'b QuadExtField<P>
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
+
operator.Source§fn add(self, other: QuadExtField<P>) -> QuadExtField<P>
fn add(self, other: QuadExtField<P>) -> QuadExtField<P>
+
operation. Read moreSource§impl<P: QuadExtConfig> Add for QuadExtField<P>
impl<P: QuadExtConfig> Add for QuadExtField<P>
Source§impl<'a, P: QuadExtConfig> AddAssign<&'a QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> AddAssign<&'a QuadExtField<P>> for QuadExtField<P>
Source§fn add_assign(&mut self, other: &Self)
fn add_assign(&mut self, other: &Self)
+=
operation. Read moreSource§impl<'a, P: QuadExtConfig> AddAssign<&'a mut QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> AddAssign<&'a mut QuadExtField<P>> for QuadExtField<P>
Source§fn add_assign(&mut self, other: &'a mut Self)
fn add_assign(&mut self, other: &'a mut Self)
+=
operation. Read moreSource§impl<P: QuadExtConfig> AddAssign for QuadExtField<P>
impl<P: QuadExtConfig> AddAssign for QuadExtField<P>
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
+=
operation. Read moreSource§impl<P: QuadExtConfig> CanonicalDeserialize for QuadExtField<P>
impl<P: QuadExtConfig> CanonicalDeserialize for QuadExtField<P>
Source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate, ) -> Result<Self, SerializationError>
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
Source§impl<P: QuadExtConfig> CanonicalDeserializeWithFlags for QuadExtField<P>
impl<P: QuadExtConfig> CanonicalDeserializeWithFlags for QuadExtField<P>
Source§fn deserialize_with_flags<R: Read, F: Flags>(
reader: R,
) -> Result<(Self, F), SerializationError>
fn deserialize_with_flags<R: Read, F: Flags>( reader: R, ) -> Result<(Self, F), SerializationError>
Self
and Flags
from reader
.
Returns empty flags by default.Source§impl<P: QuadExtConfig> CanonicalSerialize for QuadExtField<P>
impl<P: QuadExtConfig> CanonicalSerialize for QuadExtField<P>
Source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
_compress: Compress,
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, _compress: Compress, ) -> Result<(), SerializationError>
fn serialized_size(&self, _compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn uncompressed_size(&self) -> usize
Source§impl<P: QuadExtConfig> CanonicalSerializeWithFlags for QuadExtField<P>
impl<P: QuadExtConfig> CanonicalSerializeWithFlags for QuadExtField<P>
Source§fn serialize_with_flags<W: Write, F: Flags>(
&self,
writer: W,
flags: F,
) -> Result<(), SerializationError>
fn serialize_with_flags<W: Write, F: Flags>( &self, writer: W, flags: F, ) -> Result<(), SerializationError>
self
and flags
into writer
.Source§fn serialized_size_with_flags<F: Flags>(&self) -> usize
fn serialized_size_with_flags<F: Flags>(&self) -> usize
self
and flags
into writer
.Source§impl<P> Clone for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Clone for QuadExtField<P>where
P: QuadExtConfig,
Source§impl<P> Debug for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Debug for QuadExtField<P>where
P: QuadExtConfig,
Source§impl<P> Default for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Default for QuadExtField<P>where
P: QuadExtConfig,
Source§impl<P: QuadExtConfig> Display for QuadExtField<P>
impl<P: QuadExtConfig> Display for QuadExtField<P>
Source§impl<P: QuadExtConfig> Distribution<QuadExtField<P>> for Standard
impl<P: QuadExtConfig> Distribution<QuadExtField<P>> for Standard
Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> QuadExtField<P>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> QuadExtField<P>
T
, using rng
as the source of randomness.Source§fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
T
, using rng
as
the source of randomness. Read moreSource§impl<'a, 'b, P: QuadExtConfig> Div<&'a QuadExtField<P>> for &'b QuadExtField<P>
impl<'a, 'b, P: QuadExtConfig> Div<&'a QuadExtField<P>> for &'b QuadExtField<P>
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
/
operator.Source§fn div(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
fn div(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
/
operation. Read moreSource§impl<'a, P: QuadExtConfig> Div<&'a QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> Div<&'a QuadExtField<P>> for QuadExtField<P>
Source§impl<'a, 'b, P: QuadExtConfig> Div<&'a mut QuadExtField<P>> for &'b QuadExtField<P>
impl<'a, 'b, P: QuadExtConfig> Div<&'a mut QuadExtField<P>> for &'b QuadExtField<P>
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
/
operator.Source§fn div(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
fn div(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
/
operation. Read moreSource§impl<'a, P: QuadExtConfig> Div<&'a mut QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> Div<&'a mut QuadExtField<P>> for QuadExtField<P>
Source§impl<'b, P: QuadExtConfig> Div<QuadExtField<P>> for &'b QuadExtField<P>
impl<'b, P: QuadExtConfig> Div<QuadExtField<P>> for &'b QuadExtField<P>
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
/
operator.Source§fn div(self, other: QuadExtField<P>) -> QuadExtField<P>
fn div(self, other: QuadExtField<P>) -> QuadExtField<P>
/
operation. Read moreSource§impl<P: QuadExtConfig> Div for QuadExtField<P>
impl<P: QuadExtConfig> Div for QuadExtField<P>
Source§impl<'a, P: QuadExtConfig> DivAssign<&'a QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> DivAssign<&'a QuadExtField<P>> for QuadExtField<P>
Source§fn div_assign(&mut self, other: &Self)
fn div_assign(&mut self, other: &Self)
/=
operation. Read moreSource§impl<'a, P: QuadExtConfig> DivAssign<&'a mut QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> DivAssign<&'a mut QuadExtField<P>> for QuadExtField<P>
Source§fn div_assign(&mut self, other: &'a mut Self)
fn div_assign(&mut self, other: &'a mut Self)
/=
operation. Read moreSource§impl<P: QuadExtConfig> DivAssign for QuadExtField<P>
impl<P: QuadExtConfig> DivAssign for QuadExtField<P>
Source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
/=
operation. Read moreSource§impl<P: QuadExtConfig> Field for QuadExtField<P>
impl<P: QuadExtConfig> Field for QuadExtField<P>
Source§const SQRT_PRECOMP: Option<SqrtPrecomputation<Self>> = None
const SQRT_PRECOMP: Option<SqrtPrecomputation<Self>> = None
type BasePrimeField = <P as QuadExtConfig>::BasePrimeField
type BasePrimeFieldIter = Chain<<<P as QuadExtConfig>::BaseField as Field>::BasePrimeFieldIter, <<P as QuadExtConfig>::BaseField as Field>::BasePrimeFieldIter>
Source§fn extension_degree() -> u64
fn extension_degree() -> u64
Self::BasePrimeField
.Source§fn from_base_prime_field(elem: Self::BasePrimeField) -> Self
fn from_base_prime_field(elem: Self::BasePrimeField) -> Self
fn to_base_prime_field_elements(&self) -> Self::BasePrimeFieldIter
Source§fn from_base_prime_field_elems(elems: &[Self::BasePrimeField]) -> Option<Self>
fn from_base_prime_field_elems(elems: &[Self::BasePrimeField]) -> Option<Self>
Source§fn double_in_place(&mut self) -> &mut Self
fn double_in_place(&mut self) -> &mut Self
self
in place.Source§fn neg_in_place(&mut self) -> &mut Self
fn neg_in_place(&mut self) -> &mut Self
self
in place.Source§fn from_random_bytes_with_flags<F: Flags>(bytes: &[u8]) -> Option<(Self, F)>
fn from_random_bytes_with_flags<F: Flags>(bytes: &[u8]) -> Option<(Self, F)>
F
specification. Returns None
if the deserialization
fails. Read moreSource§fn from_random_bytes(bytes: &[u8]) -> Option<Self>
fn from_random_bytes(bytes: &[u8]) -> Option<Self>
None
if the
deserialization fails. Read moreSource§fn square_in_place(&mut self) -> &mut Self
fn square_in_place(&mut self) -> &mut Self
self
in place.Source§fn inverse(&self) -> Option<Self>
fn inverse(&self) -> Option<Self>
self
if self
is nonzero.Source§fn inverse_in_place(&mut self) -> Option<&mut Self>
fn inverse_in_place(&mut self) -> Option<&mut Self>
self.inverse().is_none()
, this just returns None
. Otherwise, it sets
self
to self.inverse().unwrap()
.Source§fn frobenius_map_in_place(&mut self, power: usize)
fn frobenius_map_in_place(&mut self, power: usize)
self
to self^s
, where s = Self::BasePrimeField::MODULUS^power
.
This is also called the Frobenius automorphism.Source§fn legendre(&self) -> LegendreSymbol
fn legendre(&self) -> LegendreSymbol
LegendreSymbol
, which indicates whether this field element
is 1 : a quadratic residue
0 : equal to 0
-1 : a quadratic non-residueSource§fn sqrt_in_place(&mut self) -> Option<&mut Self>
fn sqrt_in_place(&mut self) -> Option<&mut Self>
self
to be the square root of self
, if it exists.Source§fn characteristic() -> &'static [u64]
fn characteristic() -> &'static [u64]
Source§fn sum_of_products<const T: usize>(a: &[Self; T], b: &[Self; T]) -> Self
fn sum_of_products<const T: usize>(a: &[Self; T], b: &[Self; T]) -> Self
sum([a_i * b_i])
.Source§fn frobenius_map(&self, power: usize) -> Self
fn frobenius_map(&self, power: usize) -> Self
self^s
, where s = Self::BasePrimeField::MODULUS^power
.
This is also called the Frobenius automorphism.Source§fn pow<S: AsRef<[u64]>>(&self, exp: S) -> Self
fn pow<S: AsRef<[u64]>>(&self, exp: S) -> Self
self^exp
, where exp
is an integer represented with u64
limbs,
least significant limb first.Source§fn pow_with_table<S: AsRef<[u64]>>(powers_of_2: &[Self], exp: S) -> Option<Self>
fn pow_with_table<S: AsRef<[u64]>>(powers_of_2: &[Self], exp: S) -> Option<Self>
f
by a number represented with u64
limbs, using a precomputed table containing as many powers of 2 of
f
as the 1 + the floor of log2 of the exponent exp
, starting
from the 1st power. That is, powers_of_2
should equal &[p, p^2, p^4, ..., p^(2^n)]
when exp
has at most n
bits. Read moreSource§impl<P: QuadExtConfig> From<bool> for QuadExtField<P>
impl<P: QuadExtConfig> From<bool> for QuadExtField<P>
Source§impl<P: QuadExtConfig> From<i128> for QuadExtField<P>
impl<P: QuadExtConfig> From<i128> for QuadExtField<P>
Source§impl<P: QuadExtConfig> From<i16> for QuadExtField<P>
impl<P: QuadExtConfig> From<i16> for QuadExtField<P>
Source§impl<P: QuadExtConfig> From<i32> for QuadExtField<P>
impl<P: QuadExtConfig> From<i32> for QuadExtField<P>
Source§impl<P: QuadExtConfig> From<i64> for QuadExtField<P>
impl<P: QuadExtConfig> From<i64> for QuadExtField<P>
Source§impl<P: QuadExtConfig> From<i8> for QuadExtField<P>
impl<P: QuadExtConfig> From<i8> for QuadExtField<P>
Source§impl<P: QuadExtConfig> From<u128> for QuadExtField<P>
impl<P: QuadExtConfig> From<u128> for QuadExtField<P>
Source§impl<P: QuadExtConfig> From<u16> for QuadExtField<P>
impl<P: QuadExtConfig> From<u16> for QuadExtField<P>
Source§impl<P: QuadExtConfig> From<u32> for QuadExtField<P>
impl<P: QuadExtConfig> From<u32> for QuadExtField<P>
Source§impl<P: QuadExtConfig> From<u64> for QuadExtField<P>
impl<P: QuadExtConfig> From<u64> for QuadExtField<P>
Source§impl<P: QuadExtConfig> From<u8> for QuadExtField<P>
impl<P: QuadExtConfig> From<u8> for QuadExtField<P>
Source§impl<P> Hash for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Hash for QuadExtField<P>where
P: QuadExtConfig,
Source§impl<'a, 'b, P: QuadExtConfig> Mul<&'a QuadExtField<P>> for &'b QuadExtField<P>
impl<'a, 'b, P: QuadExtConfig> Mul<&'a QuadExtField<P>> for &'b QuadExtField<P>
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
*
operator.Source§fn mul(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
fn mul(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
*
operation. Read moreSource§impl<'a, P: QuadExtConfig> Mul<&'a QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> Mul<&'a QuadExtField<P>> for QuadExtField<P>
Source§impl<'a, 'b, P: QuadExtConfig> Mul<&'a mut QuadExtField<P>> for &'b QuadExtField<P>
impl<'a, 'b, P: QuadExtConfig> Mul<&'a mut QuadExtField<P>> for &'b QuadExtField<P>
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
*
operator.Source§fn mul(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
fn mul(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
*
operation. Read moreSource§impl<'a, P: QuadExtConfig> Mul<&'a mut QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> Mul<&'a mut QuadExtField<P>> for QuadExtField<P>
Source§impl<'b, P: QuadExtConfig> Mul<QuadExtField<P>> for &'b QuadExtField<P>
impl<'b, P: QuadExtConfig> Mul<QuadExtField<P>> for &'b QuadExtField<P>
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
*
operator.Source§fn mul(self, other: QuadExtField<P>) -> QuadExtField<P>
fn mul(self, other: QuadExtField<P>) -> QuadExtField<P>
*
operation. Read moreSource§impl<P: QuadExtConfig> Mul for QuadExtField<P>
impl<P: QuadExtConfig> Mul for QuadExtField<P>
Source§impl<'a, P: QuadExtConfig> MulAssign<&'a QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> MulAssign<&'a QuadExtField<P>> for QuadExtField<P>
Source§fn mul_assign(&mut self, other: &Self)
fn mul_assign(&mut self, other: &Self)
*=
operation. Read moreSource§impl<'a, P: QuadExtConfig> MulAssign<&'a mut QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> MulAssign<&'a mut QuadExtField<P>> for QuadExtField<P>
Source§fn mul_assign(&mut self, other: &'a mut Self)
fn mul_assign(&mut self, other: &'a mut Self)
*=
operation. Read moreSource§impl<P: QuadExtConfig> MulAssign for QuadExtField<P>
impl<P: QuadExtConfig> MulAssign for QuadExtField<P>
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
*=
operation. Read moreSource§impl<P: QuadExtConfig> Neg for QuadExtField<P>
impl<P: QuadExtConfig> Neg for QuadExtField<P>
Source§impl<P: QuadExtConfig> One for QuadExtField<P>
impl<P: QuadExtConfig> One for QuadExtField<P>
Source§impl<P: QuadExtConfig> Ord for QuadExtField<P>
impl<P: QuadExtConfig> Ord for QuadExtField<P>
QuadExtField
elements are ordered lexicographically.
Source§impl<P> PartialEq for QuadExtField<P>where
P: QuadExtConfig,
impl<P> PartialEq for QuadExtField<P>where
P: QuadExtConfig,
Source§impl<P: QuadExtConfig> PartialOrd for QuadExtField<P>
impl<P: QuadExtConfig> PartialOrd for QuadExtField<P>
Source§impl<'a, P: QuadExtConfig> Product<&'a QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> Product<&'a QuadExtField<P>> for QuadExtField<P>
Source§impl<P: QuadExtConfig> Product for QuadExtField<P>
impl<P: QuadExtConfig> Product for QuadExtField<P>
Source§impl<'a, 'b, P: QuadExtConfig> Sub<&'a QuadExtField<P>> for &'b QuadExtField<P>
impl<'a, 'b, P: QuadExtConfig> Sub<&'a QuadExtField<P>> for &'b QuadExtField<P>
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
-
operator.Source§fn sub(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
fn sub(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
-
operation. Read moreSource§impl<'a, P: QuadExtConfig> Sub<&'a QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> Sub<&'a QuadExtField<P>> for QuadExtField<P>
Source§impl<'a, 'b, P: QuadExtConfig> Sub<&'a mut QuadExtField<P>> for &'b QuadExtField<P>
impl<'a, 'b, P: QuadExtConfig> Sub<&'a mut QuadExtField<P>> for &'b QuadExtField<P>
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
-
operator.Source§fn sub(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
fn sub(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
-
operation. Read moreSource§impl<'a, P: QuadExtConfig> Sub<&'a mut QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> Sub<&'a mut QuadExtField<P>> for QuadExtField<P>
Source§impl<'b, P: QuadExtConfig> Sub<QuadExtField<P>> for &'b QuadExtField<P>
impl<'b, P: QuadExtConfig> Sub<QuadExtField<P>> for &'b QuadExtField<P>
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
-
operator.Source§fn sub(self, other: QuadExtField<P>) -> QuadExtField<P>
fn sub(self, other: QuadExtField<P>) -> QuadExtField<P>
-
operation. Read moreSource§impl<P: QuadExtConfig> Sub for QuadExtField<P>
impl<P: QuadExtConfig> Sub for QuadExtField<P>
Source§impl<'a, P: QuadExtConfig> SubAssign<&'a QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> SubAssign<&'a QuadExtField<P>> for QuadExtField<P>
Source§fn sub_assign(&mut self, other: &Self)
fn sub_assign(&mut self, other: &Self)
-=
operation. Read moreSource§impl<'a, P: QuadExtConfig> SubAssign<&'a mut QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> SubAssign<&'a mut QuadExtField<P>> for QuadExtField<P>
Source§fn sub_assign(&mut self, other: &'a mut Self)
fn sub_assign(&mut self, other: &'a mut Self)
-=
operation. Read moreSource§impl<P: QuadExtConfig> SubAssign for QuadExtField<P>
impl<P: QuadExtConfig> SubAssign for QuadExtField<P>
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
-=
operation. Read moreSource§impl<'a, P: QuadExtConfig> Sum<&'a QuadExtField<P>> for QuadExtField<P>
impl<'a, P: QuadExtConfig> Sum<&'a QuadExtField<P>> for QuadExtField<P>
Source§impl<P: QuadExtConfig> Sum for QuadExtField<P>
impl<P: QuadExtConfig> Sum for QuadExtField<P>
Source§impl<P: QuadExtConfig> ToConstraintField<<P as QuadExtConfig>::BasePrimeField> for QuadExtField<P>
impl<P: QuadExtConfig> ToConstraintField<<P as QuadExtConfig>::BasePrimeField> for QuadExtField<P>
fn to_field_elements(&self) -> Option<Vec<P::BasePrimeField>>
Source§impl<P: QuadExtConfig> Valid for QuadExtField<P>
impl<P: QuadExtConfig> Valid for QuadExtField<P>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>where
Self: 'a,
Source§impl<P: QuadExtConfig> Zero for QuadExtField<P>
impl<P: QuadExtConfig> Zero for QuadExtField<P>
Source§impl<P: QuadExtConfig> Zeroize for QuadExtField<P>
impl<P: QuadExtConfig> Zeroize for QuadExtField<P>
impl<P> Copy for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Eq for QuadExtField<P>where
P: QuadExtConfig,
Auto Trait Implementations§
impl<P> Freeze for QuadExtField<P>
impl<P> RefUnwindSafe for QuadExtField<P>
impl<P> Send for QuadExtField<P>
impl<P> Sync for QuadExtField<P>
impl<P> Unpin for QuadExtField<P>
impl<P> UnwindSafe for QuadExtField<P>
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
Source§impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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