Expand description
Gaussian integers in Rust.
A Gaussian integer is a complex number whose real and imaginary parts are both integers.
Macros§
- gaussint
- Creates a new
GaussianInt
.
Structs§
- Gaussian
Int - A Gaussian integer is a complex number whose real and imaginary parts are both integers.
Functions§
- get_
g_ ints - Returns an iterator of all Gaussian integers a + bi
where |a|,|b| ≤
n
. - get_
g_ primes - Returns an iterator of all Gaussian primes a + bi
where |a|,|b| ≤
n
. - get_
pos_ g_ ints - Returns an iterator of all Gaussian integers a + bi
where a is positive (or zero) and |b| ≤
n
. - get_
pos_ g_ primes - Returns an iterator of all Gaussian primes a + bi
where a is positive (or zero) and |b| ≤
n
.