File tree Expand file tree Collapse file tree 27 files changed +54
-54
lines changed
lib/node_modules/@stdlib/ndarray/base/every/lib Expand file tree Collapse file tree 27 files changed +54
-54
lines changed Original file line number Diff line number Diff line change 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 ] ;
Original file line number Diff line number Diff line change 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 ] ;
Original file line number Diff line number Diff line change 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 ] ;
Original file line number Diff line number Diff line change 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 ] ;
Original file line number Diff line number Diff line change 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 ] ;
Original file line number Diff line number Diff line change 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 ] ;
Original file line number Diff line number Diff line change 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 ] ;
Original file line number Diff line number Diff line change 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 ] ;
Original file line number Diff line number Diff line change 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 ] ;
Original file line number Diff line number Diff line change 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 ] ;
You can’t perform that action at this time.
0 commit comments