FLINT3.7.0-dev

_gr_vec_check_resize

Synopsis#include <flint/gr_vec.h>
int _gr_vec_check_resize(gr_vec_t res, slong n, gr_ctx_t ctx)source

For a vector context (gr_ctx_init_vector_gr_vec and gr_ctx_init_vector_space_gr_vec): resizes res to length n if the context allows all lengths, and otherwise returns GR_DOMAIN unless n is the fixed length. Here ctx is the vector context.

Cite this page

The FLINT team, “_gr_vec_check_resize (gr_vec.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_vec/_gr_vec_check_resize.html (generated 2026-10-20).