Skip to main content

ModDot

Trait ModDot 

Source
pub trait ModDot<RHS = Self, M = Self> {
    type Output;

    // Required method
    fn mod_dot(self, other: RHS, m: M) -> Self::Output;
}
Expand description

Computes the dot product of two vectors modulo another number $m$. The elements must already be reduced modulo $m$.

Required Associated Types§

Required Methods§

Source

fn mod_dot(self, other: RHS, m: M) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§