Skip to content

Commit 9df0606

Browse files
kgrytesaurabhraghuvanshii
authored andcommitted
refactor: rename parameter
--- 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: na - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 6ad3152 commit 9df0606

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+146
-146
lines changed

lib/node_modules/@stdlib/ndarray/base/unary-accumulate/lib/0d.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @param {NonNegativeInteger} x.offset - index offset
3333
* @param {string} x.order - specifies whether `x` is row-major (C-style) or column-major (Fortran-style)
3434
* @param {*} initial - initial value
35-
* @param {Callback} accumulator - callback function
35+
* @param {Callback} clbk - callback function
3636
* @returns {*} result
3737
*
3838
* @example
@@ -68,8 +68,8 @@
6868
* var v = accumulate0d( x, 0.0, add );
6969
* // returns 2.0
7070
*/
71-
function accumulate0d( x, initial, accumulator ) {
72-
return accumulator( initial, x.data[ x.offset ] );
71+
function accumulate0d( x, initial, clbk ) {
72+
return clbk( initial, x.data[ x.offset ] );
7373
}
7474

7575

lib/node_modules/@stdlib/ndarray/base/unary-accumulate/lib/0d_accessors.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @param {string} x.order - specifies whether `x` is row-major (C-style) or column-major (Fortran-style)
3434
* @param {Array<Function>} x.accessors - data buffer accessors
3535
* @param {*} initial - initial value
36-
* @param {Callback} accumulator - callback function
36+
* @param {Callback} clbk - callback function
3737
* @returns {*} result
3838
*
3939
* @example
@@ -88,8 +88,8 @@
8888
* var im = imagf( v );
8989
* // returns 4.0
9090
*/
91-
function accumulate0d( x, initial, accumulator ) {
92-
return accumulator( initial, x.accessors[ 0 ]( x.data, x.offset ) );
91+
function accumulate0d( x, initial, clbk ) {
92+
return clbk( initial, x.accessors[ 0 ]( x.data, x.offset ) );
9393
}
9494

9595

lib/node_modules/@stdlib/ndarray/base/unary-accumulate/lib/10d.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
/* eslint-disable max-depth */
19+
/* eslint-disable max-depth, node/callback-return */
2020

2121
'use strict';
2222

@@ -34,7 +34,7 @@
3434
* @param {NonNegativeInteger} x.offset - index offset
3535
* @param {string} x.order - specifies whether `x` is row-major (C-style) or column-major (Fortran-style)
3636
* @param {*} initial - initial value
37-
* @param {Callback} accumulator - callback function
37+
* @param {Callback} clbk - callback function
3838
* @returns {*} result
3939
*
4040
* @example
@@ -70,7 +70,7 @@
7070
* var v = accumulate10d( x, 0.0, add );
7171
* // returns 39.0
7272
*/
73-
function accumulate10d( x, initial, accumulator ) { // eslint-disable-line max-statements
73+
function accumulate10d( x, initial, clbk ) { // eslint-disable-line max-statements
7474
var xbuf;
7575
var dx0;
7676
var dx1;
@@ -177,7 +177,7 @@ function accumulate10d( x, initial, accumulator ) { // eslint-disable-line max-s
177177
for ( i2 = 0; i2 < S2; i2++ ) {
178178
for ( i1 = 0; i1 < S1; i1++ ) {
179179
for ( i0 = 0; i0 < S0; i0++ ) {
180-
acc = accumulator( acc, xbuf[ ix ] ); // eslint-disable-line max-len
180+
acc = clbk( acc, xbuf[ ix ] );
181181
ix += dx0;
182182
}
183183
ix += dx1;

lib/node_modules/@stdlib/ndarray/base/unary-accumulate/lib/10d_accessors.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
/* eslint-disable max-depth */
19+
/* eslint-disable max-depth, node/callback-return */
2020

2121
'use strict';
2222

@@ -35,7 +35,7 @@
3535
* @param {string} x.order - specifies whether `x` is row-major (C-style) or column-major (Fortran-style)
3636
* @param {Array<Function>} x.accessors - data buffer accessors
3737
* @param {*} initial - initial value
38-
* @param {Callback} accumulator - callback function
38+
* @param {Callback} clbk - callback function
3939
* @returns {*} result
4040
*
4141
* @example
@@ -90,7 +90,7 @@
9090
* var im = imagf( v );
9191
* // returns 20.0
9292
*/
93-
function accumulate10d( x, initial, accumulator ) { // eslint-disable-line max-statements
93+
function accumulate10d( x, initial, clbk ) { // eslint-disable-line max-statements
9494
var xbuf;
9595
var get;
9696
var dx0;
@@ -201,7 +201,7 @@ function accumulate10d( x, initial, accumulator ) { // eslint-disable-line max-s
201201
for ( i2 = 0; i2 < S2; i2++ ) {
202202
for ( i1 = 0; i1 < S1; i1++ ) {
203203
for ( i0 = 0; i0 < S0; i0++ ) {
204-
acc = accumulator( acc, get( xbuf, ix ) ); // eslint-disable-line max-len
204+
acc = clbk( acc, get( xbuf, ix ) );
205205
ix += dx0;
206206
}
207207
ix += dx1;

lib/node_modules/@stdlib/ndarray/base/unary-accumulate/lib/10d_blocked.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
/* eslint-disable max-depth, max-len */
19+
/* eslint-disable max-depth, max-len, node/callback-return */
2020

2121
'use strict';
2222

@@ -40,7 +40,7 @@ var blockSize = require( '@stdlib/ndarray/base/nullary-tiling-block-size' );
4040
* @param {NonNegativeInteger} x.offset - index offset
4141
* @param {string} x.order - specifies whether `x` is row-major (C-style) or column-major (Fortran-style)
4242
* @param {*} initial - initial value
43-
* @param {Callback} accumulator - callback function
43+
* @param {Callback} clbk - callback function
4444
* @returns {*} result
4545
*
4646
* @example
@@ -76,7 +76,7 @@ var blockSize = require( '@stdlib/ndarray/base/nullary-tiling-block-size' );
7676
* var v = blockedaccumulate10d( x, 0.0, add );
7777
* // returns 39.0
7878
*/
79-
function blockedaccumulate10d( x, initial, accumulator ) { // eslint-disable-line max-statements, max-lines-per-function
79+
function blockedaccumulate10d( x, initial, clbk ) { // eslint-disable-line max-statements, max-lines-per-function
8080
var bsize;
8181
var xbuf;
8282
var dx0;
@@ -272,7 +272,7 @@ function blockedaccumulate10d( x, initial, accumulator ) { // eslint-disable-lin
272272
for ( i2 = 0; i2 < s2; i2++ ) {
273273
for ( i1 = 0; i1 < s1; i1++ ) {
274274
for ( i0 = 0; i0 < s0; i0++ ) {
275-
acc = accumulator( acc, xbuf[ ix ] );
275+
acc = clbk( acc, xbuf[ ix ] );
276276
ix += dx0;
277277
}
278278
ix += dx1;

lib/node_modules/@stdlib/ndarray/base/unary-accumulate/lib/10d_blocked_accessors.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
/* eslint-disable max-depth, max-len */
19+
/* eslint-disable max-depth, max-len, node/callback-return */
2020

2121
'use strict';
2222

@@ -41,7 +41,7 @@ var blockSize = require( '@stdlib/ndarray/base/nullary-tiling-block-size' );
4141
* @param {string} x.order - specifies whether `x` is row-major (C-style) or column-major (Fortran-style)
4242
* @param {Array<Function>} x.accessors - data buffer accessors
4343
* @param {*} initial - initial value
44-
* @param {Callback} accumulator - callback function
44+
* @param {Callback} clbk - callback function
4545
* @returns {*} result
4646
*
4747
* @example
@@ -96,7 +96,7 @@ var blockSize = require( '@stdlib/ndarray/base/nullary-tiling-block-size' );
9696
* var im = imagf( v );
9797
* // returns 20.0
9898
*/
99-
function blockedaccumulate10d( x, initial, accumulator ) { // eslint-disable-line max-statements, max-lines-per-function
99+
function blockedaccumulate10d( x, initial, clbk ) { // eslint-disable-line max-statements, max-lines-per-function
100100
var bsize;
101101
var xbuf;
102102
var get;
@@ -296,7 +296,7 @@ function blockedaccumulate10d( x, initial, accumulator ) { // eslint-disable-lin
296296
for ( i2 = 0; i2 < s2; i2++ ) {
297297
for ( i1 = 0; i1 < s1; i1++ ) {
298298
for ( i0 = 0; i0 < s0; i0++ ) {
299-
acc = accumulator( acc, get( xbuf, ix ) );
299+
acc = clbk( acc, get( xbuf, ix ) );
300300
ix += dx0;
301301
}
302302
ix += dx1;

lib/node_modules/@stdlib/ndarray/base/unary-accumulate/lib/1d.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @param {NonNegativeInteger} x.offset - index offset
3333
* @param {string} x.order - specifies whether `x` is row-major (C-style) or column-major (Fortran-style)
3434
* @param {*} initial - initial value
35-
* @param {Callback} accumulator - callback function
35+
* @param {Callback} clbk - callback function
3636
* @returns {*} result
3737
*
3838
* @example
@@ -68,7 +68,7 @@
6868
* var v = accumulate1d( x, 0.0, add );
6969
* // returns 20.0
7070
*/
71-
function accumulate1d( x, initial, accumulator ) {
71+
function accumulate1d( x, initial, clbk ) {
7272
var xbuf;
7373
var dx0;
7474
var acc;
@@ -93,7 +93,7 @@ function accumulate1d( x, initial, accumulator ) {
9393

9494
// Iterate over the ndarray dimensions...
9595
for ( i0 = 0; i0 < S0; i0++ ) {
96-
acc = accumulator( acc, xbuf[ ix ] );
96+
acc = clbk( acc, xbuf[ ix ] ); // eslint-disable-line node/callback-return
9797
ix += dx0;
9898
}
9999
return acc;

lib/node_modules/@stdlib/ndarray/base/unary-accumulate/lib/1d_accessors.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @param {string} x.order - specifies whether `x` is row-major (C-style) or column-major (Fortran-style)
3434
* @param {Array<Function>} x.accessors - data buffer accessors
3535
* @param {*} initial - initial value
36-
* @param {Callback} accumulator - callback function
36+
* @param {Callback} clbk - callback function
3737
* @returns {*} result
3838
*
3939
* @example
@@ -88,7 +88,7 @@
8888
* var im = imagf( v );
8989
* // returns 20.0
9090
*/
91-
function accumulate1d( x, initial, accumulator ) {
91+
function accumulate1d( x, initial, clbk ) {
9292
var xbuf;
9393
var get;
9494
var dx0;
@@ -117,7 +117,7 @@ function accumulate1d( x, initial, accumulator ) {
117117

118118
// Iterate over the ndarray dimensions...
119119
for ( i0 = 0; i0 < S0; i0++ ) {
120-
acc = accumulator( acc, get( xbuf, ix ) );
120+
acc = clbk( acc, get( xbuf, ix ) ); // eslint-disable-line node/callback-return
121121
ix += dx0;
122122
}
123123
return acc;

lib/node_modules/@stdlib/ndarray/base/unary-accumulate/lib/2d.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @param {NonNegativeInteger} x.offset - index offset
3333
* @param {string} x.order - specifies whether `x` is row-major (C-style) or column-major (Fortran-style)
3434
* @param {*} initial - initial value
35-
* @param {Callback} accumulator - callback function
35+
* @param {Callback} clbk - callback function
3636
* @returns {*} result
3737
*
3838
* @example
@@ -68,7 +68,7 @@
6868
* var v = accumulate2d( x, 0.0, add );
6969
* // returns 18.0
7070
*/
71-
function accumulate2d( x, initial, accumulator ) {
71+
function accumulate2d( x, initial, clbk ) {
7272
var xbuf;
7373
var dx0;
7474
var dx1;
@@ -111,7 +111,7 @@ function accumulate2d( x, initial, accumulator ) {
111111
// Iterate over the ndarray dimensions...
112112
for ( i1 = 0; i1 < S1; i1++ ) {
113113
for ( i0 = 0; i0 < S0; i0++ ) {
114-
acc = accumulator( acc, xbuf[ ix ] );
114+
acc = clbk( acc, xbuf[ ix ] ); // eslint-disable-line node/callback-return
115115
ix += dx0;
116116
}
117117
ix += dx1;

lib/node_modules/@stdlib/ndarray/base/unary-accumulate/lib/2d_accessors.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @param {string} x.order - specifies whether `x` is row-major (C-style) or column-major (Fortran-style)
3434
* @param {Array<Function>} x.accessors - data buffer accessors
3535
* @param {*} initial - initial value
36-
* @param {Callback} accumulator - callback function
36+
* @param {Callback} clbk - callback function
3737
* @returns {*} result
3838
*
3939
* @example
@@ -88,7 +88,7 @@
8888
* var im = imagf( v );
8989
* // returns 20.0
9090
*/
91-
function accumulate2d( x, initial, accumulator ) {
91+
function accumulate2d( x, initial, clbk ) {
9292
var xbuf;
9393
var get;
9494
var dx0;
@@ -135,7 +135,7 @@ function accumulate2d( x, initial, accumulator ) {
135135
// Iterate over the ndarray dimensions...
136136
for ( i1 = 0; i1 < S1; i1++ ) {
137137
for ( i0 = 0; i0 < S0; i0++ ) {
138-
acc = accumulator( acc, get( xbuf, ix ) );
138+
acc = clbk( acc, get( xbuf, ix ) ); // eslint-disable-line node/callback-return
139139
ix += dx0;
140140
}
141141
ix += dx1;

0 commit comments

Comments
 (0)