Skip to content

Commit 99be29d

Browse files
committed
fix: account for loop tiling when generating list of indices
--- 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 9a1ee35 commit 99be29d

18 files changed

+18
-18
lines changed

lib/node_modules/@stdlib/ndarray/base/for-each/lib/10d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function blockedforEach10d( x, fcn, thisArg ) { // eslint-disable-line max-state
271271
for ( i2 = 0; i2 < s2; i2++ ) {
272272
for ( i1 = 0; i1 < s1; i1++ ) {
273273
for ( i0 = 0; i0 < s0; i0++ ) {
274-
fcn.call( thisArg, xbuf[ ix ], take( [ i9, i8, i7, i6, i5, i4, i3, i2, i1, i0 ], idx ), x.ref );
274+
fcn.call( thisArg, xbuf[ ix ], take( [ j9+i9, j8+i8, j7+i7, j6+i6, j5+i5, j4+i4, j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref );
275275
ix += dx0;
276276
}
277277
ix += dx1;

lib/node_modules/@stdlib/ndarray/base/for-each/lib/10d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ function blockedforEach10d( x, fcn, thisArg ) { // eslint-disable-line max-state
289289
for ( i2 = 0; i2 < s2; i2++ ) {
290290
for ( i1 = 0; i1 < s1; i1++ ) {
291291
for ( i0 = 0; i0 < s0; i0++ ) {
292-
fcn.call( thisArg, get( xbuf, ix ), take( [ i9, i8, i7, i6, i5, i4, i3, i2, i1, i0 ], idx ), x.ref );
292+
fcn.call( thisArg, get( xbuf, ix ), take( [ j9+i9, j8+i8, j7+i7, j6+i6, j5+i5, j4+i4, j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref );
293293
ix += dx0;
294294
}
295295
ix += dx1;

lib/node_modules/@stdlib/ndarray/base/for-each/lib/2d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function blockedforEach2d( x, fcn, thisArg ) {
141141
// Iterate over the ndarray dimensions...
142142
for ( i1 = 0; i1 < s1; i1++ ) {
143143
for ( i0 = 0; i0 < s0; i0++ ) {
144-
fcn.call( thisArg, xbuf[ ix ], take( [ i1, i0 ], idx ), x.ref ); // eslint-disable-line max-len
144+
fcn.call( thisArg, xbuf[ ix ], take( [ j1+i1, j0+i0 ], idx ), x.ref ); // eslint-disable-line max-len
145145
ix += dx0;
146146
}
147147
ix += dx1;

lib/node_modules/@stdlib/ndarray/base/for-each/lib/2d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function blockedforEach2d( x, fcn, thisArg ) {
159159
// Iterate over the ndarray dimensions...
160160
for ( i1 = 0; i1 < s1; i1++ ) {
161161
for ( i0 = 0; i0 < s0; i0++ ) {
162-
fcn.call( thisArg, get( xbuf, ix ), take( [ i1, i0 ], idx ), x.ref ); // eslint-disable-line max-len
162+
fcn.call( thisArg, get( xbuf, ix ), take( [ j1+i1, j0+i0 ], idx ), x.ref ); // eslint-disable-line max-len
163163
ix += dx0;
164164
}
165165
ix += dx1;

lib/node_modules/@stdlib/ndarray/base/for-each/lib/3d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function blockedforEach3d( x, fcn, thisArg ) {
159159
for ( i2 = 0; i2 < s2; i2++ ) {
160160
for ( i1 = 0; i1 < s1; i1++ ) {
161161
for ( i0 = 0; i0 < s0; i0++ ) {
162-
fcn.call( thisArg, xbuf[ ix ], take( [ i2, i1, i0 ], idx ), x.ref ); // eslint-disable-line max-len
162+
fcn.call( thisArg, xbuf[ ix ], take( [ j2+i2, j1+i1, j0+i0 ], idx ), x.ref ); // eslint-disable-line max-len
163163
ix += dx0;
164164
}
165165
ix += dx1;

lib/node_modules/@stdlib/ndarray/base/for-each/lib/3d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function blockedforEach3d( x, fcn, thisArg ) {
177177
for ( i2 = 0; i2 < s2; i2++ ) {
178178
for ( i1 = 0; i1 < s1; i1++ ) {
179179
for ( i0 = 0; i0 < s0; i0++ ) {
180-
fcn.call( thisArg, get( xbuf, ix ), take( [ i2, i1, i0 ], idx ), x.ref ); // eslint-disable-line max-len
180+
fcn.call( thisArg, get( xbuf, ix ), take( [ j2+i2, j1+i1, j0+i0 ], idx ), x.ref ); // eslint-disable-line max-len
181181
ix += dx0;
182182
}
183183
ix += dx1;

lib/node_modules/@stdlib/ndarray/base/for-each/lib/4d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function blockedforEach4d( x, fcn, thisArg ) {
175175
for ( i2 = 0; i2 < s2; i2++ ) {
176176
for ( i1 = 0; i1 < s1; i1++ ) {
177177
for ( i0 = 0; i0 < s0; i0++ ) {
178-
fcn.call( thisArg, xbuf[ ix ], take( [ i3, i2, i1, i0 ], idx ), x.ref ); // eslint-disable-line max-len
178+
fcn.call( thisArg, xbuf[ ix ], take( [ j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref ); // eslint-disable-line max-len
179179
ix += dx0;
180180
}
181181
ix += dx1;

lib/node_modules/@stdlib/ndarray/base/for-each/lib/4d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function blockedforEach4d( x, fcn, thisArg ) {
193193
for ( i2 = 0; i2 < s2; i2++ ) {
194194
for ( i1 = 0; i1 < s1; i1++ ) {
195195
for ( i0 = 0; i0 < s0; i0++ ) {
196-
fcn.call( thisArg, get( xbuf, ix ), take( [ i3, i2, i1, i0 ], idx ), x.ref ); // eslint-disable-line max-len
196+
fcn.call( thisArg, get( xbuf, ix ), take( [ j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref ); // eslint-disable-line max-len
197197
ix += dx0;
198198
}
199199
ix += dx1;

lib/node_modules/@stdlib/ndarray/base/for-each/lib/5d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function blockedforEach5d( x, fcn, thisArg ) {
191191
for ( i2 = 0; i2 < s2; i2++ ) {
192192
for ( i1 = 0; i1 < s1; i1++ ) {
193193
for ( i0 = 0; i0 < s0; i0++ ) {
194-
fcn.call( thisArg, xbuf[ ix ], take( [ i4, i3, i2, i1, i0 ], idx ), x.ref ); // eslint-disable-line max-len
194+
fcn.call( thisArg, xbuf[ ix ], take( [ j4+i4, j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref ); // eslint-disable-line max-len
195195
ix += dx0;
196196
}
197197
ix += dx1;

lib/node_modules/@stdlib/ndarray/base/for-each/lib/5d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function blockedforEach5d( x, fcn, thisArg ) {
209209
for ( i2 = 0; i2 < s2; i2++ ) {
210210
for ( i1 = 0; i1 < s1; i1++ ) {
211211
for ( i0 = 0; i0 < s0; i0++ ) {
212-
fcn.call( thisArg, get( xbuf, ix ), take( [ i4, i3, i2, i1, i0 ], idx ), x.ref ); // eslint-disable-line max-len
212+
fcn.call( thisArg, get( xbuf, ix ), take( [ j4+i4, j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref ); // eslint-disable-line max-len
213213
ix += dx0;
214214
}
215215
ix += dx1;

0 commit comments

Comments
 (0)