File tree 2 files changed +3
-55
lines changed
lib/node_modules/@stdlib/ndarray/base/unary/lib
2 files changed +3
-55
lines changed Original file line number Diff line number Diff line change 23
23
var bytesPerElement = require ( '@stdlib/ndarray/base/bytes-per-element' ) ;
24
24
var zeroTo = require ( '@stdlib/array/base/zero-to' ) ;
25
25
var copy = require ( '@stdlib/array/base/copy-indexed' ) ;
26
+ var take = require ( '@stdlib/array/base/take' ) ;
26
27
var sort2ins = require ( './sort2ins.js' ) ;
27
- var permute = require ( './permute.js' ) ;
28
28
var defaults = require ( './defaults.js' ) ;
29
29
30
30
@@ -77,8 +77,8 @@ function init( x, y ) {
77
77
sort2ins ( sx , idx ) ;
78
78
79
79
// Permute the shape and output array strides based on the sorted input array strides:
80
- sh = permute ( sh , idx ) ;
81
- sy = permute ( y . strides , idx ) ;
80
+ sh = take ( sh , idx ) ;
81
+ sy = take ( y . strides , idx ) ;
82
82
83
83
// Determine the block size...
84
84
nbx = bytesPerElement ( x . dtype ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments