Skip to content

Commit 5d7392a

Browse files
committed
Auto-generated commit
1 parent 64532cc commit 5d7392a

File tree

181 files changed

+666
-252
lines changed

Some content is hidden

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

181 files changed

+666
-252
lines changed

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,15 @@
251251

252252
### Bug Fixes
253253

254+
- [`b9e9eca`](https://github.com/stdlib-js/stdlib/commit/b9e9eca93c4611a77122090ab8e589e6ba82e47b) - use resolved order when computing loop variables
255+
- [`1e0917b`](https://github.com/stdlib-js/stdlib/commit/1e0917b1bba1d273d93e8fa97cc8a060661bbbf0) - use resolved order when computing loop variables
256+
- [`92bf1a1`](https://github.com/stdlib-js/stdlib/commit/92bf1a12b2398ec5823eb3094bdc89f88d9876a7) - use resolved order when computing loop variables
257+
- [`742b7ec`](https://github.com/stdlib-js/stdlib/commit/742b7ec1f60fc811148afcea78cfc36dc1018e24) - use resolved order when computing loop variables
258+
- [`a19b8f2`](https://github.com/stdlib-js/stdlib/commit/a19b8f2405c62dd79247ef4c3a9a1cadda1f3576) - use resolved order when computing loop variables
259+
- [`f7cf8ed`](https://github.com/stdlib-js/stdlib/commit/f7cf8ed8066b7b2fe18a9b9bc6ed1226eb1cc1ea) - use resolved order when computing loop variables
260+
- [`f10dd8c`](https://github.com/stdlib-js/stdlib/commit/f10dd8ccbd1c245467d156a1b87f5eb2ba47e0ad) - use resolved order when computing loop variables
261+
- [`6c09182`](https://github.com/stdlib-js/stdlib/commit/6c09182156a8a7d13e52660e278b52d9d6b0166a) - use resolved order when computing loop variables
262+
- [`ca6378c`](https://github.com/stdlib-js/stdlib/commit/ca6378c56d971ae1c08f162bfda933b7b2fc04cf) - use resolved order when computing loop variables
254263
- [`ab22671`](https://github.com/stdlib-js/stdlib/commit/ab2267149121cf347c5be11d7bfc7ee64e4f663a) - use resolved order when computing loop variables
255264
- [`18036a4`](https://github.com/stdlib-js/stdlib/commit/18036a4b73cbae2f90f5ce929645d1eb769138dc) - use resolved order when determining increment offsets
256265
- [`3ce09af`](https://github.com/stdlib-js/stdlib/commit/3ce09af9819ae7dbaad178179264fc84c5db5690) - ensure separate array instance for each memory layout
@@ -353,6 +362,15 @@ A total of 14 issues were closed in this release:
353362

354363
<details>
355364

365+
- [`b9e9eca`](https://github.com/stdlib-js/stdlib/commit/b9e9eca93c4611a77122090ab8e589e6ba82e47b) - **fix:** use resolved order when computing loop variables _(by Athan Reines)_
366+
- [`1e0917b`](https://github.com/stdlib-js/stdlib/commit/1e0917b1bba1d273d93e8fa97cc8a060661bbbf0) - **fix:** use resolved order when computing loop variables _(by Athan Reines)_
367+
- [`92bf1a1`](https://github.com/stdlib-js/stdlib/commit/92bf1a12b2398ec5823eb3094bdc89f88d9876a7) - **fix:** use resolved order when computing loop variables _(by Athan Reines)_
368+
- [`742b7ec`](https://github.com/stdlib-js/stdlib/commit/742b7ec1f60fc811148afcea78cfc36dc1018e24) - **fix:** use resolved order when computing loop variables _(by Athan Reines)_
369+
- [`a19b8f2`](https://github.com/stdlib-js/stdlib/commit/a19b8f2405c62dd79247ef4c3a9a1cadda1f3576) - **fix:** use resolved order when computing loop variables _(by Athan Reines)_
370+
- [`f7cf8ed`](https://github.com/stdlib-js/stdlib/commit/f7cf8ed8066b7b2fe18a9b9bc6ed1226eb1cc1ea) - **fix:** use resolved order when computing loop variables _(by Athan Reines)_
371+
- [`f10dd8c`](https://github.com/stdlib-js/stdlib/commit/f10dd8ccbd1c245467d156a1b87f5eb2ba47e0ad) - **fix:** use resolved order when computing loop variables _(by Athan Reines)_
372+
- [`6c09182`](https://github.com/stdlib-js/stdlib/commit/6c09182156a8a7d13e52660e278b52d9d6b0166a) - **fix:** use resolved order when computing loop variables _(by Athan Reines)_
373+
- [`ca6378c`](https://github.com/stdlib-js/stdlib/commit/ca6378c56d971ae1c08f162bfda933b7b2fc04cf) - **fix:** use resolved order when computing loop variables _(by Athan Reines)_
356374
- [`25f29f8`](https://github.com/stdlib-js/stdlib/commit/25f29f85b888fd71646902ad9cda4f5f6aa62eff) - **refactor:** use base assertion utility _(by Athan Reines)_
357375
- [`3088dea`](https://github.com/stdlib-js/stdlib/commit/3088deabee417ce890ccb15e87066ef11c3f2305) - **test:** fix lint errors _(by Athan Reines)_
358376
- [`b9d3f03`](https://github.com/stdlib-js/stdlib/commit/b9d3f03a8fc45fa0f65dc1ded1a5b40125a0a0fb) - **refactor:** use base assertion utility _(by Athan Reines)_

base/every-by/lib/10d.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
25+
var strides2order = require( './../../../base/strides2order' );
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
2727
var reverse = require( '@stdlib/array/base/reverse' );
2828
var take = require( '@stdlib/array/base/take-indexed' );
@@ -123,7 +123,7 @@ function every10d( x, predicate, thisArg ) { // eslint-disable-line max-statemen
123123
sh = x.shape;
124124
sx = x.strides;
125125
idx = zeroTo( sh.length );
126-
if ( isRowMajor( x.order ) ) {
126+
if ( strides2order( sx ) === 1 ) {
127127
// For row-major ndarrays, the last dimensions have the fastest changing indices...
128128
S0 = sh[ 9 ];
129129
S1 = sh[ 8 ];

base/every-by/lib/10d_accessors.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
25+
var strides2order = require( './../../../base/strides2order' );
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
2727
var reverse = require( '@stdlib/array/base/reverse' );
2828
var take = require( '@stdlib/array/base/take-indexed' );
@@ -127,7 +127,7 @@ function every10d( x, predicate, thisArg ) { // eslint-disable-line max-statemen
127127
sh = x.shape;
128128
sx = x.strides;
129129
idx = zeroTo( sh.length );
130-
if ( isRowMajor( x.order ) ) {
130+
if ( strides2order( sx ) === 1 ) {
131131
// For row-major ndarrays, the last dimensions have the fastest changing indices...
132132
S0 = sh[ 9 ];
133133
S1 = sh[ 8 ];

base/every-by/lib/2d.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
23+
var strides2order = require( './../../../base/strides2order' );
2424
var zeroTo = require( '@stdlib/array/base/zero-to' );
2525
var reverse = require( '@stdlib/array/base/reverse' );
2626
var take = require( '@stdlib/array/base/take-indexed' );
@@ -97,7 +97,7 @@ function every2d( x, predicate, thisArg ) {
9797
sh = x.shape;
9898
sx = x.strides;
9999
idx = zeroTo( sh.length );
100-
if ( isRowMajor( x.order ) ) {
100+
if ( strides2order( sx ) === 1 ) {
101101
// For row-major ndarrays, the last dimensions have the fastest changing indices...
102102
S0 = sh[ 1 ];
103103
S1 = sh[ 0 ];

base/every-by/lib/2d_accessors.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
23+
var strides2order = require( './../../../base/strides2order' );
2424
var zeroTo = require( '@stdlib/array/base/zero-to' );
2525
var reverse = require( '@stdlib/array/base/reverse' );
2626
var take = require( '@stdlib/array/base/take-indexed' );
@@ -101,7 +101,7 @@ function every2d( x, predicate, thisArg ) {
101101
sh = x.shape;
102102
sx = x.strides;
103103
idx = zeroTo( sh.length );
104-
if ( isRowMajor( x.order ) ) {
104+
if ( strides2order( sx ) === 1 ) {
105105
// For row-major ndarrays, the last dimensions have the fastest changing indices...
106106
S0 = sh[ 1 ];
107107
S1 = sh[ 0 ];

base/every-by/lib/3d.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
23+
var strides2order = require( './../../../base/strides2order' );
2424
var zeroTo = require( '@stdlib/array/base/zero-to' );
2525
var reverse = require( '@stdlib/array/base/reverse' );
2626
var take = require( '@stdlib/array/base/take-indexed' );
@@ -100,7 +100,7 @@ function every3d( x, predicate, thisArg ) {
100100
sh = x.shape;
101101
sx = x.strides;
102102
idx = zeroTo( sh.length );
103-
if ( isRowMajor( x.order ) ) {
103+
if ( strides2order( sx ) === 1 ) {
104104
// For row-major ndarrays, the last dimensions have the fastest changing indices...
105105
S0 = sh[ 2 ];
106106
S1 = sh[ 1 ];

base/every-by/lib/3d_accessors.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
23+
var strides2order = require( './../../../base/strides2order' );
2424
var zeroTo = require( '@stdlib/array/base/zero-to' );
2525
var reverse = require( '@stdlib/array/base/reverse' );
2626
var take = require( '@stdlib/array/base/take-indexed' );
@@ -104,7 +104,7 @@ function every3d( x, predicate, thisArg ) {
104104
sh = x.shape;
105105
sx = x.strides;
106106
idx = zeroTo( sh.length );
107-
if ( isRowMajor( x.order ) ) {
107+
if ( strides2order( sx ) === 1 ) {
108108
// For row-major ndarrays, the last dimensions have the fastest changing indices...
109109
S0 = sh[ 2 ];
110110
S1 = sh[ 1 ];

base/every-by/lib/4d.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
23+
var strides2order = require( './../../../base/strides2order' );
2424
var zeroTo = require( '@stdlib/array/base/zero-to' );
2525
var reverse = require( '@stdlib/array/base/reverse' );
2626
var take = require( '@stdlib/array/base/take-indexed' );
@@ -103,7 +103,7 @@ function every4d( x, predicate, thisArg ) {
103103
sh = x.shape;
104104
sx = x.strides;
105105
idx = zeroTo( sh.length );
106-
if ( isRowMajor( x.order ) ) {
106+
if ( strides2order( sx ) === 1 ) {
107107
// For row-major ndarrays, the last dimensions have the fastest changing indices...
108108
S0 = sh[ 3 ];
109109
S1 = sh[ 2 ];

base/every-by/lib/4d_accessors.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
23+
var strides2order = require( './../../../base/strides2order' );
2424
var zeroTo = require( '@stdlib/array/base/zero-to' );
2525
var reverse = require( '@stdlib/array/base/reverse' );
2626
var take = require( '@stdlib/array/base/take-indexed' );
@@ -107,7 +107,7 @@ function every4d( x, predicate, thisArg ) {
107107
sh = x.shape;
108108
sx = x.strides;
109109
idx = zeroTo( sh.length );
110-
if ( isRowMajor( x.order ) ) {
110+
if ( strides2order( sx ) === 1 ) {
111111
// For row-major ndarrays, the last dimensions have the fastest changing indices...
112112
S0 = sh[ 3 ];
113113
S1 = sh[ 2 ];

base/every-by/lib/5d.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
25+
var strides2order = require( './../../../base/strides2order' );
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
2727
var reverse = require( '@stdlib/array/base/reverse' );
2828
var take = require( '@stdlib/array/base/take-indexed' );
@@ -108,7 +108,7 @@ function every5d( x, predicate, thisArg ) {
108108
sh = x.shape;
109109
sx = x.strides;
110110
idx = zeroTo( sh.length );
111-
if ( isRowMajor( x.order ) ) {
111+
if ( strides2order( sx ) === 1 ) {
112112
// For row-major ndarrays, the last dimensions have the fastest changing indices...
113113
S0 = sh[ 4 ];
114114
S1 = sh[ 3 ];

base/every-by/lib/5d_accessors.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
25+
var strides2order = require( './../../../base/strides2order' );
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
2727
var reverse = require( '@stdlib/array/base/reverse' );
2828
var take = require( '@stdlib/array/base/take-indexed' );
@@ -112,7 +112,7 @@ function every5d( x, predicate, thisArg ) {
112112
sh = x.shape;
113113
sx = x.strides;
114114
idx = zeroTo( sh.length );
115-
if ( isRowMajor( x.order ) ) {
115+
if ( strides2order( sx ) === 1 ) {
116116
// For row-major ndarrays, the last dimensions have the fastest changing indices...
117117
S0 = sh[ 4 ];
118118
S1 = sh[ 3 ];

base/every-by/lib/6d.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
25+
var strides2order = require( './../../../base/strides2order' );
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
2727
var reverse = require( '@stdlib/array/base/reverse' );
2828
var take = require( '@stdlib/array/base/take-indexed' );
@@ -111,7 +111,7 @@ function every6d( x, predicate, thisArg ) {
111111
sh = x.shape;
112112
sx = x.strides;
113113
idx = zeroTo( sh.length );
114-
if ( isRowMajor( x.order ) ) {
114+
if ( strides2order( sx ) === 1 ) {
115115
// For row-major ndarrays, the last dimensions have the fastest changing indices...
116116
S0 = sh[ 5 ];
117117
S1 = sh[ 4 ];

base/every-by/lib/6d_accessors.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
25+
var strides2order = require( './../../../base/strides2order' );
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
2727
var reverse = require( '@stdlib/array/base/reverse' );
2828
var take = require( '@stdlib/array/base/take-indexed' );
@@ -115,7 +115,7 @@ function every6d( x, predicate, thisArg ) {
115115
sh = x.shape;
116116
sx = x.strides;
117117
idx = zeroTo( sh.length );
118-
if ( isRowMajor( x.order ) ) {
118+
if ( strides2order( sx ) === 1 ) {
119119
// For row-major ndarrays, the last dimensions have the fastest changing indices...
120120
S0 = sh[ 5 ];
121121
S1 = sh[ 4 ];

base/every-by/lib/7d.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
25+
var strides2order = require( './../../../base/strides2order' );
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
2727
var reverse = require( '@stdlib/array/base/reverse' );
2828
var take = require( '@stdlib/array/base/take-indexed' );
@@ -114,7 +114,7 @@ function every7d( x, predicate, thisArg ) {
114114
sh = x.shape;
115115
sx = x.strides;
116116
idx = zeroTo( sh.length );
117-
if ( isRowMajor( x.order ) ) {
117+
if ( strides2order( sx ) === 1 ) {
118118
// For row-major ndarrays, the last dimensions have the fastest changing indices...
119119
S0 = sh[ 6 ];
120120
S1 = sh[ 5 ];

base/every-by/lib/7d_accessors.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
25+
var strides2order = require( './../../../base/strides2order' );
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
2727
var reverse = require( '@stdlib/array/base/reverse' );
2828
var take = require( '@stdlib/array/base/take-indexed' );
@@ -118,7 +118,7 @@ function every7d( x, predicate, thisArg ) {
118118
sh = x.shape;
119119
sx = x.strides;
120120
idx = zeroTo( sh.length );
121-
if ( isRowMajor( x.order ) ) {
121+
if ( strides2order( sx ) === 1 ) {
122122
// For row-major ndarrays, the last dimensions have the fastest changing indices...
123123
S0 = sh[ 6 ];
124124
S1 = sh[ 5 ];

base/every-by/lib/8d.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
25+
var strides2order = require( './../../../base/strides2order' );
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
2727
var reverse = require( '@stdlib/array/base/reverse' );
2828
var take = require( '@stdlib/array/base/take-indexed' );
@@ -117,7 +117,7 @@ function every8d( x, predicate, thisArg ) {
117117
sh = x.shape;
118118
sx = x.strides;
119119
idx = zeroTo( sh.length );
120-
if ( isRowMajor( x.order ) ) {
120+
if ( strides2order( sx ) === 1 ) {
121121
// For row-major ndarrays, the last dimensions have the fastest changing indices...
122122
S0 = sh[ 7 ];
123123
S1 = sh[ 6 ];

base/every-by/lib/8d_accessors.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
25+
var strides2order = require( './../../../base/strides2order' );
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
2727
var reverse = require( '@stdlib/array/base/reverse' );
2828
var take = require( '@stdlib/array/base/take-indexed' );
@@ -121,7 +121,7 @@ function every8d( x, predicate, thisArg ) {
121121
sh = x.shape;
122122
sx = x.strides;
123123
idx = zeroTo( sh.length );
124-
if ( isRowMajor( x.order ) ) {
124+
if ( strides2order( sx ) === 1 ) {
125125
// For row-major ndarrays, the last dimensions have the fastest changing indices...
126126
S0 = sh[ 7 ];
127127
S1 = sh[ 6 ];

base/every-by/lib/9d.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
25+
var strides2order = require( './../../../base/strides2order' );
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
2727
var reverse = require( '@stdlib/array/base/reverse' );
2828
var take = require( '@stdlib/array/base/take-indexed' );
@@ -120,7 +120,7 @@ function every9d( x, predicate, thisArg ) {
120120
sh = x.shape;
121121
sx = x.strides;
122122
idx = zeroTo( sh.length );
123-
if ( isRowMajor( x.order ) ) {
123+
if ( strides2order( sx ) === 1 ) {
124124
// For row-major ndarrays, the last dimensions have the fastest changing indices...
125125
S0 = sh[ 8 ];
126126
S1 = sh[ 7 ];

base/every-by/lib/9d_accessors.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
25+
var strides2order = require( './../../../base/strides2order' );
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
2727
var reverse = require( '@stdlib/array/base/reverse' );
2828
var take = require( '@stdlib/array/base/take-indexed' );
@@ -124,7 +124,7 @@ function every9d( x, predicate, thisArg ) {
124124
sh = x.shape;
125125
sx = x.strides;
126126
idx = zeroTo( sh.length );
127-
if ( isRowMajor( x.order ) ) {
127+
if ( strides2order( sx ) === 1 ) {
128128
// For row-major ndarrays, the last dimensions have the fastest changing indices...
129129
S0 = sh[ 8 ];
130130
S1 = sh[ 7 ];

base/every/lib/10d.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
25+
var strides2order = require( './../../../base/strides2order' );
2626

2727

2828
// MAIN //
@@ -110,7 +110,7 @@ function every10d( x ) { // eslint-disable-line max-statements
110110
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
111111
sh = x.shape;
112112
sx = x.strides;
113-
if ( isRowMajor( x.order ) ) {
113+
if ( strides2order( sx ) === 1 ) {
114114
// For row-major ndarrays, the last dimensions have the fastest changing indices...
115115
S0 = sh[ 9 ];
116116
S1 = sh[ 8 ];

base/every/lib/10d_accessors.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../base/assert/is-row-major-string' );
25+
var strides2order = require( './../../../base/strides2order' );
2626

2727

2828
// MAIN //
@@ -114,7 +114,7 @@ function every10d( x ) { // eslint-disable-line max-statements
114114
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
115115
sh = x.shape;
116116
sx = x.strides;
117-
if ( isRowMajor( x.order ) ) {
117+
if ( strides2order( sx ) === 1 ) {
118118
// For row-major ndarrays, the last dimensions have the fastest changing indices...
119119
S0 = sh[ 9 ];
120120
S1 = sh[ 8 ];

0 commit comments

Comments
 (0)