_convert_block, _convert_block_1_mod
Synopsis
#include <flint/fft_small.h>void _convert_block(ulong * Xs, sd_fft_ctx_struct * Rffts, double * d, ulong dstride, ulong np, ulong Iv)sourcevoid _convert_block_1_mod(ulong * Xs, sd_fft_ctx_struct * Rffts, double * d, ulong dstride, ulong I, double p2, double p2inv)sourceFor each prime l < np, reduce block I of the data d + l \cdot dstride to [0, p_l) and store it as integers at Xs + 256 l. The second form converts only the first prime and reduces the results further modulo the double p2 (with p2inv = 1/p_2).
Cite this page
The FLINT team, “_convert_block, _convert_block_1_mod (fft_small.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fft_small/_convert_block.html (generated 2026-10-20).
@misc{flint-doc-fft-small-convert-block,
author = {{The FLINT team}},
title = {{\_convert\_block, \_convert\_block\_1\_mod (fft\_small.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fft_small/_convert_block.html},
note = {Generated 2026-10-20}
}