FLINT3.7.0-dev

_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)source
int _nfloat_vec_sub(nfloat_ptr res, nfloat_srcptr x, nfloat_srcptr y, slong len, gr_ctx_t ctx)source
int _nfloat_vec_mul(nfloat_ptr res, nfloat_srcptr x, nfloat_srcptr y, slong len, gr_ctx_t ctx)source
int _nfloat_vec_mul_scalar(nfloat_ptr res, nfloat_srcptr x, slong len, nfloat_srcptr y, gr_ctx_t ctx)source
int _nfloat_vec_addmul_scalar(nfloat_ptr res, nfloat_srcptr x, slong len, nfloat_srcptr y, gr_ctx_t ctx)source
int _nfloat_vec_submul_scalar(nfloat_ptr res, nfloat_srcptr x, slong len, nfloat_srcptr y, gr_ctx_t ctx)source

Elementwise 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).