Skip to content

Commit ca6378c

Browse files
committed
fix: use resolved order when computing loop variables
--- 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 12615c0 commit ca6378c

27 files changed

+54
-54
lines changed

lib/node_modules/@stdlib/ndarray/base/every/lib/10d.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' );
25+
var strides2order = require( '@stdlib/ndarray/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 ];

lib/node_modules/@stdlib/ndarray/base/every/lib/10d_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' );
25+
var strides2order = require( '@stdlib/ndarray/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 ];

lib/node_modules/@stdlib/ndarray/base/every/lib/10d_complex.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' );
25+
var strides2order = require( '@stdlib/ndarray/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 ];

lib/node_modules/@stdlib/ndarray/base/every/lib/2d.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' );
23+
var strides2order = require( '@stdlib/ndarray/base/strides2order' );
2424

2525

2626
// MAIN //
@@ -84,7 +84,7 @@ function every2d( x ) {
8484
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
8585
sh = x.shape;
8686
sx = x.strides;
87-
if ( isRowMajor( x.order ) ) {
87+
if ( strides2order( sx ) === 1 ) {
8888
// For row-major ndarrays, the last dimensions have the fastest changing indices...
8989
S0 = sh[ 1 ];
9090
S1 = sh[ 0 ];

lib/node_modules/@stdlib/ndarray/base/every/lib/2d_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' );
23+
var strides2order = require( '@stdlib/ndarray/base/strides2order' );
2424

2525

2626
// MAIN //
@@ -88,7 +88,7 @@ function every2d( x ) {
8888
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
8989
sh = x.shape;
9090
sx = x.strides;
91-
if ( isRowMajor( x.order ) ) {
91+
if ( strides2order( sx ) === 1 ) {
9292
// For row-major ndarrays, the last dimensions have the fastest changing indices...
9393
S0 = sh[ 1 ];
9494
S1 = sh[ 0 ];

lib/node_modules/@stdlib/ndarray/base/every/lib/2d_complex.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' );
23+
var strides2order = require( '@stdlib/ndarray/base/strides2order' );
2424

2525

2626
// MAIN //
@@ -84,7 +84,7 @@ function every2d( x ) {
8484
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
8585
sh = x.shape;
8686
sx = x.strides;
87-
if ( isRowMajor( x.order ) ) {
87+
if ( strides2order( sx ) === 1 ) {
8888
// For row-major ndarrays, the last dimensions have the fastest changing indices...
8989
S0 = sh[ 1 ];
9090
S1 = sh[ 0 ];

lib/node_modules/@stdlib/ndarray/base/every/lib/3d.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' );
23+
var strides2order = require( '@stdlib/ndarray/base/strides2order' );
2424

2525

2626
// MAIN //
@@ -87,7 +87,7 @@ function every3d( x ) {
8787
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
8888
sh = x.shape;
8989
sx = x.strides;
90-
if ( isRowMajor( x.order ) ) {
90+
if ( strides2order( sx ) === 1 ) {
9191
// For row-major ndarrays, the last dimensions have the fastest changing indices...
9292
S0 = sh[ 2 ];
9393
S1 = sh[ 1 ];

lib/node_modules/@stdlib/ndarray/base/every/lib/3d_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' );
23+
var strides2order = require( '@stdlib/ndarray/base/strides2order' );
2424

2525

2626
// MAIN //
@@ -91,7 +91,7 @@ function every3d( x ) {
9191
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
9292
sh = x.shape;
9393
sx = x.strides;
94-
if ( isRowMajor( x.order ) ) {
94+
if ( strides2order( sx ) === 1 ) {
9595
// For row-major ndarrays, the last dimensions have the fastest changing indices...
9696
S0 = sh[ 2 ];
9797
S1 = sh[ 1 ];

lib/node_modules/@stdlib/ndarray/base/every/lib/3d_complex.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' );
23+
var strides2order = require( '@stdlib/ndarray/base/strides2order' );
2424

2525

2626
// MAIN //
@@ -87,7 +87,7 @@ function every3d( x ) {
8787
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
8888
sh = x.shape;
8989
sx = x.strides;
90-
if ( isRowMajor( x.order ) ) {
90+
if ( strides2order( sx ) === 1 ) {
9191
// For row-major ndarrays, the last dimensions have the fastest changing indices...
9292
S0 = sh[ 2 ];
9393
S1 = sh[ 1 ];

lib/node_modules/@stdlib/ndarray/base/every/lib/4d.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' );
23+
var strides2order = require( '@stdlib/ndarray/base/strides2order' );
2424

2525

2626
// MAIN //
@@ -90,7 +90,7 @@ function every4d( x ) {
9090
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
9191
sh = x.shape;
9292
sx = x.strides;
93-
if ( isRowMajor( x.order ) ) {
93+
if ( strides2order( sx ) === 1 ) {
9494
// For row-major ndarrays, the last dimensions have the fastest changing indices...
9595
S0 = sh[ 3 ];
9696
S1 = sh[ 2 ];

0 commit comments

Comments
 (0)