You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Sorts a one-dimensional double-precision floating-point ndarray.
545
+
*
546
+
* ## Notes
547
+
*
548
+
* - When the sort order is less than zero, the input ndarray is sorted in **decreasing** order. When the sort order is greater than zero, the input ndarray is sorted in **increasing** order. When the sort order is equal to zero, the input ndarray is left unchanged.
549
+
*
550
+
* @param arrays - array-like object containing a one-dimensional input ndarray and a zero-dimensional ndarray specifying the sort order
551
+
* @returns input ndarray
552
+
*
553
+
* @example
554
+
* var Float64Array = require( '@stdlib/array/float64' );
555
+
* var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
556
+
* var ndarray = require( '@stdlib/ndarray/base/ctor' );
557
+
*
558
+
* var xbuf = new Float64Array( [ 1.0, -2.0, 3.0, -4.0 ] );
559
+
* var x = new ndarray( 'float64', xbuf, [ 4 ], [ 1 ], 0, 'row-major' );
560
+
*
561
+
* var ord = scalar2ndarray( 1.0, {
562
+
* 'dtype': 'generic'
563
+
* });
564
+
*
565
+
* var out = ns.dsort( [ x, ord ] );
566
+
* // returns <ndarray>[ -4.0, -2.0, 1.0, 3.0 ]
567
+
*
568
+
* var bool = ( out === x );
569
+
* // returns true
570
+
*/
571
+
dsort: typeofdsort;
572
+
541
573
/**
542
574
* Sorts a one-dimensional double-precision floating-point ndarray using heapsort.
543
575
*
@@ -1723,6 +1755,36 @@ interface Namespace {
1723
1755
*/
1724
1756
soneTo: typeofsoneTo;
1725
1757
1758
+
/**
1759
+
* Sorts a one-dimensional single-precision floating-point ndarray.
1760
+
*
1761
+
* ## Notes
1762
+
*
1763
+
* - When the sort order is less than zero, the input ndarray is sorted in **decreasing** order. When the sort order is greater than zero, the input ndarray is sorted in **increasing** order. When the sort order is equal to zero, the input ndarray is left unchanged.
1764
+
*
1765
+
* @param arrays - array-like object containing a one-dimensional input ndarray and a zero-dimensional ndarray specifying the sort order
1766
+
* @returns input ndarray
1767
+
*
1768
+
* @example
1769
+
* var Float32Array = require( '@stdlib/array/float32' );
1770
+
* var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
1771
+
* var ndarray = require( '@stdlib/ndarray/base/ctor' );
1772
+
*
1773
+
* var xbuf = new Float32Array( [ 1.0, -2.0, 3.0, -4.0 ] );
1774
+
* var x = new ndarray( 'float32', xbuf, [ 4 ], [ 1 ], 0, 'row-major' );
1775
+
*
1776
+
* var ord = scalar2ndarray( 1.0, {
1777
+
* 'dtype': 'generic'
1778
+
* });
1779
+
*
1780
+
* var out = ns.ssort( [ x, ord ] );
1781
+
* // returns <ndarray>[ -4.0, -2.0, 1.0, 3.0 ]
1782
+
*
1783
+
* var bool = ( out === x );
1784
+
* // returns true
1785
+
*/
1786
+
ssort: typeofssort;
1787
+
1726
1788
/**
1727
1789
* Sorts a one-dimensional single-precision floating-point ndarray using heapsort.
0 commit comments