Skip to content

Commit 01ab290

Browse files
authored
fix: rename import in ndarray/base/unary-strided1d-dispatch to resolve conflict
PR-URL: #9010 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 4304bee commit 01ab290

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/ndarray/base/unary-reduce-strided1d-dispatch/lib

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/ndarray/base/unary-reduce-strided1d-dispatch/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var getShape = require( '@stdlib/ndarray/shape' ); // note: non-base accessor is
4444
var ndims = require( '@stdlib/ndarray/ndims' );
4545
var getDType = require( '@stdlib/ndarray/base/dtype' );
4646
var getOrder = require( '@stdlib/ndarray/base/order' );
47-
var assign = require( '@stdlib/ndarray/base/assign' );
47+
var ndarrayAssign = require( '@stdlib/ndarray/base/assign' );
4848
var baseEmpty = require( '@stdlib/ndarray/base/empty' );
4949
var empty = require( '@stdlib/ndarray/empty' );
5050
var indicesComplement = require( '@stdlib/array/base/indices-complement' );
@@ -296,7 +296,7 @@ setReadOnly( UnaryStrided1dDispatch.prototype, 'apply', function apply( x ) {
296296
if ( xdt !== dt ) {
297297
// TODO: replace the following logic with a call to `ndarray/base/(?maybe-)(cast|convert|copy)` or similar utility
298298
tmp = baseEmpty( dt, shx, getOrder( x ) );
299-
assign( [ x, tmp ] );
299+
ndarrayAssign( [ x, tmp ] );
300300
args[ 0 ] = tmp;
301301
xdt = dt;
302302
}
@@ -447,7 +447,7 @@ setReadOnly( UnaryStrided1dDispatch.prototype, 'assign', function assign( x ) {
447447
if ( xdt !== dt ) {
448448
// TODO: replace the following logic with a call to `ndarray/base/(?maybe-)(cast|convert|copy)` or similar utility
449449
tmp = baseEmpty( dt, getShape( x ), getOrder( x ) );
450-
assign( [ x, tmp ] );
450+
ndarrayAssign( [ x, tmp ] );
451451
args[ 0 ] = tmp;
452452
xdt = dt;
453453
}

0 commit comments

Comments
 (0)