File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
lib/node_modules/@stdlib/ndarray/base/ctor/lib Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 18
18
19
19
'use strict' ;
20
20
21
+ // MODULES //
22
+
23
+ var isColumnMajor = require ( '@stdlib/ndarray/base/assert/is-column-major-string' ) ;
24
+
25
+
21
26
// MAIN //
22
27
23
28
/**
@@ -67,7 +72,7 @@ function iget( idx ) {
67
72
shape = this . _shape ;
68
73
strides = this . _strides ;
69
74
ind = this . _offset ;
70
- if ( this . _order === 'column-major' ) {
75
+ if ( isColumnMajor ( this . _order ) ) {
71
76
for ( i = 0 ; i < ndims ; i ++ ) {
72
77
s = idx % shape [ i ] ;
73
78
idx -= s ;
Original file line number Diff line number Diff line change 18
18
19
19
'use strict' ;
20
20
21
+ // MODULES //
22
+
23
+ var isColumnMajor = require ( '@stdlib/ndarray/base/assert/is-column-major-string' ) ;
24
+
25
+
21
26
// MAIN //
22
27
23
28
/**
@@ -74,7 +79,7 @@ function iset( idx, v ) {
74
79
shape = this . _shape ;
75
80
strides = this . _strides ;
76
81
ind = this . _offset ;
77
- if ( this . _order === 'column-major' ) {
82
+ if ( isColumnMajor ( this . _order ) ) {
78
83
for ( i = 0 ; i < ndims ; i ++ ) {
79
84
s = idx % shape [ i ] ;
80
85
idx -= s ;
You can’t perform that action at this time.
0 commit comments