dirichlet_chi_vec, dirichlet_chi_vec_order
Synopsis
#include <flint/dirichlet.h>void dirichlet_chi_vec(ulong * v, const dirichlet_group_t G, const dirichlet_char_t chi, slong nv)sourcevoid dirichlet_chi_vec_order(ulong * v, const dirichlet_group_t G, const dirichlet_char_t chi, ulong order, slong nv)sourceSet v[k] to the exponent of \chi(k) for 0 \le k < \mathit{nv}, modulo G->expo or modulo order, which must be a multiple of the order of \chi; entries with \gcd(k, q) > 1 are set to DIRICHLET_CHI_NULL. The functions call the loop versions if 2\,\mathit{nv} > \varphi(q) and the primeloop versions otherwise. v[0] is DIRICHLET_CHI_NULL for q > 1, and for q = 1, where the trivial character is 1 everywhere, every entry is 0.
Guides#
Cite this page
The FLINT team, “dirichlet_chi_vec, dirichlet_chi_vec_order (dirichlet.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/dirichlet/dirichlet_chi_vec.html (generated 2026-10-20).
@misc{flint-doc-dirichlet-dirichlet-chi-vec,
author = {{The FLINT team}},
title = {{dirichlet\_chi\_vec, dirichlet\_chi\_vec\_order (dirichlet.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/dirichlet/dirichlet_chi_vec.html},
note = {Generated 2026-10-20}
}