fmpzi.h – Gaussian integers¶
This module allows working with elements of the ring \(\mathbb{Z}[i]\). At present, only a minimal interface is provided.
Types, macros and constants¶
-
type fmpzi_struct¶
-
type fmpzi_t¶
Contains a pairs of integers representing the real and imaginary parts. An fmpzi_t is defined as an array of length one of type fmpzi_struct, permitting an fmpzi_t to be passed by reference.
-
fmpzi_realref(x)¶
Macro giving a pointer to the real part of x.
-
fmpzi_imagref(x)¶
Macro giving a pointer to the imaginary part of x.