nfloat_complex_init, nfloat_complex_clear, nfloat_complex_swap, nfloat_complex_set, nfloat_complex_zero, nfloat_complex_one, nfloat_complex_neg_one, nfloat_complex_i, nfloat_complex_pi
Synopsis
#include <flint/nfloat.h>void nfloat_complex_init(nfloat_complex_ptr res, gr_ctx_t ctx)sourcevoid nfloat_complex_clear(nfloat_complex_ptr res, gr_ctx_t ctx)sourcevoid nfloat_complex_swap(nfloat_complex_ptr x, nfloat_complex_ptr y, gr_ctx_t ctx)sourceint nfloat_complex_set(nfloat_complex_ptr res, nfloat_complex_ptr x, gr_ctx_t ctx)sourceint nfloat_complex_zero(nfloat_complex_ptr res, gr_ctx_t ctx)sourceint nfloat_complex_one(nfloat_complex_ptr res, gr_ctx_t ctx)sourceint nfloat_complex_neg_one(nfloat_complex_ptr res, gr_ctx_t ctx)sourceint nfloat_complex_i(nfloat_complex_ptr res, gr_ctx_t ctx)sourceint nfloat_complex_pi(nfloat_complex_ptr res, gr_ctx_t ctx)sourceMemory management and constants, as for the real numbers; i sets res to the imaginary unit.
Cite this page
The FLINT team, “nfloat_complex_init, nfloat_complex_clear, nfloat_complex_swap, nfloat_complex_set, nfloat_complex_zero, nfloat_complex_one, nfloat_complex_neg_one, nfloat_complex_i, nfloat_complex_pi (nfloat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nfloat/nfloat_complex_init.html (generated 2026-10-20).
@misc{flint-doc-nfloat-nfloat-complex-init,
author = {{The FLINT team}},
title = {{nfloat\_complex\_init, nfloat\_complex\_clear, nfloat\_complex\_swap, nfloat\_complex\_set, nfloat\_complex\_zero, nfloat\_complex\_one, nfloat\_complex\_neg\_one, nfloat\_complex\_i, nfloat\_complex\_pi (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_init.html},
note = {Generated 2026-10-20}
}