fq_vec.h – vectors over finite fields¶
Description.
Memory management¶
Randomisation¶
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
.