33 #define LISTF_MIN_SIZE 100
34 #define LISTF_SIZE_INCREASE 1.25
compf_ptr arrayf_get(arrayf l, ulong pos)
Returns the pointer of the element on position pos in the list l.
bool arrayf_write(arrayf l, char *fileName, bool verbose)
Writes the list l to a CSV file with the given path fileName.
arrayf arrayf_read(char *fileName, bool verbose)
Reads a list of complex numbers from the CSV file with path fileName.
bool arrayf_add(arrayf l, compf z)
Adds the complex number z at the end of the list. The size of the list is automatically increased,...
polyfr arrayf_polyfr(arrayf l)
Returns the real polynomial with the coefficients the real parts of the complex numbers in the list l...
bool arrayf_is_real(arrayf l)
Checks if all complex numbers in the list l are real.
arrayf_struct arrayf_t[1]
Practical wrapper for arrayf_struct.
polyf arrayf_polyf(arrayf l)
Returns the polynomial with the coefficients in the list l.
arrayf arrayf_new_polyf(polyf P)
Returns the list of coefficients of the polynomial P.
long arrayf_first_nan(arrayf l)
Checks if all complex numbers in the list l are well defined.
bool arrayf_append(arrayf l, char *fileName, bool verbose)
Writes the list l to the end of a CSV file with the given path fileName.
arrayf_struct * arrayf
Convenience pointer to arrayf_struct.
arrayf arrayf_new(ulong size)
Returns a new empty list with memory size at least size.
long arrayf_first_inf(arrayf l)
Checks if there are infinite values in the list l.
bool arrayf_free(arrayf l)
Frees all the memory used by the list l, assuming the struct has been allocated with malloc(),...
arrayf arrayf_new_polyfr(polyfr P)
Returns the list of coefficients of the real polynomial P.
Definition of machine complex numbers.
compf_struct compf[1]
Practical wrapper for compf_struct.
Definition of basic types.
uint64_t ulong
ulong is uint64
Definition of complex polynomials with machine floating point coefficients.
Definition of real polynomials with machine floating point coefficients.
A variable length list of machine floating point complex numbers.
compf_ptr zi
the elements of the list
ulong size
the present capacity of the list (memory size in number of complex numbers)
ulong len
the number of complex numbers in the list
Polynomial with machine floating point complex coefficients.
Polynomial with machine floating point real coefficients.