Skip to content

Commit 83619cf

Browse files
committed
refactor: replace number with integer
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 4308548 commit 83619cf

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,33 @@
1111

1212
Parameters
1313
----------
14-
N: number
14+
N: integer
1515
Length of the sequence.
1616

17-
M: number
17+
M: integer
1818
Number of trial divisors.
1919

2020
initial: Collection<number>
2121
Array of initial trial divisors.
2222

23-
si: number
23+
si: integer
2424
Stride length for `initial`.
2525

26-
oi: number
26+
oi: integer
2727
Starting index for `initial`.
2828

2929
out: Collection<number>
3030
Output array for storing factorization results.
3131

32-
so: number
32+
so: integer
3333
Stride length for `out`.
3434

35-
oo: number
35+
oo: integer
3636
Starting index for `out`.
3737

3838
Returns
3939
-------
40-
numFactors: number
40+
numFactors: integer
4141
Number of factors into which N was decomposed.
4242

4343
Examples

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ var floor = require( '@stdlib/math/base/special/floor' );
7676
* [ sequence_length | number_of_factors | integer_factors | unused_storage ]
7777
* ```
7878
*
79-
* @private
8079
* @param {NonNegativeInteger} N - length of the sequence
8180
* @param {NonNegativeInteger} M - number of trial divisors
8281
* @param {NonNegativeIntegerArray} initial - strided array of initial trial divisors
@@ -109,7 +108,7 @@ var floor = require( '@stdlib/math/base/special/floor' );
109108
* var f = factors.slice();
110109
* // returns [ 8, 2, 2, 4 ]
111110
*/
112-
function decompose( N, M, initial, si, oi, out, so, oo ) { // eslint-disable-line max-len
111+
function decompose( N, M, initial, si, oi, out, so, oo ) {
113112
var divisor;
114113
var ntrials;
115114
var nl;
@@ -170,7 +169,7 @@ function decompose( N, M, initial, si, oi, out, so, oo ) { // eslint-disable-lin
170169
if ( divisor === 2 && nf !== 1 ) {
171170
for ( i = 2; i <= nf; i++ ) {
172171
ib = nf - i + 2;
173-
out[ oo+((ib+1)*so) ] = out[ oo + (ib*so) ]; // eslint-disable-line max-len
172+
out[ oo+((ib+1)*so) ] = out[ oo + (ib*so) ];
174173
}
175174
out[ oo+(2*so) ] = 2;
176175
}

0 commit comments

Comments
 (0)