From 84ea544da8a0108f23a867a87108696fc45551bb Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Wed, 8 Jul 2026 03:12:52 +0000 Subject: [PATCH] feat: update `fft/base/fftpack` TypeScript declarations Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> --- .../fft/base/fftpack/docs/types/index.d.ts | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/lib/node_modules/@stdlib/fft/base/fftpack/docs/types/index.d.ts b/lib/node_modules/@stdlib/fft/base/fftpack/docs/types/index.d.ts index 02f93f45cd7c..f1f67ff85559 100644 --- a/lib/node_modules/@stdlib/fft/base/fftpack/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/fft/base/fftpack/docs/types/index.d.ts @@ -25,6 +25,7 @@ import cosqi = require( '@stdlib/fft/base/fftpack/cosqi' ); import decompose = require( '@stdlib/fft/base/fftpack/decompose' ); import rffti = require( '@stdlib/fft/base/fftpack/rffti' ); import sinqi = require( '@stdlib/fft/base/fftpack/sinqi' ); +import sinti = require( '@stdlib/fft/base/fftpack/sinti' ); /** * Interface describing the `fftpack` namespace. @@ -191,6 +192,43 @@ interface Namespace { * // returns [ 8, 2, 2, 4 ] */ sinqi: typeof sinqi; + + /** + * Initializes a workspace array for performing a sine transform. + * + * ## Notes + * + * - The workspace array should have a length of at least `( 2.5*N ) + 34` elements. + * + * @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 Float64Array = require( '@stdlib/array/float64' ); + * var floor = require( '@stdlib/math/base/special/floor' ); + * + * var N = 7; + * var workspace = new Float64Array( floor( 2.5*N ) + 34 ); + * + * var out = ns.sinti( N, workspace, 1, 0 ); + * // returns + * + * var bool = ( out === workspace ); + * // returns true + * + * var sineTable = workspace.slice( 0, floor( N/2 ) ); + * // returns [ ~0.765, ~1.414, ~1.848 ] + * + * var twiddleFactors = workspace.slice( floor( 3*N/2 ) + 1, floor( 5*N/2 ) + 2 ); + * // returns [ ~0.707, ~0.707, 0, 0, 0, 0, 0, 0 ] + * + * var factors = workspace.slice( floor( 5*N/2 ) + 2, floor( 5*N/2 ) + 2 + 4 ); + * // returns [ 8, 2, 2, 4 ] + */ + sinti: typeof sinti; } /**