Skip to content

Commit c6a3268

Browse files
committed
Auto-generated commit
1 parent 15aefb4 commit c6a3268

24 files changed

+31
-25
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-05-08)
7+
## Unreleased (2025-05-12)
88

99
<section class="features">
1010

@@ -20,6 +20,8 @@
2020

2121
### Bug Fixes
2222

23+
- [`9a1ee35`](https://github.com/stdlib-js/stdlib/commit/9a1ee35193c5c474720c58f34d9584f41108bc5c) - account for loop tiling when generating list of indices
24+
- [`a8bac64`](https://github.com/stdlib-js/stdlib/commit/a8bac644b23c4413a566f309b43857ad779f05cc) - check for row-major value
2325
- [`a19b8f2`](https://github.com/stdlib-js/stdlib/commit/a19b8f2405c62dd79247ef4c3a9a1cadda1f3576) - use resolved order when computing loop variables
2426
- [`71e6a7f`](https://github.com/stdlib-js/stdlib/commit/71e6a7f82bcc08d20d09772ba0e99c825be191bf) - use computed order
2527
- [`b4502fb`](https://github.com/stdlib-js/stdlib/commit/b4502fbc4da03910f86c66e68b53e93e99e3e933) - remove perf logic in order to ensure expected indices in callback
@@ -34,6 +36,9 @@
3436

3537
<details>
3638

39+
- [`65748be`](https://github.com/stdlib-js/stdlib/commit/65748bea9a961babc95ff0f63b08f785097c79f9) - **docs:** fix parameter name _(by Athan Reines)_
40+
- [`9a1ee35`](https://github.com/stdlib-js/stdlib/commit/9a1ee35193c5c474720c58f34d9584f41108bc5c) - **fix:** account for loop tiling when generating list of indices _(by Athan Reines)_
41+
- [`a8bac64`](https://github.com/stdlib-js/stdlib/commit/a8bac644b23c4413a566f309b43857ad779f05cc) - **fix:** check for row-major value _(by Athan Reines)_
3742
- [`0fb7df7`](https://github.com/stdlib-js/stdlib/commit/0fb7df7fe84102add9858f53da605a6f2e0d42a9) - **docs:** document expected properties for accessor kernels _(by Athan Reines)_
3843
- [`529687d`](https://github.com/stdlib-js/stdlib/commit/529687d72291fe7c2f717e24bffe55130375139d) - **refactor:** avoid duplicate computation _(by Athan Reines)_
3944
- [`a19b8f2`](https://github.com/stdlib-js/stdlib/commit/a19b8f2405c62dd79247ef4c3a9a1cadda1f3576) - **fix:** use resolved order when computing loop variables _(by Athan Reines)_

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ Utkarsh <http://utkarsh11105@gmail.com>
174174
Utkarsh Raj <rajutkarsh2505@gmail.com>
175175
UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>
176176
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
177+
Vara Rahul Rajana <123227543+rajanarahul93@users.noreply.github.com>
177178
Varad Gupta <varadgupta21@gmail.com>
178179
Vinit Pandit <106718914+MeastroZI@users.noreply.github.com>
179180
Vivek Maurya <vm8118134@gmail.com>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ The function accepts the following arguments:
129129

130130
The callback function is provided the following arguments:
131131

132-
- **values**: current array element.
132+
- **value**: current array element.
133133
- **indices**: current array element indices.
134134
- **arr**: the input ndarray.
135135

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/10d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ function blockedmap10d( x, y, fcn, thisArg ) { // eslint-disable-line max-statem
340340
for ( i2 = 0; i2 < S2; i2++ ) {
341341
for ( i1 = 0; i1 < S1; i1++ ) {
342342
for ( i0 = 0; i0 < S0; i0++ ) {
343-
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ i9, i8, i7, i6, i5, i4, i3, i2, i1, i0 ], idx ), x.ref );
343+
ybuf[ iy ] = 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 );
344344
ix += dx0;
345345
iy += dy0;
346346
}

lib/10d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ function blockedmap10d( x, y, fcn, thisArg ) { // eslint-disable-line max-statem
367367
for ( i2 = 0; i2 < S2; i2++ ) {
368368
for ( i1 = 0; i1 < S1; i1++ ) {
369369
for ( i0 = 0; i0 < S0; i0++ ) {
370-
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ i9, i8, i7, i6, i5, i4, i3, i2, i1, i0 ], idx ), x.ref ) );
370+
set( ybuf, iy, 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 ) );
371371
ix += dx0;
372372
iy += dy0;
373373
}

lib/2d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function blockedmap2d( x, y, fcn, thisArg ) {
178178
// Iterate over the ndarray dimensions...
179179
for ( i1 = 0; i1 < s1; i1++ ) {
180180
for ( i0 = 0; i0 < s0; i0++ ) {
181-
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ i1, i0 ], idx ), x.ref ); // eslint-disable-line max-len
181+
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ j1+i1, j0+i0 ], idx ), x.ref ); // eslint-disable-line max-len
182182
ix += dx0;
183183
iy += dy0;
184184
}

lib/2d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function blockedmap2d( x, y, fcn, thisArg ) {
205205
// Iterate over the ndarray dimensions...
206206
for ( i1 = 0; i1 < s1; i1++ ) {
207207
for ( i0 = 0; i0 < s0; i0++ ) {
208-
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ i1, i0 ], idx ), x.ref ) ); // eslint-disable-line max-len
208+
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ j1+i1, j0+i0 ], idx ), x.ref ) ); // eslint-disable-line max-len
209209
ix += dx0;
210210
iy += dy0;
211211
}

lib/3d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function blockedmap3d( x, y, fcn, thisArg ) {
200200
for ( i2 = 0; i2 < s2; i2++ ) {
201201
for ( i1 = 0; i1 < s1; i1++ ) {
202202
for ( i0 = 0; i0 < s0; i0++ ) {
203-
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ i2, i1, i0 ], idx ), x.ref ); // eslint-disable-line max-len
203+
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ j2+i2, j1+i1, j0+i0 ], idx ), x.ref ); // eslint-disable-line max-len
204204
ix += dx0;
205205
iy += dy0;
206206
}

lib/3d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function blockedmap3d( x, y, fcn, thisArg ) {
227227
for ( i2 = 0; i2 < s2; i2++ ) {
228228
for ( i1 = 0; i1 < s1; i1++ ) {
229229
for ( i0 = 0; i0 < s0; i0++ ) {
230-
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ i2, i1, i0 ], idx ), x.ref ) ); // eslint-disable-line max-len
230+
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ j2+i2, j1+i1, j0+i0 ], idx ), x.ref ) ); // eslint-disable-line max-len
231231
ix += dx0;
232232
iy += dy0;
233233
}

lib/4d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function blockedmap4d( x, y, fcn, thisArg ) { // eslint-disable-line max-stateme
220220
for ( i2 = 0; i2 < S2; i2++ ) {
221221
for ( i1 = 0; i1 < S1; i1++ ) {
222222
for ( i0 = 0; i0 < S0; i0++ ) {
223-
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ i3, i2, i1, i0 ], idx ), x.ref ); // eslint-disable-line max-len
223+
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref ); // eslint-disable-line max-len
224224
ix += dx0;
225225
iy += dy0;
226226
}

lib/4d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ function blockedmap4d( x, y, fcn, thisArg ) { // eslint-disable-line max-stateme
247247
for ( i2 = 0; i2 < S2; i2++ ) {
248248
for ( i1 = 0; i1 < S1; i1++ ) {
249249
for ( i0 = 0; i0 < S0; i0++ ) {
250-
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ i3, i2, i1, i0 ], idx ), x.ref ) ); // eslint-disable-line max-len
250+
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref ) ); // eslint-disable-line max-len
251251
ix += dx0;
252252
iy += dy0;
253253
}

lib/5d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function blockedmap5d( x, y, fcn, thisArg ) { // eslint-disable-line max-stateme
240240
for ( i2 = 0; i2 < S2; i2++ ) {
241241
for ( i1 = 0; i1 < S1; i1++ ) {
242242
for ( i0 = 0; i0 < S0; i0++ ) {
243-
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ i4, i3, i2, i1, i0 ], idx ), x.ref ); // eslint-disable-line max-len
243+
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ j4+i4, j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref ); // eslint-disable-line max-len
244244
ix += dx0;
245245
iy += dy0;
246246
}

lib/5d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function blockedmap5d( x, y, fcn, thisArg ) { // eslint-disable-line max-stateme
267267
for ( i2 = 0; i2 < S2; i2++ ) {
268268
for ( i1 = 0; i1 < S1; i1++ ) {
269269
for ( i0 = 0; i0 < S0; i0++ ) {
270-
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ i4, i3, i2, i1, i0 ], idx ), x.ref ) ); // eslint-disable-line max-len
270+
set( ybuf, iy, 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
271271
ix += dx0;
272272
iy += dy0;
273273
}

lib/6d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ function blockedmap6d( x, y, fcn, thisArg ) { // eslint-disable-line max-stateme
260260
for ( i2 = 0; i2 < S2; i2++ ) {
261261
for ( i1 = 0; i1 < S1; i1++ ) {
262262
for ( i0 = 0; i0 < S0; i0++ ) {
263-
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ i5, i4, i3, i2, i1, i0 ], idx ), x.ref );
263+
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ j5+i5, j4+i4, j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref );
264264
ix += dx0;
265265
iy += dy0;
266266
}

lib/6d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ function blockedmap6d( x, y, fcn, thisArg ) { // eslint-disable-line max-stateme
287287
for ( i2 = 0; i2 < S2; i2++ ) {
288288
for ( i1 = 0; i1 < S1; i1++ ) {
289289
for ( i0 = 0; i0 < S0; i0++ ) {
290-
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ i5, i4, i3, i2, i1, i0 ], idx ), x.ref ) );
290+
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ j5+i5, j4+i4, j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref ) );
291291
ix += dx0;
292292
iy += dy0;
293293
}

lib/7d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function blockedmap7d( x, y, fcn, thisArg ) { // eslint-disable-line max-stateme
280280
for ( i2 = 0; i2 < S2; i2++ ) {
281281
for ( i1 = 0; i1 < S1; i1++ ) {
282282
for ( i0 = 0; i0 < S0; i0++ ) {
283-
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ i6, i5, i4, i3, i2, i1, i0 ], idx ), x.ref );
283+
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ j6+i6, j5+i5, j4+i4, j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref );
284284
ix += dx0;
285285
iy += dy0;
286286
}

lib/7d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function blockedmap7d( x, y, fcn, thisArg ) { // eslint-disable-line max-stateme
307307
for ( i2 = 0; i2 < S2; i2++ ) {
308308
for ( i1 = 0; i1 < S1; i1++ ) {
309309
for ( i0 = 0; i0 < S0; i0++ ) {
310-
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ i6, i5, i4, i3, i2, i1, i0 ], idx ), x.ref ) );
310+
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ j6+i6, j5+i5, j4+i4, j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref ) );
311311
ix += dx0;
312312
iy += dy0;
313313
}

lib/8d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ function blockedmap8d( x, y, fcn, thisArg ) { // eslint-disable-line max-stateme
300300
for ( i2 = 0; i2 < S2; i2++ ) {
301301
for ( i1 = 0; i1 < S1; i1++ ) {
302302
for ( i0 = 0; i0 < S0; i0++ ) {
303-
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ i7, i6, i5, i4, i3, i2, i1, i0 ], idx ), x.ref );
303+
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ j7+i7, j6+i6, j5+i5, j4+i4, j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref );
304304
ix += dx0;
305305
iy += dy0;
306306
}

lib/8d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ function blockedmap8d( x, y, fcn, thisArg ) { // eslint-disable-line max-stateme
327327
for ( i2 = 0; i2 < S2; i2++ ) {
328328
for ( i1 = 0; i1 < S1; i1++ ) {
329329
for ( i0 = 0; i0 < S0; i0++ ) {
330-
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ i7, i6, i5, i4, i3, i2, i1, i0 ], idx ), x.ref ) );
330+
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ j7+i7, j6+i6, j5+i5, j4+i4, j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref ) );
331331
ix += dx0;
332332
iy += dy0;
333333
}

lib/9d_blocked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function blockedmap9d( x, y, fcn, thisArg ) { // eslint-disable-line max-stateme
320320
for ( i2 = 0; i2 < S2; i2++ ) {
321321
for ( i1 = 0; i1 < S1; i1++ ) {
322322
for ( i0 = 0; i0 < S0; i0++ ) {
323-
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ i8, i7, i6, i5, i4, i3, i2, i1, i0 ], idx ), x.ref );
323+
ybuf[ iy ] = fcn.call( thisArg, xbuf[ ix ], take( [ j8+i8, j7+i7, j6+i6, j5+i5, j4+i4, j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref );
324324
ix += dx0;
325325
iy += dy0;
326326
}

lib/9d_blocked_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ function blockedmap9d( x, y, fcn, thisArg ) { // eslint-disable-line max-stateme
347347
for ( i2 = 0; i2 < S2; i2++ ) {
348348
for ( i1 = 0; i1 < S1; i1++ ) {
349349
for ( i0 = 0; i0 < S0; i0++ ) {
350-
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ i8, i7, i6, i5, i4, i3, i2, i1, i0 ], idx ), x.ref ) );
350+
set( ybuf, iy, fcn.call( thisArg, get( xbuf, ix ), take( [ j8+i8, j7+i7, j6+i6, j5+i5, j4+i4, j3+i3, j2+i2, j1+i1, j0+i0 ], idx ), x.ref ) );
351351
ix += dx0;
352352
iy += dy0;
353353
}

lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ function map( arrays, fcn, thisArg ) {
252252
if ( ndims <= MAX_DIMS ) {
253253
// So long as iteration for each respective array always moves in the same direction (i.e., no mixed sign strides), we can leverage cache-optimal (i.e., normal) nested loops without resorting to blocked iteration...
254254
if ( x.accessorProtocol || y.accessorProtocol ) {
255-
return ACCESSOR_MAP[ ndims ]( x, y, ord, fcn, thisArg );
255+
return ACCESSOR_MAP[ ndims ]( x, y, ord === 1, fcn, thisArg );
256256
}
257-
return MAP[ ndims ]( x, y, ord, fcn, thisArg );
257+
return MAP[ ndims ]( x, y, ord === 1, fcn, thisArg );
258258
}
259259
// Fall-through to blocked iteration...
260260
}

0 commit comments

Comments
 (0)