fq_vec.h – vectors over finite fields¶
Memory management¶
Randomisation¶
-
void _fq_vec_randtest(fq_struct *f, flint_rand_t state, slong len, const fq_ctx_t ctx)¶
Sets the entries of a vector of the given length to elements of the finite field.
Input and output¶
-
int _fq_vec_fprint(FILE *file, const fq_struct *vec, slong len, const fq_ctx_t ctx)¶
Prints the vector of given length to the stream
file
. The format is the length followed by two spaces, then a space separated list of coefficients. If the length is zero, only \(0\) is printed.In case of success, returns a positive value. In case of failure, returns a non-positive value.
Assignment and basic manipulation¶
-
void _fq_vec_set(fq_struct *vec1, const fq_struct *vec2, slong len2, const fq_ctx_t ctx)¶
Makes a copy of
(vec2, len2)
intovec1
.