dirichlet_index_char, dirichlet_char_index
Synopsis
#include <flint/dirichlet.h>ulong dirichlet_index_char(const dirichlet_group_t G, const dirichlet_char_t x)sourcevoid dirichlet_char_index(dirichlet_char_t x, const dirichlet_group_t G, ulong j)sourceConvert between an element and its index j \in [0, \varphi(q)) in the lexicographic order of the logs, the mixed-radix number with digits \mathit{log}[k] in base \varphi_k.
Cite this page
The FLINT team, “dirichlet_index_char, dirichlet_char_index (dirichlet.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/dirichlet/dirichlet_index_char.html (generated 2026-10-20).
@misc{flint-doc-dirichlet-dirichlet-index-char,
author = {{The FLINT team}},
title = {{dirichlet\_index\_char, dirichlet\_char\_index (dirichlet.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/dirichlet/dirichlet_index_char.html},
note = {Generated 2026-10-20}
}