NttReuse

Trait NttReuse 

Source
pub trait NttReuse: ConvolveSteps {
    const MULTIPLE: bool = true;

    // Required methods
    fn ntt_doubling(f: Self::F) -> Self::F;
    fn even_mul_normal_neg(f: &Self::F, g: &Self::F) -> Self::F;
    fn odd_mul_normal_neg(f: &Self::F, g: &Self::F) -> Self::F;
}

Provided Associated Constants§

Source

const MULTIPLE: bool = true

Required Methods§

Source

fn ntt_doubling(f: Self::F) -> Self::F

F(a) → F(a + [0] * a.len())

Source

fn even_mul_normal_neg(f: &Self::F, g: &Self::F) -> Self::F

F(a(x)), F(b(x)) → even(F(a(x) * b(-x)))

Source

fn odd_mul_normal_neg(f: &Self::F, g: &Self::F) -> Self::F

F(a(x)), F(b(x)) → odd(F(a(x) * b(-x)))

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§