Trait malachite_base::num::arithmetic::traits::KroneckerSymbol
source · [−]pub trait KroneckerSymbol<RHS = Self> {
fn kronecker_symbol(self, other: RHS) -> i8;
}
Expand description
Calculates the Kronecker symbol of two numbers.
Required Methods
fn kronecker_symbol(self, other: RHS) -> i8
Implementations on Foreign Types
sourceimpl KroneckerSymbol<u8> for u8
impl KroneckerSymbol<u8> for u8
sourcefn kronecker_symbol(self, n: u8) -> i8
fn kronecker_symbol(self, n: u8) -> i8
Computes the Kronecker symbol of two numbers.
$$ f(x, y) = \left ( \frac{x}{y} \right ). $$
Worst-case complexity
$T(n) = O(n^2)$
$M(n) = O(n)$
where $T$ is time, $M$ is additional memory, and $n$ is
max(self.significant_bits(), other.significant_bits())
.
Examples
See here.
sourceimpl KroneckerSymbol<i8> for i8
impl KroneckerSymbol<i8> for i8
sourcefn kronecker_symbol(self, n: i8) -> i8
fn kronecker_symbol(self, n: i8) -> i8
Computes the Kronecker symbol of two numbers.
$$ f(x, y) = \left ( \frac{x}{y} \right ). $$
Worst-case complexity
$T(n) = O(n^2)$
$M(n) = O(n)$
where $T$ is time, $M$ is additional memory, and $n$ is
max(self.significant_bits(), other.significant_bits())
.
Examples
See here.
sourceimpl KroneckerSymbol<u16> for u16
impl KroneckerSymbol<u16> for u16
sourcefn kronecker_symbol(self, n: u16) -> i8
fn kronecker_symbol(self, n: u16) -> i8
Computes the Kronecker symbol of two numbers.
$$ f(x, y) = \left ( \frac{x}{y} \right ). $$
Worst-case complexity
$T(n) = O(n^2)$
$M(n) = O(n)$
where $T$ is time, $M$ is additional memory, and $n$ is
max(self.significant_bits(), other.significant_bits())
.
Examples
See here.
sourceimpl KroneckerSymbol<i16> for i16
impl KroneckerSymbol<i16> for i16
sourcefn kronecker_symbol(self, n: i16) -> i8
fn kronecker_symbol(self, n: i16) -> i8
Computes the Kronecker symbol of two numbers.
$$ f(x, y) = \left ( \frac{x}{y} \right ). $$
Worst-case complexity
$T(n) = O(n^2)$
$M(n) = O(n)$
where $T$ is time, $M$ is additional memory, and $n$ is
max(self.significant_bits(), other.significant_bits())
.
Examples
See here.
sourceimpl KroneckerSymbol<u32> for u32
impl KroneckerSymbol<u32> for u32
sourcefn kronecker_symbol(self, n: u32) -> i8
fn kronecker_symbol(self, n: u32) -> i8
Computes the Kronecker symbol of two numbers.
$$ f(x, y) = \left ( \frac{x}{y} \right ). $$
Worst-case complexity
$T(n) = O(n^2)$
$M(n) = O(n)$
where $T$ is time, $M$ is additional memory, and $n$ is
max(self.significant_bits(), other.significant_bits())
.
Examples
See here.
sourceimpl KroneckerSymbol<i32> for i32
impl KroneckerSymbol<i32> for i32
sourcefn kronecker_symbol(self, n: i32) -> i8
fn kronecker_symbol(self, n: i32) -> i8
Computes the Kronecker symbol of two numbers.
$$ f(x, y) = \left ( \frac{x}{y} \right ). $$
Worst-case complexity
$T(n) = O(n^2)$
$M(n) = O(n)$
where $T$ is time, $M$ is additional memory, and $n$ is
max(self.significant_bits(), other.significant_bits())
.
Examples
See here.
sourceimpl KroneckerSymbol<u64> for u64
impl KroneckerSymbol<u64> for u64
sourcefn kronecker_symbol(self, n: u64) -> i8
fn kronecker_symbol(self, n: u64) -> i8
Computes the Kronecker symbol of two numbers.
$$ f(x, y) = \left ( \frac{x}{y} \right ). $$
Worst-case complexity
$T(n) = O(n^2)$
$M(n) = O(n)$
where $T$ is time, $M$ is additional memory, and $n$ is
max(self.significant_bits(), other.significant_bits())
.
Examples
See here.
sourceimpl KroneckerSymbol<i64> for i64
impl KroneckerSymbol<i64> for i64
sourcefn kronecker_symbol(self, n: i64) -> i8
fn kronecker_symbol(self, n: i64) -> i8
Computes the Kronecker symbol of two numbers.
$$ f(x, y) = \left ( \frac{x}{y} \right ). $$
Worst-case complexity
$T(n) = O(n^2)$
$M(n) = O(n)$
where $T$ is time, $M$ is additional memory, and $n$ is
max(self.significant_bits(), other.significant_bits())
.
Examples
See here.
sourceimpl KroneckerSymbol<u128> for u128
impl KroneckerSymbol<u128> for u128
sourcefn kronecker_symbol(self, n: u128) -> i8
fn kronecker_symbol(self, n: u128) -> i8
Computes the Kronecker symbol of two numbers.
$$ f(x, y) = \left ( \frac{x}{y} \right ). $$
Worst-case complexity
$T(n) = O(n^2)$
$M(n) = O(n)$
where $T$ is time, $M$ is additional memory, and $n$ is
max(self.significant_bits(), other.significant_bits())
.
Examples
See here.
sourceimpl KroneckerSymbol<i128> for i128
impl KroneckerSymbol<i128> for i128
sourcefn kronecker_symbol(self, n: i128) -> i8
fn kronecker_symbol(self, n: i128) -> i8
Computes the Kronecker symbol of two numbers.
$$ f(x, y) = \left ( \frac{x}{y} \right ). $$
Worst-case complexity
$T(n) = O(n^2)$
$M(n) = O(n)$
where $T$ is time, $M$ is additional memory, and $n$ is
max(self.significant_bits(), other.significant_bits())
.
Examples
See here.
sourceimpl KroneckerSymbol<usize> for usize
impl KroneckerSymbol<usize> for usize
sourcefn kronecker_symbol(self, n: usize) -> i8
fn kronecker_symbol(self, n: usize) -> i8
Computes the Kronecker symbol of two numbers.
$$ f(x, y) = \left ( \frac{x}{y} \right ). $$
Worst-case complexity
$T(n) = O(n^2)$
$M(n) = O(n)$
where $T$ is time, $M$ is additional memory, and $n$ is
max(self.significant_bits(), other.significant_bits())
.
Examples
See here.
sourceimpl KroneckerSymbol<isize> for isize
impl KroneckerSymbol<isize> for isize
sourcefn kronecker_symbol(self, n: isize) -> i8
fn kronecker_symbol(self, n: isize) -> i8
Computes the Kronecker symbol of two numbers.
$$ f(x, y) = \left ( \frac{x}{y} \right ). $$
Worst-case complexity
$T(n) = O(n^2)$
$M(n) = O(n)$
where $T$ is time, $M$ is additional memory, and $n$ is
max(self.significant_bits(), other.significant_bits())
.
Examples
See here.