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
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import cffti = require( '@stdlib/fft/base/fftpack/generic/cffti' );
import cosqi = require( '@stdlib/fft/base/fftpack/generic/cosqi' );
import costi = require( '@stdlib/fft/base/fftpack/generic/costi' );
import decompose = require( '@stdlib/fft/base/fftpack/generic/decompose' );
import rfftf = require( '@stdlib/fft/base/fftpack/generic/rfftf' );
import rffti = require( '@stdlib/fft/base/fftpack/generic/rffti' );
import sinqi = require( '@stdlib/fft/base/fftpack/generic/sinqi' );
import sinti = require( '@stdlib/fft/base/fftpack/generic/sinti' );
Expand Down Expand Up @@ -160,6 +161,34 @@ interface Namespace {
*/
decompose: typeof decompose;

/**
* Computes the forward discrete Fourier transform (DFT) of a real-valued sequence.
*
* @param N - length of the sequence to transform
* @param r - input array
* @param strideR - stride length for `r`
* @param offsetR - starting index for `r`
* @param w - workspace array containing pre-computed values
* @param strideW - stride length for `w`
* @param offsetW - starting index for `w`
* @returns input array
*
* @example
* var Float64Array = require( '@stdlib/array/float64' );
* var rffti = require( '@stdlib/fft/base/fftpack/generic/rffti' );
*
* var N = 4;
*
* var w = new Float64Array( ( 2*N ) + 34 );
* rffti( N, w, 1, 0 );
*
* var r = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
*
* ns.rfftf( N, r, 1, 0, w, 1, 0 );
* // r => <Float64Array>[ 10.0, -2.0, 2.0, -2.0 ]
*/
rfftf: typeof rfftf;

/**
* Initializes a workspace array for performing a real-valued Fourier transform.
*
Expand Down Expand Up @@ -269,7 +298,7 @@ interface Namespace {
}

/**
* FFTPACK routines for fast Fourier transforms for "generic" collections.
* FFTPACK routines for fast Fourier transforms on generic collections.
*/
declare var ns: Namespace;

Expand Down