From 924959bb924a5faf6b0af4122a0e000105b00b06 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Wed, 26 Aug 2026 02:36:29 +0000 Subject: [PATCH] feat: update `fft/base/fftpack/float32` TypeScript declarations Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> --- .../fftpack/float32/docs/types/index.d.ts | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/lib/node_modules/@stdlib/fft/base/fftpack/float32/docs/types/index.d.ts b/lib/node_modules/@stdlib/fft/base/fftpack/float32/docs/types/index.d.ts index 43228e5cbb46..8f6d7a6d49ed 100644 --- a/lib/node_modules/@stdlib/fft/base/fftpack/float32/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/fft/base/fftpack/float32/docs/types/index.d.ts @@ -21,6 +21,7 @@ /* eslint-disable max-lines */ import decompose = require( '@stdlib/fft/base/fftpack/float32/decompose' ); +import rffti = require( '@stdlib/fft/base/fftpack/float32/rffti' ); /** * Interface describing the `float32` namespace. @@ -49,6 +50,40 @@ interface Namespace { * // returns 2 */ decompose: typeof decompose; + + /** + * Initializes a single-precision floating-point workspace array for performing a real-valued Fourier transform. + * + * ## Notes + * + * - The workspace array should have a length of at least `( 2*N ) + 34` elements. + * - For single-point sequences (N=1), the function returns immediately as the FFT is the identity operation. + * + * @param N - length of the sequence + * @param workspace - workspace array + * @param strideW - stride length for `workspace` + * @param offsetW - starting index for `workspace` + * @returns workspace array + * + * @example + * var Float32Array = require( '@stdlib/array/float32' ); + * + * var N = 8; + * var workspace = new Float32Array( ( 2*N ) + 34 ); + * + * var out = ns.rffti( N, workspace, 1, 0 ); + * // returns + * + * var bool = ( out === workspace ); + * // returns true + * + * var twiddleFactors = workspace.slice( N, 2*N ); + * // returns [ ~0.707, ~0.707, 0, 0, 0, 0, 0, 0 ] + * + * var factors = workspace.slice( 2*N, ( 2*N ) + 4 ); + * // returns [ 8, 2, 2, 4 ] + */ + rffti: typeof rffti; } /**