Definition of MPFR complex numbers.
comp_struct comp[1]
Practical wrapper for comp_struct.
Definition of basic types.
ulong deg_t
The integer number type to use for polynomial degrees and indexes.
ulong prec_t
The integer number type to use for polynomial degrees and indexes.
bool pows_free(pows zn)
Frees all the memory used by the buffer zn, assuming the struct has been allocated with malloc(),...
pows_struct pows_t[1]
Practical wrapper for pows_struct.
bool pows_set(pows zn, comp z)
Sets the complex number of which the powers will be computed by the buffer zn.
pows_struct * pows
Convenience pointer to eval_struct.
comp_ptr pows_pow_once(pows zn, deg_t pow)
Computes z^pow using repeated squares method and the cache of previously computed powers.
pows pows_new(prec_t prec, deg_t size)
Returns a new buffer of powers of complex numbers of precision prec, with initial storage space for s...
comp_ptr pows_pow(pows zn, deg_t pow)
Computes z^pow using repeated squares method and the cache of previously computed powers.
Multi-precision floating point complex numbers.
The powers of the complex number z using multi-precision floating point numbers.
prec_t prec
the precision of the powers of z, in bits
mpfr_t buf2
another buffer
bool * computed
the status of powers
comp_ptr zn
the powers of z
deg_t size
the memory size allocated
byte tps
the largest non-negative integer such that 2^tps<=size