File tree Expand file tree Collapse file tree 27 files changed +162
-27
lines changed
lib/node_modules/@stdlib/ndarray/base/every/lib Expand file tree Collapse file tree 27 files changed +162
-27
lines changed Original file line number Diff line number Diff line change 20
20
21
21
'use strict' ;
22
22
23
+ // MODULES //
24
+
25
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
26
+
27
+
23
28
// MAIN //
24
29
25
30
/**
@@ -105,7 +110,7 @@ function every10d( x ) { // eslint-disable-line max-statements
105
110
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
106
111
sh = x . shape ;
107
112
sx = x . strides ;
108
- if ( x . order === 'row-major' ) {
113
+ if ( isRowMajor ( x . order ) ) {
109
114
// For row-major ndarrays, the last dimensions have the fastest changing indices...
110
115
S0 = sh [ 9 ] ;
111
116
S1 = sh [ 8 ] ;
Original file line number Diff line number Diff line change 20
20
21
21
'use strict' ;
22
22
23
+ // MODULES //
24
+
25
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
26
+
27
+
23
28
// MAIN //
24
29
25
30
/**
@@ -109,7 +114,7 @@ function every10d( x ) { // eslint-disable-line max-statements
109
114
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
110
115
sh = x . shape ;
111
116
sx = x . strides ;
112
- if ( x . order === 'row-major' ) {
117
+ if ( isRowMajor ( x . order ) ) {
113
118
// For row-major ndarrays, the last dimensions have the fastest changing indices...
114
119
S0 = sh [ 9 ] ;
115
120
S1 = sh [ 8 ] ;
Original file line number Diff line number Diff line change 20
20
21
21
'use strict' ;
22
22
23
+ // MODULES //
24
+
25
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
26
+
27
+
23
28
// MAIN //
24
29
25
30
/**
@@ -105,7 +110,7 @@ function every10d( x ) { // eslint-disable-line max-statements
105
110
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
106
111
sh = x . shape ;
107
112
sx = x . strides ;
108
- if ( x . order === 'row-major' ) {
113
+ if ( isRowMajor ( x . order ) ) {
109
114
// For row-major ndarrays, the last dimensions have the fastest changing indices...
110
115
S0 = sh [ 9 ] ;
111
116
S1 = sh [ 8 ] ;
Original file line number Diff line number Diff line change 18
18
19
19
'use strict' ;
20
20
21
+ // MODULES //
22
+
23
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
24
+
25
+
21
26
// MAIN //
22
27
23
28
/**
@@ -79,7 +84,7 @@ function every2d( x ) {
79
84
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
80
85
sh = x . shape ;
81
86
sx = x . strides ;
82
- if ( x . order === 'row-major' ) {
87
+ if ( isRowMajor ( x . order ) ) {
83
88
// For row-major ndarrays, the last dimensions have the fastest changing indices...
84
89
S0 = sh [ 1 ] ;
85
90
S1 = sh [ 0 ] ;
Original file line number Diff line number Diff line change 18
18
19
19
'use strict' ;
20
20
21
+ // MODULES //
22
+
23
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
24
+
25
+
21
26
// MAIN //
22
27
23
28
/**
@@ -83,7 +88,7 @@ function every2d( x ) {
83
88
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
84
89
sh = x . shape ;
85
90
sx = x . strides ;
86
- if ( x . order === 'row-major' ) {
91
+ if ( isRowMajor ( x . order ) ) {
87
92
// For row-major ndarrays, the last dimensions have the fastest changing indices...
88
93
S0 = sh [ 1 ] ;
89
94
S1 = sh [ 0 ] ;
Original file line number Diff line number Diff line change 18
18
19
19
'use strict' ;
20
20
21
+ // MODULES //
22
+
23
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
24
+
25
+
21
26
// MAIN //
22
27
23
28
/**
@@ -79,7 +84,7 @@ function every2d( x ) {
79
84
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
80
85
sh = x . shape ;
81
86
sx = x . strides ;
82
- if ( x . order === 'row-major' ) {
87
+ if ( isRowMajor ( x . order ) ) {
83
88
// For row-major ndarrays, the last dimensions have the fastest changing indices...
84
89
S0 = sh [ 1 ] ;
85
90
S1 = sh [ 0 ] ;
Original file line number Diff line number Diff line change 18
18
19
19
'use strict' ;
20
20
21
+ // MODULES //
22
+
23
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
24
+
25
+
21
26
// MAIN //
22
27
23
28
/**
@@ -82,7 +87,7 @@ function every3d( x ) {
82
87
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
83
88
sh = x . shape ;
84
89
sx = x . strides ;
85
- if ( x . order === 'row-major' ) {
90
+ if ( isRowMajor ( x . order ) ) {
86
91
// For row-major ndarrays, the last dimensions have the fastest changing indices...
87
92
S0 = sh [ 2 ] ;
88
93
S1 = sh [ 1 ] ;
Original file line number Diff line number Diff line change 18
18
19
19
'use strict' ;
20
20
21
+ // MODULES //
22
+
23
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
24
+
25
+
21
26
// MAIN //
22
27
23
28
/**
@@ -86,7 +91,7 @@ function every3d( x ) {
86
91
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
87
92
sh = x . shape ;
88
93
sx = x . strides ;
89
- if ( x . order === 'row-major' ) {
94
+ if ( isRowMajor ( x . order ) ) {
90
95
// For row-major ndarrays, the last dimensions have the fastest changing indices...
91
96
S0 = sh [ 2 ] ;
92
97
S1 = sh [ 1 ] ;
Original file line number Diff line number Diff line change 18
18
19
19
'use strict' ;
20
20
21
+ // MODULES //
22
+
23
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
24
+
25
+
21
26
// MAIN //
22
27
23
28
/**
@@ -82,7 +87,7 @@ function every3d( x ) {
82
87
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
83
88
sh = x . shape ;
84
89
sx = x . strides ;
85
- if ( x . order === 'row-major' ) {
90
+ if ( isRowMajor ( x . order ) ) {
86
91
// For row-major ndarrays, the last dimensions have the fastest changing indices...
87
92
S0 = sh [ 2 ] ;
88
93
S1 = sh [ 1 ] ;
Original file line number Diff line number Diff line change 18
18
19
19
'use strict' ;
20
20
21
+ // MODULES //
22
+
23
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
24
+
25
+
21
26
// MAIN //
22
27
23
28
/**
@@ -85,7 +90,7 @@ function every4d( x ) {
85
90
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
86
91
sh = x . shape ;
87
92
sx = x . strides ;
88
- if ( x . order === 'row-major' ) {
93
+ if ( isRowMajor ( x . order ) ) {
89
94
// For row-major ndarrays, the last dimensions have the fastest changing indices...
90
95
S0 = sh [ 3 ] ;
91
96
S1 = sh [ 2 ] ;
Original file line number Diff line number Diff line change 18
18
19
19
'use strict' ;
20
20
21
+ // MODULES //
22
+
23
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
24
+
25
+
21
26
// MAIN //
22
27
23
28
/**
@@ -89,7 +94,7 @@ function every4d( x ) {
89
94
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
90
95
sh = x . shape ;
91
96
sx = x . strides ;
92
- if ( x . order === 'row-major' ) {
97
+ if ( isRowMajor ( x . order ) ) {
93
98
// For row-major ndarrays, the last dimensions have the fastest changing indices...
94
99
S0 = sh [ 3 ] ;
95
100
S1 = sh [ 2 ] ;
Original file line number Diff line number Diff line change 18
18
19
19
'use strict' ;
20
20
21
+ // MODULES //
22
+
23
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
24
+
25
+
21
26
// MAIN //
22
27
23
28
/**
@@ -85,7 +90,7 @@ function every4d( x ) {
85
90
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
86
91
sh = x . shape ;
87
92
sx = x . strides ;
88
- if ( x . order === 'row-major' ) {
93
+ if ( isRowMajor ( x . order ) ) {
89
94
// For row-major ndarrays, the last dimensions have the fastest changing indices...
90
95
S0 = sh [ 3 ] ;
91
96
S1 = sh [ 2 ] ;
Original file line number Diff line number Diff line change 20
20
21
21
'use strict' ;
22
22
23
+ // MODULES //
24
+
25
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
26
+
27
+
23
28
// MAIN //
24
29
25
30
/**
@@ -90,7 +95,7 @@ function every5d( x ) {
90
95
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
91
96
sh = x . shape ;
92
97
sx = x . strides ;
93
- if ( x . order === 'row-major' ) {
98
+ if ( isRowMajor ( x . order ) ) {
94
99
// For row-major ndarrays, the last dimensions have the fastest changing indices...
95
100
S0 = sh [ 4 ] ;
96
101
S1 = sh [ 3 ] ;
Original file line number Diff line number Diff line change 20
20
21
21
'use strict' ;
22
22
23
+ // MODULES //
24
+
25
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
26
+
27
+
23
28
// MAIN //
24
29
25
30
/**
@@ -94,7 +99,7 @@ function every5d( x ) {
94
99
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
95
100
sh = x . shape ;
96
101
sx = x . strides ;
97
- if ( x . order === 'row-major' ) {
102
+ if ( isRowMajor ( x . order ) ) {
98
103
// For row-major ndarrays, the last dimensions have the fastest changing indices...
99
104
S0 = sh [ 4 ] ;
100
105
S1 = sh [ 3 ] ;
Original file line number Diff line number Diff line change 20
20
21
21
'use strict' ;
22
22
23
+ // MODULES //
24
+
25
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
26
+
27
+
23
28
// MAIN //
24
29
25
30
/**
@@ -90,7 +95,7 @@ function every5d( x ) {
90
95
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
91
96
sh = x . shape ;
92
97
sx = x . strides ;
93
- if ( x . order === 'row-major' ) {
98
+ if ( isRowMajor ( x . order ) ) {
94
99
// For row-major ndarrays, the last dimensions have the fastest changing indices...
95
100
S0 = sh [ 4 ] ;
96
101
S1 = sh [ 3 ] ;
Original file line number Diff line number Diff line change 20
20
21
21
'use strict' ;
22
22
23
+ // MODULES //
24
+
25
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
26
+
27
+
23
28
// MAIN //
24
29
25
30
/**
@@ -93,7 +98,7 @@ function every6d( x ) {
93
98
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
94
99
sh = x . shape ;
95
100
sx = x . strides ;
96
- if ( x . order === 'row-major' ) {
101
+ if ( isRowMajor ( x . order ) ) {
97
102
// For row-major ndarrays, the last dimensions have the fastest changing indices...
98
103
S0 = sh [ 5 ] ;
99
104
S1 = sh [ 4 ] ;
Original file line number Diff line number Diff line change 20
20
21
21
'use strict' ;
22
22
23
+ // MODULES //
24
+
25
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
26
+
27
+
23
28
// MAIN //
24
29
25
30
/**
@@ -97,7 +102,7 @@ function every6d( x ) {
97
102
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
98
103
sh = x . shape ;
99
104
sx = x . strides ;
100
- if ( x . order === 'row-major' ) {
105
+ if ( isRowMajor ( x . order ) ) {
101
106
// For row-major ndarrays, the last dimensions have the fastest changing indices...
102
107
S0 = sh [ 5 ] ;
103
108
S1 = sh [ 4 ] ;
Original file line number Diff line number Diff line change 20
20
21
21
'use strict' ;
22
22
23
+ // MODULES //
24
+
25
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
26
+
27
+
23
28
// MAIN //
24
29
25
30
/**
@@ -93,7 +98,7 @@ function every6d( x ) {
93
98
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
94
99
sh = x . shape ;
95
100
sx = x . strides ;
96
- if ( x . order === 'row-major' ) {
101
+ if ( isRowMajor ( x . order ) ) {
97
102
// For row-major ndarrays, the last dimensions have the fastest changing indices...
98
103
S0 = sh [ 5 ] ;
99
104
S1 = sh [ 4 ] ;
Original file line number Diff line number Diff line change 20
20
21
21
'use strict' ;
22
22
23
+ // MODULES //
24
+
25
+ var isRowMajor = require ( '@stdlib/ndarray/base/assert/is-row-major-string' ) ;
26
+
27
+
23
28
// MAIN //
24
29
25
30
/**
@@ -96,7 +101,7 @@ function every7d( x ) {
96
101
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
97
102
sh = x . shape ;
98
103
sx = x . strides ;
99
- if ( x . order === 'row-major' ) {
104
+ if ( isRowMajor ( x . order ) ) {
100
105
// For row-major ndarrays, the last dimensions have the fastest changing indices...
101
106
S0 = sh [ 6 ] ;
102
107
S1 = sh [ 5 ] ;
You can’t perform that action at this time.
0 commit comments