32 #define ARRAY_MIN_SIZE 100
33 #define ARRAY_SIZE_INCREASE 1.25
array array_new_polyr(polyr P, prec_t prec)
Returns the array of coefficients of the real polynomial P.
array array_new_poly(poly P, prec_t prec)
Returns the array of coefficients of the polynomial P.
comp_ptr array_get(array l, ulong pos)
Returns the pointer of the element on position pos in the array l.
bool array_free(array l)
Frees all the memory used by the array l, assuming the struct has been allocated with malloc(),...
array_struct * array
Convenience pointer to array_struct.
poly array_poly(array l, prec_t prec)
Returns the polynomial with the coefficients in the array l.
bool array_write(array l, char *fileName, int digits, bool verbose)
Writes the array l to a CSV file with the given path fileName.
long array_first_nan(array l)
Checks if all complex numbers in the list l are well defined.
array_struct array_t[1]
Practical wrapper for array_struct.
bool array_add(array l, comp z, prec_t prec)
Adds the complex number z at the end of the array. The size of the array is automatically increased,...
polyr array_polyr(array l, prec_t prec)
Returns the real polynomial with the coefficients the real parts of the complex numbers in the array ...
array array_read(char *fileName, prec_t prec, bool verbose)
Reads a array of complex numbers of precision prec from the CSV file with path fileName.
bool array_append(array l, char *fileName, int digits, bool verbose)
Writes the array l to the end of a CSV file with the given path fileName.
bool array_is_real(array l)
Checks if all complex numbers in the array l are real.
long array_first_inf(array l)
Checks if there are infinite values in the list l.
array array_new(ulong size)
Returns a new empty array with memory size at least size.
Definition of MPFR complex numbers.
comp_struct comp[1]
Practical wrapper for comp_struct.
Definition of basic types.
ulong prec_t
The integer number type to use for polynomial degrees and indexes.
uint64_t ulong
ulong is uint64
Definition of complex polynomials with arbitary precision coefficients.
Definition of real polynomials with arbitary precision coefficients.
A variable length array of machine floating point complex numbers.
ulong size
the present capacity of the array (memory size in number of complex numbers)
comp_ptr zi
the elements of the array
ulong len
the number of complex numbers in the array
Multi-precision floating point complex numbers.
Polynomial with multi-precision floating point complex coefficients.
Polynomial with multi-precision floating point complex coefficients.