_nfloat_complex_sqr_naive, _nfloat_complex_sqr_standard, _nfloat_complex_sqr_karatsuba, _nfloat_complex_sqr, _nfloat_complex_mul_naive, _nfloat_complex_mul_standard, _nfloat_complex_mul_karatsuba
#include <flint/nfloat.h>int _nfloat_complex_sqr_naive(nfloat_ptr res1, nfloat_ptr res2, nfloat_srcptr a, nfloat_srcptr b, gr_ctx_t ctx)sourceint _nfloat_complex_sqr_standard(nfloat_ptr res1, nfloat_ptr res2, nfloat_srcptr a, nfloat_srcptr b, gr_ctx_t ctx)sourceint _nfloat_complex_sqr_karatsuba(nfloat_ptr res1, nfloat_ptr res2, nfloat_srcptr a, nfloat_srcptr b, gr_ctx_t ctx)sourceint _nfloat_complex_sqr(nfloat_ptr res1, nfloat_ptr res2, nfloat_srcptr a, nfloat_srcptr b, gr_ctx_t ctx)sourceint _nfloat_complex_mul_naive(nfloat_ptr res1, nfloat_ptr res2, nfloat_srcptr a, nfloat_srcptr b, nfloat_srcptr c, nfloat_srcptr d, gr_ctx_t ctx)sourceint _nfloat_complex_mul_standard(nfloat_ptr res1, nfloat_ptr res2, nfloat_srcptr a, nfloat_srcptr b, nfloat_srcptr c, nfloat_srcptr d, gr_ctx_t ctx)sourceint _nfloat_complex_mul_karatsuba(nfloat_ptr res1, nfloat_ptr res2, nfloat_srcptr a, nfloat_srcptr b, nfloat_srcptr c, nfloat_srcptr d, gr_ctx_t ctx)sourceSet res1 and res2 to the real and imaginary parts of (a + bi)^2 or (a + bi)(c + di) with real nfloat parts: naive with real products and sums, standard with fused dot products of two terms, and karatsuba with three real products instead of four. _nfloat_complex_sqr uses the naive version when infinities or NaN are enabled, real squarings when a part is zero, and otherwise the standard version below 20 words and the Karatsuba version from 20 words.
The FLINT team, “_nfloat_complex_sqr_naive, _nfloat_complex_sqr_standard, _nfloat_complex_sqr_karatsuba, _nfloat_complex_sqr, _nfloat_complex_mul_naive, _nfloat_complex_mul_standard, _nfloat_complex_mul_karatsuba (nfloat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nfloat/_nfloat_complex_sqr_naive.html (generated 2026-10-20).
@misc{flint-doc-nfloat-nfloat-complex-sqr-naive,
author = {{The FLINT team}},
title = {{\_nfloat\_complex\_sqr\_naive, \_nfloat\_complex\_sqr\_standard, \_nfloat\_complex\_sqr\_karatsuba, \_nfloat\_complex\_sqr, \_nfloat\_complex\_mul\_naive, \_nfloat\_complex\_mul\_standard, \_nfloat\_complex\_mul\_karatsuba (nfloat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nfloat/_nfloat_complex_sqr_naive.html},
note = {Generated 2026-10-20}
}