File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
lib/node_modules/@stdlib/ndarray/base/unary/lib Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 21
21
// MODULES //
22
22
23
23
var iterationOrder = require ( '@stdlib/ndarray/base/iteration-order' ) ;
24
+ var strides2order = require ( '@stdlib/ndarray/base/strides2order' ) ;
24
25
var minmaxViewBufferIndex = require ( '@stdlib/ndarray/base/minmax-view-buffer-index' ) ;
25
26
var ndarray2object = require ( '@stdlib/ndarray/base/ndarraylike2object' ) ;
26
27
var format = require ( '@stdlib/string/format' ) ;
@@ -277,7 +278,7 @@ function unary( arrays, fcn ) {
277
278
ioy = iterationOrder ( sy ) ; // +/-1
278
279
279
280
// Determine whether we can avoid blocked iteration...
280
- if ( iox !== 0 && ioy !== 0 && iox === ioy ) {
281
+ if ( iox !== 0 && ioy !== 0 && strides2order ( sx ) === strides2order ( sy ) ) { // eslint-disable-line max-len
281
282
// Determine the minimum and maximum linear indices which are accessible by the array views:
282
283
xmmv = minmaxViewBufferIndex ( shx , sx , x . offset ) ;
283
284
ymmv = minmaxViewBufferIndex ( shy , sy , y . offset ) ;
You can’t perform that action at this time.
0 commit comments