Skip to content

Commit 87928c2

Browse files
committed
Auto-generated commit
1 parent b840190 commit 87928c2

22 files changed

+202
-109
lines changed

CHANGELOG.md

Lines changed: 3 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-07)
7+
## Unreleased (2025-05-08)
88

99
<section class="features">
1010

@@ -71,6 +71,7 @@
7171

7272
### Bug Fixes
7373

74+
- [`1e0917b`](https://github.com/stdlib-js/stdlib/commit/1e0917b1bba1d273d93e8fa97cc8a060661bbbf0) - use resolved order when computing loop variables
7475
- [`2e9ea06`](https://github.com/stdlib-js/stdlib/commit/2e9ea0690e40506e0c09764f40f8163fb0c7ff7c) - update signatures
7576
- [`c82563a`](https://github.com/stdlib-js/stdlib/commit/c82563aa50c03568da53abce9420b97924f60e3f) - remove continuation
7677

@@ -84,6 +85,7 @@
8485

8586
<details>
8687

88+
- [`1e0917b`](https://github.com/stdlib-js/stdlib/commit/1e0917b1bba1d273d93e8fa97cc8a060661bbbf0) - **fix:** use resolved order when computing loop variables _(by Athan Reines)_
8789
- [`3dd8cb3`](https://github.com/stdlib-js/stdlib/commit/3dd8cb379ea22c4a92d610d146cdd662d3187e27) - **chore:** minor clean-up _(by Philipp Burckhardt)_
8890
- [`836170d`](https://github.com/stdlib-js/stdlib/commit/836170decec14309639deb41ae3a3c22256d68af) - **refactor:** update paths _(by Gururaj Gurram)_
8991
- [`421c4cf`](https://github.com/stdlib-js/stdlib/commit/421c4cfcd29b8dafd580ef8feecb1d664de64040) - **bench:** fix assertion _(by Athan Reines)_

dist/index.js

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

dist/index.js.map

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

lib/10d.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020

2121
'use strict';
2222

23+
// MODULES //
24+
25+
var strides2order = require( '@stdlib/ndarray-base-strides2order' );
26+
27+
2328
// MAIN //
2429

2530
/**
@@ -112,7 +117,7 @@ function accumulate10d( x, initial, clbk ) { // eslint-disable-line max-statemen
112117
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
113118
sh = x.shape;
114119
sx = x.strides;
115-
if ( x.order === 'row-major' ) {
120+
if ( strides2order( sx ) === 1 ) {
116121
// For row-major ndarrays, the last dimensions have the fastest changing indices...
117122
S0 = sh[ 9 ];
118123
S1 = sh[ 8 ];

lib/10d_accessors.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020

2121
'use strict';
2222

23+
// MODULES //
24+
25+
var strides2order = require( '@stdlib/ndarray-base-strides2order' );
26+
27+
2328
// MAIN //
2429

2530
/**
@@ -133,7 +138,7 @@ function accumulate10d( x, initial, clbk ) { // eslint-disable-line max-statemen
133138
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
134139
sh = x.shape;
135140
sx = x.strides;
136-
if ( x.order === 'row-major' ) {
141+
if ( strides2order( sx ) === 1 ) {
137142
// For row-major ndarrays, the last dimensions have the fastest changing indices...
138143
S0 = sh[ 9 ];
139144
S1 = sh[ 8 ];

lib/2d.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
'use strict';
2020

21+
// MODULES //
22+
23+
var strides2order = require( '@stdlib/ndarray-base-strides2order' );
24+
25+
2126
// MAIN //
2227

2328
/**
@@ -86,7 +91,7 @@ function accumulate2d( x, initial, clbk ) {
8691
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
8792
sh = x.shape;
8893
sx = x.strides;
89-
if ( x.order === 'row-major' ) {
94+
if ( strides2order( sx ) === 1 ) {
9095
// For row-major ndarrays, the last dimensions have the fastest changing indices...
9196
S0 = sh[ 1 ];
9297
S1 = sh[ 0 ];

lib/2d_accessors.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
'use strict';
2020

21+
// MODULES //
22+
23+
var strides2order = require( '@stdlib/ndarray-base-strides2order' );
24+
25+
2126
// MAIN //
2227

2328
/**
@@ -107,7 +112,7 @@ function accumulate2d( x, initial, clbk ) {
107112
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
108113
sh = x.shape;
109114
sx = x.strides;
110-
if ( x.order === 'row-major' ) {
115+
if ( strides2order( sx ) === 1 ) {
111116
// For row-major ndarrays, the last dimensions have the fastest changing indices...
112117
S0 = sh[ 1 ];
113118
S1 = sh[ 0 ];

lib/3d.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
'use strict';
2020

21+
// MODULES //
22+
23+
var strides2order = require( '@stdlib/ndarray-base-strides2order' );
24+
25+
2126
// MAIN //
2227

2328
/**
@@ -89,7 +94,7 @@ function accumulate3d( x, initial, clbk ) {
8994
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
9095
sh = x.shape;
9196
sx = x.strides;
92-
if ( x.order === 'row-major' ) {
97+
if ( strides2order( sx ) === 1 ) {
9398
// For row-major ndarrays, the last dimensions have the fastest changing indices...
9499
S0 = sh[ 2 ];
95100
S1 = sh[ 1 ];

lib/3d_accessors.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
'use strict';
2020

21+
// MODULES //
22+
23+
var strides2order = require( '@stdlib/ndarray-base-strides2order' );
24+
25+
2126
// MAIN //
2227

2328
/**
@@ -110,7 +115,7 @@ function accumulate3d( x, initial, clbk ) {
110115
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
111116
sh = x.shape;
112117
sx = x.strides;
113-
if ( x.order === 'row-major' ) {
118+
if ( strides2order( sx ) === 1 ) {
114119
// For row-major ndarrays, the last dimensions have the fastest changing indices...
115120
S0 = sh[ 2 ];
116121
S1 = sh[ 1 ];

lib/4d.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
'use strict';
2020

21+
// MODULES //
22+
23+
var strides2order = require( '@stdlib/ndarray-base-strides2order' );
24+
25+
2126
// MAIN //
2227

2328
/**
@@ -92,7 +97,7 @@ function accumulate4d( x, initial, clbk ) {
9297
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
9398
sh = x.shape;
9499
sx = x.strides;
95-
if ( x.order === 'row-major' ) {
100+
if ( strides2order( sx ) === 1 ) {
96101
// For row-major ndarrays, the last dimensions have the fastest changing indices...
97102
S0 = sh[ 3 ];
98103
S1 = sh[ 2 ];

0 commit comments

Comments
 (0)