_nfloat_vec_div, _nfloat_vec_div_scalar, _nfloat_vec_div_scalar_ui, _nfloat_vec_div_scalar_si
#include <flint/nfloat.h>int _nfloat_vec_div(nfloat_ptr res, nfloat_srcptr x, nfloat_srcptr y, slong len, gr_ctx_t ctx)sourceint _nfloat_vec_div_scalar(nfloat_ptr res, nfloat_srcptr x, slong len, nfloat_srcptr c, gr_ctx_t ctx)sourceint _nfloat_vec_div_scalar_ui(nfloat_ptr res, nfloat_srcptr x, slong len, ulong c, gr_ctx_t ctx)sourceint _nfloat_vec_div_scalar_si(nfloat_ptr res, nfloat_srcptr x, slong len, slong c, gr_ctx_t ctx)sourceElementwise quotients and quotients by a scalar, with the same results as the scalar division, except that _nfloat_vec_div_scalar for three or more words and a divisor of two or more nonzero words may differ by up to 1 ulp without directed rounding.
The elementwise division inlines the one- and two-word kernels. Division by a scalar precomputes the one-word inverse, the 3/2 inverse, or for three or more words an approximate reciprocal with one guard word, so that each quotient costs one high product of n + 1 words; with directed rounding, the truncation is certified using the guard word and otherwise recomputed by exact division.
Guides#
The FLINT team, “_nfloat_vec_div, _nfloat_vec_div_scalar, _nfloat_vec_div_scalar_ui, _nfloat_vec_div_scalar_si (nfloat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nfloat/_nfloat_vec_div.html (generated 2026-10-20).
@misc{flint-doc-nfloat-nfloat-vec-div,
author = {{The FLINT team}},
title = {{\_nfloat\_vec\_div, \_nfloat\_vec\_div\_scalar, \_nfloat\_vec\_div\_scalar\_ui, \_nfloat\_vec\_div\_scalar\_si (nfloat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nfloat/_nfloat_vec_div.html},
note = {Generated 2026-10-20}
}