Skip to content

Commit 7e5e613

Browse files
committed
refcator: use Collection instead of Array
1 parent 0cfac28 commit 7e5e613

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

lib/node_modules/@stdlib/fft/base/fftpack/decompose/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
N: number
1515
Length of the sequence.
1616

17-
initial: Array<number>
17+
initial: Collection<number>
1818
Array of initial trial divisors.
1919

20-
out: Array<number>
20+
out: Collection<number>
2121
Output array for storing factorization results.
2222

2323
stride: number

lib/node_modules/@stdlib/fft/base/fftpack/decompose/docs/types/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
/// <reference types="@stdlib/types"/>
2222

23+
import { Collection } from '@stdlib/types/array';
24+
2325
/**
2426
* Factorizes a sequence length into a product of integers.
2527
*
@@ -41,7 +43,7 @@
4143
* var f = factors.slice();
4244
* // returns [ 630, 5, 2, 3, 3, 5, 7 ]
4345
*/
44-
declare function decompose( N: number, initial: Array<number>, out: Array<number>, stride: number, offset: number ): number;
46+
declare function decompose( N: number, initial: Collection<number>, out: Collection<number>, stride: number, offset: number ): number;
4547

4648

4749
// EXPORTS //

lib/node_modules/@stdlib/fft/base/fftpack/decompose/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ var isCollection = require( '@stdlib/assert/is-collection' );
8585
* @private
8686
* @param {NonNegativeInteger} N - length of the sequence
8787
* @param {NonNegativeIntegerArray} initial - array of initial trial divisors
88-
* @param {Array<number>} out - output array for storing factorization results
88+
* @param {Collection} out - output array for storing factorization results
8989
* @param {integer} stride - stride length for `out`
9090
* @param {NonNegativeInteger} offset - starting index for `out`
9191
* @returns {NonNegativeInteger} number of factors into which `N` was decomposed

0 commit comments

Comments
 (0)