Skip to content

Commit 0c79101

Browse files
committed
Auto-generated commit
1 parent ac5ab11 commit 0c79101

21 files changed

+41
-39
lines changed

CHANGELOG.md

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

7-
## Unreleased (2024-08-01)
7+
## Unreleased (2024-08-16)
88

99
<section class="features">
1010

@@ -20,6 +20,7 @@
2020

2121
### Bug Fixes
2222

23+
- [`1375823`](https://github.com/stdlib-js/stdlib/commit/1375823f58c93aeac8c687147f40e78d52adec04) - use computed order and fix strides in examples
2324
- [`cf3f92e`](https://github.com/stdlib-js/stdlib/commit/cf3f92eddd20ec1a4106c8a34f7d7705a9a99dbc) - update include paths
2425

2526
</section>
@@ -32,6 +33,7 @@
3233

3334
<details>
3435

36+
- [`1375823`](https://github.com/stdlib-js/stdlib/commit/1375823f58c93aeac8c687147f40e78d52adec04) - **fix:** use computed order and fix strides in examples _(by Athan Reines)_
3537
- [`5fe7f2e`](https://github.com/stdlib-js/stdlib/commit/5fe7f2e437b3bf7ff82db46944d8f928c7fc4090) - **style:** remove backticks _(by Athan Reines)_
3638
- [`dab89ca`](https://github.com/stdlib-js/stdlib/commit/dab89ca7cb89b404eef61ae48cfb84afec543222) - **style:** remove backticks _(by Athan Reines)_
3739
- [`8d4c46b`](https://github.com/stdlib-js/stdlib/commit/8d4c46b10ca912401e0ff0caa37a17cd3c443c2f) - **refactor:** update paths _(by Athan Reines)_
@@ -152,8 +154,7 @@ A total of 2 people contributed to this release. Thank you to the following cont
152154

153155
### BREAKING CHANGES
154156

155-
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version
156-
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1
157+
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1
157158

158159
- To migrate, users should upgrade their TypeScript version to at least version 4.1.
159160

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
7070
Rutam <138517416+performant23@users.noreply.github.com>
7171
Ryan Seal <splrk@users.noreply.github.com>
7272
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
73+
SarthakPaandey <145528240+SarthakPaandey@users.noreply.github.com>
7374
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
7475
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
7576
Shivam <11shivam00@gmail.com>

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_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
* var shape = [ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2 ];
6464
*
6565
* // Define the array strides:
66-
* var sx = [ 2, 2, 2, 2, 2, 2, 2, 2, 2, 1 ];
67-
* var sy = [ 2, 2, 2, 2, 2, 2, 2, 2, 2, 1 ];
66+
* var sx = [ 4, 4, 4, 4, 4, 4, 4, 4, 2, 1 ];
67+
* var sy = [ 4, 4, 4, 4, 4, 4, 4, 4, 2, 1 ];
6868
*
6969
* // Define the index offsets:
7070
* var ox = 0;

lib/10d_blocked_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ var blockSize = require( '@stdlib/ndarray-base-unary-tiling-block-size' );
6868
* var shape = [ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2 ];
6969
*
7070
* // Define the array strides:
71-
* var sx = [ 2, 2, 2, 2, 2, 2, 2, 2, 2, 1 ];
72-
* var sy = [ 2, 2, 2, 2, 2, 2, 2, 2, 2, 1 ];
71+
* var sx = [ 4, 4, 4, 4, 4, 4, 4, 4, 2, 1 ];
72+
* var sy = [ 4, 4, 4, 4, 4, 4, 4, 4, 2, 1 ];
7373
*
7474
* // Define the index offsets:
7575
* var ox = 0;

lib/3d_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
* var shape = [ 1, 2, 2 ];
6262
*
6363
* // Define the array strides:
64-
* var sx = [ 2, 2, 1 ];
65-
* var sy = [ 2, 2, 1 ];
64+
* var sx = [ 4, 2, 1 ];
65+
* var sy = [ 4, 2, 1 ];
6666
*
6767
* // Define the index offsets:
6868
* var ox = 0;

lib/3d_blocked_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ var blockSize = require( '@stdlib/ndarray-base-unary-tiling-block-size' );
6868
* var shape = [ 1, 2, 2 ];
6969
*
7070
* // Define the array strides:
71-
* var sx = [ 2, 2, 1 ];
72-
* var sy = [ 2, 2, 1 ];
71+
* var sx = [ 4, 2, 1 ];
72+
* var sy = [ 4, 2, 1 ];
7373
*
7474
* // Define the index offsets:
7575
* var ox = 0;

lib/4d_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
* var shape = [ 1, 1, 2, 2 ];
6262
*
6363
* // Define the array strides:
64-
* var sx = [ 2, 2, 2, 1 ];
65-
* var sy = [ 2, 2, 2, 1 ];
64+
* var sx = [ 4, 4, 2, 1 ];
65+
* var sy = [ 4, 4, 2, 1 ];
6666
*
6767
* // Define the index offsets:
6868
* var ox = 0;

lib/4d_blocked_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ var blockSize = require( '@stdlib/ndarray-base-unary-tiling-block-size' );
6868
* var shape = [ 1, 1, 2, 2 ];
6969
*
7070
* // Define the array strides:
71-
* var sx = [ 2, 2, 2, 1 ];
72-
* var sy = [ 2, 2, 2, 1 ];
71+
* var sx = [ 4, 4, 2, 1 ];
72+
* var sy = [ 4, 4, 2, 1 ];
7373
*
7474
* // Define the index offsets:
7575
* var ox = 0;

lib/5d_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
* var shape = [ 1, 1, 1, 2, 2 ];
6262
*
6363
* // Define the array strides:
64-
* var sx = [ 2, 2, 2, 2, 1 ];
65-
* var sy = [ 2, 2, 2, 2, 1 ];
64+
* var sx = [ 4, 4, 4, 2, 1 ];
65+
* var sy = [ 4, 4, 4, 2, 1 ];
6666
*
6767
* // Define the index offsets:
6868
* var ox = 0;

lib/5d_blocked_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ var blockSize = require( '@stdlib/ndarray-base-unary-tiling-block-size' );
6868
* var shape = [ 1, 1, 1, 2, 2 ];
6969
*
7070
* // Define the array strides:
71-
* var sx = [ 2, 2, 2, 2, 1 ];
72-
* var sy = [ 2, 2, 2, 2, 1 ];
71+
* var sx = [ 4, 4, 4, 2, 1 ];
72+
* var sy = [ 4, 4, 4, 2, 1 ];
7373
*
7474
* // Define the index offsets:
7575
* var ox = 0;

lib/6d_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
* var shape = [ 1, 1, 1, 1, 2, 2 ];
6464
*
6565
* // Define the array strides:
66-
* var sx = [ 2, 2, 2, 2, 2, 1 ];
67-
* var sy = [ 2, 2, 2, 2, 2, 1 ];
66+
* var sx = [ 4, 4, 4, 4, 2, 1 ];
67+
* var sy = [ 4, 4, 4, 4, 2, 1 ];
6868
*
6969
* // Define the index offsets:
7070
* var ox = 0;

lib/6d_blocked_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ var blockSize = require( '@stdlib/ndarray-base-unary-tiling-block-size' );
6868
* var shape = [ 1, 1, 1, 1, 2, 2 ];
6969
*
7070
* // Define the array strides:
71-
* var sx = [ 2, 2, 2, 2, 2, 1 ];
72-
* var sy = [ 2, 2, 2, 2, 2, 1 ];
71+
* var sx = [ 4, 4, 4, 4, 2, 1 ];
72+
* var sy = [ 4, 4, 4, 4, 2, 1 ];
7373
*
7474
* // Define the index offsets:
7575
* var ox = 0;

lib/7d_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
* var shape = [ 1, 1, 1, 1, 1, 2, 2 ];
6464
*
6565
* // Define the array strides:
66-
* var sx = [ 2, 2, 2, 2, 2, 2, 1 ];
67-
* var sy = [ 2, 2, 2, 2, 2, 2, 1 ];
66+
* var sx = [ 4, 4, 4, 4, 4, 2, 1 ];
67+
* var sy = [ 4, 4, 4, 4, 4, 2, 1 ];
6868
*
6969
* // Define the index offsets:
7070
* var ox = 0;

lib/7d_blocked_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ var blockSize = require( '@stdlib/ndarray-base-unary-tiling-block-size' );
6868
* var shape = [ 1, 1, 1, 1, 1, 2, 2 ];
6969
*
7070
* // Define the array strides:
71-
* var sx = [ 2, 2, 2, 2, 2, 2, 1 ];
72-
* var sy = [ 2, 2, 2, 2, 2, 2, 1 ];
71+
* var sx = [ 4, 4, 4, 4, 4, 2, 1 ];
72+
* var sy = [ 4, 4, 4, 4, 4, 2, 1 ];
7373
*
7474
* // Define the index offsets:
7575
* var ox = 0;

lib/8d_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
* var shape = [ 1, 1, 1, 1, 1, 1, 2, 2 ];
6464
*
6565
* // Define the array strides:
66-
* var sx = [ 2, 2, 2, 2, 2, 2, 2, 1 ];
67-
* var sy = [ 2, 2, 2, 2, 2, 2, 2, 1 ];
66+
* var sx = [ 4, 4, 4, 4, 4, 4, 2, 1 ];
67+
* var sy = [ 4, 4, 4, 4, 4, 4, 2, 1 ];
6868
*
6969
* // Define the index offsets:
7070
* var ox = 0;

lib/8d_blocked_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ var blockSize = require( '@stdlib/ndarray-base-unary-tiling-block-size' );
6868
* var shape = [ 1, 1, 1, 1, 1, 1, 2, 2 ];
6969
*
7070
* // Define the array strides:
71-
* var sx = [ 2, 2, 2, 2, 2, 2, 2, 1 ];
72-
* var sy = [ 2, 2, 2, 2, 2, 2, 2, 1 ];
71+
* var sx = [ 4, 4, 4, 4, 4, 4, 2, 1 ];
72+
* var sy = [ 4, 4, 4, 4, 4, 4, 2, 1 ];
7373
*
7474
* // Define the index offsets:
7575
* var ox = 0;

lib/9d_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
* var shape = [ 1, 1, 1, 1, 1, 1, 1, 2, 2 ];
6464
*
6565
* // Define the array strides:
66-
* var sx = [ 2, 2, 2, 2, 2, 2, 2, 2, 1 ];
67-
* var sy = [ 2, 2, 2, 2, 2, 2, 2, 2, 1 ];
66+
* var sx = [ 4, 4, 4, 4, 4, 4, 4, 2, 1 ];
67+
* var sy = [ 4, 4, 4, 4, 4, 4, 4, 2, 1 ];
6868
*
6969
* // Define the index offsets:
7070
* var ox = 0;

lib/9d_blocked_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ var blockSize = require( '@stdlib/ndarray-base-unary-tiling-block-size' );
6868
* var shape = [ 1, 1, 1, 1, 1, 1, 1, 2, 2 ];
6969
*
7070
* // Define the array strides:
71-
* var sx = [ 2, 2, 2, 2, 2, 2, 2, 2, 1 ];
72-
* var sy = [ 2, 2, 2, 2, 2, 2, 2, 2, 1 ];
71+
* var sx = [ 4, 4, 4, 4, 4, 4, 4, 2, 1 ];
72+
* var sy = [ 4, 4, 4, 4, 4, 4, 4, 2, 1 ];
7373
*
7474
* // Define the index offsets:
7575
* var ox = 0;

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ function unary( arrays, fcn ) {
276276
ioy = iterationOrder( sy ); // +/-1
277277

278278
// Determine whether we can avoid blocked iteration...
279-
if ( iox !== 0 && ioy !== 0 && x.order === y.order ) {
279+
if ( iox !== 0 && ioy !== 0 && iox === ioy ) {
280280
// Determine the minimum and maximum linear indices which are accessible by the array views:
281281
xmmv = minmaxViewBufferIndex( shx, sx, x.offset );
282282
ymmv = minmaxViewBufferIndex( shy, sy, y.offset );

0 commit comments

Comments
 (0)