_nfloat_vec_add, _nfloat_vec_sub, _nfloat_vec_mul, _nfloat_vec_mul_scalar, _nfloat_vec_addmul_scalar, _nfloat_vec_submul_scalar
Synopsis
#include <flint/nfloat.h>int _nfloat_vec_add(nfloat_ptr res, nfloat_srcptr x, nfloat_srcptr y, slong len, gr_ctx_t ctx)sourceint _nfloat_vec_sub(nfloat_ptr res, nfloat_srcptr x, nfloat_srcptr y, slong len, gr_ctx_t ctx)sourceint _nfloat_vec_mul(nfloat_ptr res, nfloat_srcptr x, nfloat_srcptr y, slong len, gr_ctx_t ctx)sourceint _nfloat_vec_mul_scalar(nfloat_ptr res, nfloat_srcptr x, slong len, nfloat_srcptr y, gr_ctx_t ctx)sourceint _nfloat_vec_addmul_scalar(nfloat_ptr res, nfloat_srcptr x, slong len, nfloat_srcptr y, gr_ctx_t ctx)sourceint _nfloat_vec_submul_scalar(nfloat_ptr res, nfloat_srcptr x, slong len, nfloat_srcptr y, gr_ctx_t ctx)sourceElementwise sum, difference and product, product with the scalar y, and \mathit{res}_i \pm x_i y, with the same results as the scalar functions.
Cite this page
The FLINT team, “_nfloat_vec_add, _nfloat_vec_sub, _nfloat_vec_mul, _nfloat_vec_mul_scalar, _nfloat_vec_addmul_scalar, _nfloat_vec_submul_scalar (nfloat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nfloat/_nfloat_vec_add.html (generated 2026-10-20).
@misc{flint-doc-nfloat-nfloat-vec-add,
author = {{The FLINT team}},
title = {{\_nfloat\_vec\_add, \_nfloat\_vec\_sub, \_nfloat\_vec\_mul, \_nfloat\_vec\_mul\_scalar, \_nfloat\_vec\_addmul\_scalar, \_nfloat\_vec\_submul\_scalar (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_add.html},
note = {Generated 2026-10-20}
}