fft_small_op_init, fft_small_op_init_borrowed, fft_small_op_sizeof_data, fft_small_op_clear
#include <flint/fft_small.h>void fft_small_op_init(fft_small_op_t X, const fft_small_plan_t P)sourcevoid fft_small_op_init_borrowed(fft_small_op_t X, const fft_small_plan_t P, double * data)sourceulong fft_small_op_sizeof_data(const fft_small_plan_t P)sourcevoid fft_small_op_clear(fft_small_op_t X)sourceInitialise an operand for the plan P, with storage allocated by the operand or provided by the caller, and free it. The borrowed storage must hold fft_small_op_sizeof_data(P) bytes, be aligned to 4096 bytes and outlive the operand; fft_small_op_clear does not free it.
The data size is \mathtt{np} \cdot \mathtt{stride} \cdot 8 bytes rounded up to 4096. For transforms shorter than one block the padding up to the stride is zeroed by both initialisers. An operand can be used with any plan that has the same primes, depth and stride, which is checked only by assertions.
Guides#
The FLINT team, “fft_small_op_init, fft_small_op_init_borrowed, fft_small_op_sizeof_data, fft_small_op_clear (fft_small.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fft_small/fft_small_op_init.html (generated 2026-10-20).
@misc{flint-doc-fft-small-fft-small-op-init,
author = {{The FLINT team}},
title = {{fft\_small\_op\_init, fft\_small\_op\_init\_borrowed, fft\_small\_op\_sizeof\_data, fft\_small\_op\_clear (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/fft_small_op_init.html},
note = {Generated 2026-10-20}
}