dlog_bsgs_clear, dlog_bsgs
Synopsis
#include <flint/dlog.h>void dlog_bsgs_clear(dlog_bsgs_t t)sourceulong dlog_bsgs(const dlog_bsgs_t t, ulong b)sourceFree the table, and return \log_a(b) by multiplying b by a^{-m} until the product is found in the table (by binary search). Throws if b is not a power of a.
Cite this page
The FLINT team, “dlog_bsgs_clear, dlog_bsgs (dlog.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/dlog/dlog_bsgs_clear.html (generated 2026-10-20).
@misc{flint-doc-dlog-dlog-bsgs-clear,
author = {{The FLINT team}},
title = {{dlog\_bsgs\_clear, dlog\_bsgs (dlog.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/dlog/dlog_bsgs_clear.html},
note = {Generated 2026-10-20}
}