Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions lib/node_modules/@stdlib/fft/base/fftpack/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
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.
Expand Down Expand Up @@ -93,7 +94,7 @@
* // returns <Float64Array>[ ~0.98, ~0.92, ~0.83, ~0.7, ~0.56, ~0.38, ~0.2, ~0.0 ]
*
* var twiddleFactors = workspace.slice( 2*N, 3*N );
* // returns <Float64Array>[ 0, ~0.707, ~0.707, 0, 0, 0, 0, 0 ]

Check failure on line 97 in lib/node_modules/@stdlib/fft/base/fftpack/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Expected entries [0,~0.707,~0.707,0,0,0,0,0], but observed [0.7071067811865476,0.7071067811865475,0,0,0,0,0,0]
*
* var factors = workspace.slice( 3*N, ( 3*N ) + 4 );
* // returns <Float64Array>[ 8, 2, 2, 4 ]
Expand Down Expand Up @@ -185,12 +186,49 @@
* // returns <Float64Array>[ ~0.98, ~0.92, ~0.83, ~0.7, ~0.56, ~0.38, ~0.2, ~0.0 ]
*
* var twiddleFactors = workspace.slice( 2*N, 3*N );
* // returns <Float64Array>[ 0, ~0.707, ~0.707, 0, 0, 0, 0, 0 ]

Check failure on line 189 in lib/node_modules/@stdlib/fft/base/fftpack/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Expected entries [0,~0.707,~0.707,0,0,0,0,0], but observed [0.7071067811865476,0.7071067811865475,0,0,0,0,0,0]
*
* var factors = workspace.slice( 3*N, ( 3*N ) + 4 );
* // returns <Float64Array>[ 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 <Float64Array>
*
* var bool = ( out === workspace );
* // returns true
*
* var sineTable = workspace.slice( 0, floor( N/2 ) );
* // returns <Float64Array>[ ~0.765, ~1.414, ~1.848 ]
*
* var twiddleFactors = workspace.slice( floor( 3*N/2 ) + 1, floor( 5*N/2 ) + 2 );
* // returns <Float64Array>[ ~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 <Float64Array>[ 8, 2, 2, 4 ]
*/
sinti: typeof sinti;
}

/**
Expand Down
Loading