FLINT3.7.0-dev

dlog_table_init, dlog_table_clear, dlog_table

Synopsis#include <flint/dlog.h>
ulong dlog_table_init(dlog_table_t t, ulong a, ulong mod)source
void dlog_table_clear(dlog_table_t t)source
ulong dlog_table(const dlog_table_t t, ulong b)source

Build the table of the logarithms of the powers of a modulo mod (an array of mod words; a must be invertible, which is not checked), free it, and look up \log_a(b). The cost estimate is 1.

Cite this page

The FLINT team, “dlog_table_init, dlog_table_clear, dlog_table (dlog.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/dlog/dlog_table_init.html (generated 2026-10-20).