File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
lib/node_modules/@stdlib/ndarray/base/assign/lib Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ var isRealDataType = require( '@stdlib/ndarray/base/assert/is-real-data-type' );
25
25
var isComplexArray = require ( '@stdlib/array/base/assert/is-complex-typed-array' ) ;
26
26
var isBooleanArray = require ( '@stdlib/array/base/assert/is-booleanarray' ) ;
27
27
var iterationOrder = require ( '@stdlib/ndarray/base/iteration-order' ) ;
28
+ var strides2order = require ( '@stdlib/ndarray/base/strides2order' ) ;
28
29
var castReturn = require ( '@stdlib/complex/base/cast-return' ) ;
29
30
var complexCtors = require ( '@stdlib/complex/ctors' ) ;
30
31
var minmaxViewBufferIndex = require ( '@stdlib/ndarray/base/minmax-view-buffer-index' ) ;
@@ -351,7 +352,7 @@ function assign( arrays ) {
351
352
ioy = iterationOrder ( sy ) ; // +/-1
352
353
353
354
// Determine whether we can avoid blocked iteration...
354
- if ( iox !== 0 && ioy !== 0 && iox === ioy ) {
355
+ if ( iox !== 0 && ioy !== 0 && strides2order ( sx ) === strides2order ( sy ) ) {
355
356
// Determine the minimum and maximum linear indices which are accessible by the array views:
356
357
xmmv = minmaxViewBufferIndex ( shx , sx , x . offset ) ;
357
358
ymmv = minmaxViewBufferIndex ( shy , sy , y . offset ) ;
You can’t perform that action at this time.
0 commit comments