dlog_vec_pindex_factorgcd
Synopsis
#include <flint/dlog.h>ulong dlog_vec_pindex_factorgcd(ulong * v, ulong nv, ulong p, nmod_t mod, ulong a, ulong na, ulong loga, ulong logm1, nmod_t order, int maxtry)sourceTries to find the logarithm of the prime from the logarithms already stored in : for up to maxtry, writes with about by a partial extended Euclidean algorithm, and if and factor over the entries of already known (after removing primes below ), returns (adjusted by logm1, the logarithm of ). Here loga is the value to use for . Returns DLOG_NOT_FOUND if no relation is found.
Cite this page
The FLINT team, “dlog_vec_pindex_factorgcd (dlog.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/dlog/dlog_vec_pindex_factorgcd.html (generated 2026-11-02).
@misc{flint-doc-dlog-dlog-vec-pindex-factorgcd,
author = {{The FLINT team}},
title = {{dlog\_vec\_pindex\_factorgcd (dlog.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/dlog/dlog_vec_pindex_factorgcd.html},
note = {Generated 2026-11-02}
}