Struct ark_ff::fields::models::quadratic_extension::QuadExtField[][src]

pub struct QuadExtField<P: QuadExtParameters> {
    pub c0: P::BaseField,
    pub c1: P::BaseField,
    // some fields omitted
}

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::BaseFieldc1: P::BaseField

Implementations

impl<P: Fp2Parameters> QuadExtField<Fp2ParamsWrapper<P>>[src]

pub fn mul_assign_by_fp(&mut self, other: &P::Fp)[src]

impl<P: Fp4Parameters> QuadExtField<Fp4ParamsWrapper<P>>[src]

pub fn mul_by_fp(&mut self, element: &<P::Fp2Params as Fp2Parameters>::Fp)[src]

pub fn mul_by_fp2(&mut self, element: &Fp2<P::Fp2Params>)[src]

impl<P: Fp6Parameters> QuadExtField<Fp6ParamsWrapper<P>>[src]

pub fn mul_by_034(
    &mut self,
    c0: &<P::Fp3Params as Fp3Parameters>::Fp,
    c3: &<P::Fp3Params as Fp3Parameters>::Fp,
    c4: &<P::Fp3Params as Fp3Parameters>::Fp
)
[src]

pub fn mul_by_014(
    &mut self,
    c0: &<P::Fp3Params as Fp3Parameters>::Fp,
    c1: &<P::Fp3Params as Fp3Parameters>::Fp,
    c4: &<P::Fp3Params as Fp3Parameters>::Fp
)
[src]

impl<P: Fp12Parameters> QuadExtField<Fp12ParamsWrapper<P>>[src]

pub fn mul_by_fp(
    &mut self,
    element: &<<P::Fp6Params as Fp6Parameters>::Fp2Params as Fp2Parameters>::Fp
)
[src]

pub fn mul_by_034(
    &mut self,
    c0: &Fp2<<<P as Fp12Parameters>::Fp6Params as Fp6Parameters>::Fp2Params>,
    c3: &Fp2<<<P as Fp12Parameters>::Fp6Params as Fp6Parameters>::Fp2Params>,
    c4: &Fp2<<<P as Fp12Parameters>::Fp6Params as Fp6Parameters>::Fp2Params>
)
[src]

pub fn mul_by_014(
    &mut self,
    c0: &Fp2<<<P as Fp12Parameters>::Fp6Params as Fp6Parameters>::Fp2Params>,
    c1: &Fp2<<<P as Fp12Parameters>::Fp6Params as Fp6Parameters>::Fp2Params>,
    c4: &Fp2<<<P as Fp12Parameters>::Fp6Params as Fp6Parameters>::Fp2Params>
)
[src]

pub fn cyclotomic_square_in_place(&mut self)[src]

pub fn cyclotomic_square(&self) -> Self[src]

impl<P: QuadExtParameters> QuadExtField<P>[src]

pub fn new(c0: P::BaseField, c1: P::BaseField) -> Self[src]

pub fn conjugate(&mut self)[src]

This is only to be used when the element is known to be in the cyclotomic subgroup.

pub fn cyclotomic_exp(&self, exponent: impl AsRef<[u64]>) -> Self[src]

This is only to be used when the element is known to be in the cyclotomic subgroup.

pub fn norm(&self) -> P::BaseField[src]

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).

pub fn mul_assign_by_basefield(&mut self, element: &P::BaseField)[src]

Trait Implementations

impl<'a, P: QuadExtParameters> Add<&'a QuadExtField<P>> for QuadExtField<P>[src]

type Output = Self

The resulting type after applying the + operator.

impl<'a, P: QuadExtParameters> Add<&'a mut QuadExtField<P>> for QuadExtField<P>[src]

type Output = Self

The resulting type after applying the + operator.

impl<P: QuadExtParameters> Add<QuadExtField<P>> for QuadExtField<P>[src]

type Output = Self

The resulting type after applying the + operator.

impl<'a, P: QuadExtParameters> AddAssign<&'a QuadExtField<P>> for QuadExtField<P>[src]

impl<'a, P: QuadExtParameters> AddAssign<&'a mut QuadExtField<P>> for QuadExtField<P>[src]

impl<P: QuadExtParameters> AddAssign<QuadExtField<P>> for QuadExtField<P>[src]

impl<P: QuadExtParameters> CanonicalDeserialize for QuadExtField<P>[src]

impl<P: QuadExtParameters> CanonicalDeserializeWithFlags for QuadExtField<P>[src]

impl<P: QuadExtParameters> CanonicalSerialize for QuadExtField<P>[src]

impl<P: QuadExtParameters> CanonicalSerializeWithFlags for QuadExtField<P>[src]

impl<P: QuadExtParameters> Clone for QuadExtField<P> where
    P: QuadExtParameters
[src]

impl<P: QuadExtParameters> Copy for QuadExtField<P> where
    P: QuadExtParameters
[src]

impl<P: QuadExtParameters> Debug for QuadExtField<P> where
    P: QuadExtParameters
[src]

impl<P: QuadExtParameters> Default for QuadExtField<P> where
    P: QuadExtParameters
[src]

impl<P: QuadExtParameters> Display for QuadExtField<P>[src]

impl<'a, P: QuadExtParameters> Div<&'a QuadExtField<P>> for QuadExtField<P>[src]

type Output = Self

The resulting type after applying the / operator.

impl<'a, P: QuadExtParameters> Div<&'a mut QuadExtField<P>> for QuadExtField<P>[src]

type Output = Self

The resulting type after applying the / operator.

impl<P: QuadExtParameters> Div<QuadExtField<P>> for QuadExtField<P>[src]

type Output = Self

The resulting type after applying the / operator.

impl<'a, P: QuadExtParameters> DivAssign<&'a QuadExtField<P>> for QuadExtField<P>[src]

impl<'a, P: QuadExtParameters> DivAssign<&'a mut QuadExtField<P>> for QuadExtField<P>[src]

impl<P: QuadExtParameters> DivAssign<QuadExtField<P>> for QuadExtField<P>[src]

impl<P: QuadExtParameters> Eq for QuadExtField<P> where
    P: QuadExtParameters
[src]

impl<P: QuadExtParameters> Field for QuadExtField<P>[src]

type BasePrimeField = P::BasePrimeField

impl<P: QuadExtParameters> From<bool> for QuadExtField<P>[src]

impl<P: QuadExtParameters> From<u128> for QuadExtField<P>[src]

impl<P: QuadExtParameters> From<u16> for QuadExtField<P>[src]

impl<P: QuadExtParameters> From<u32> for QuadExtField<P>[src]

impl<P: QuadExtParameters> From<u64> for QuadExtField<P>[src]

impl<P: QuadExtParameters> From<u8> for QuadExtField<P>[src]

impl<P: QuadExtParameters> FromBytes for QuadExtField<P>[src]

impl<P: QuadExtParameters> Hash for QuadExtField<P> where
    P: QuadExtParameters
[src]

impl<'a, P: QuadExtParameters> Mul<&'a QuadExtField<P>> for QuadExtField<P>[src]

type Output = Self

The resulting type after applying the * operator.

impl<'a, P: QuadExtParameters> Mul<&'a mut QuadExtField<P>> for QuadExtField<P>[src]

type Output = Self

The resulting type after applying the * operator.

impl<P: QuadExtParameters> Mul<QuadExtField<P>> for QuadExtField<P>[src]

type Output = Self

The resulting type after applying the * operator.

impl<'a, P: QuadExtParameters> MulAssign<&'a QuadExtField<P>> for QuadExtField<P>[src]

impl<'a, P: QuadExtParameters> MulAssign<&'a mut QuadExtField<P>> for QuadExtField<P>[src]

impl<P: QuadExtParameters> MulAssign<QuadExtField<P>> for QuadExtField<P>[src]

impl<P: QuadExtParameters> Neg for QuadExtField<P>[src]

type Output = Self

The resulting type after applying the - operator.

impl<P: QuadExtParameters> One for QuadExtField<P>[src]

impl<P: QuadExtParameters> Ord for QuadExtField<P>[src]

QuadExtField elements are ordered lexicographically.

impl<P: QuadExtParameters> PartialEq<QuadExtField<P>> for QuadExtField<P> where
    P: QuadExtParameters
[src]

impl<P: QuadExtParameters> PartialOrd<QuadExtField<P>> for QuadExtField<P>[src]

impl<'a, P: QuadExtParameters> Product<&'a QuadExtField<P>> for QuadExtField<P>[src]

impl<P: QuadExtParameters> Product<QuadExtField<P>> for QuadExtField<P>[src]

impl<'a, P: QuadExtParameters> SquareRootField for QuadExtField<P> where
    P::BaseField: SquareRootField
[src]

impl<'a, P: QuadExtParameters> Sub<&'a QuadExtField<P>> for QuadExtField<P>[src]

type Output = Self

The resulting type after applying the - operator.

impl<'a, P: QuadExtParameters> Sub<&'a mut QuadExtField<P>> for QuadExtField<P>[src]

type Output = Self

The resulting type after applying the - operator.

impl<P: QuadExtParameters> Sub<QuadExtField<P>> for QuadExtField<P>[src]

type Output = Self

The resulting type after applying the - operator.

impl<'a, P: QuadExtParameters> SubAssign<&'a QuadExtField<P>> for QuadExtField<P>[src]

impl<'a, P: QuadExtParameters> SubAssign<&'a mut QuadExtField<P>> for QuadExtField<P>[src]

impl<P: QuadExtParameters> SubAssign<QuadExtField<P>> for QuadExtField<P>[src]

impl<'a, P: QuadExtParameters> Sum<&'a QuadExtField<P>> for QuadExtField<P>[src]

impl<P: QuadExtParameters> Sum<QuadExtField<P>> for QuadExtField<P>[src]

impl<P: QuadExtParameters> ToBytes for QuadExtField<P>[src]

impl<P: QuadExtParameters> ToConstraintField<<P as QuadExtParameters>::BasePrimeField> for QuadExtField<P> where
    P::BaseField: ToConstraintField<P::BasePrimeField>, 
[src]

impl<P: QuadExtParameters> Zero for QuadExtField<P>[src]

impl<P: QuadExtParameters> Zeroize for QuadExtField<P>[src]

Auto Trait Implementations

impl<P> Send for QuadExtField<P>

impl<P> Sync for QuadExtField<P>

impl<P> Unpin for QuadExtField<P> where
    P: Unpin,
    <P as QuadExtParameters>::BaseField: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UniformRand for T where
    Standard: Distribution<T>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,