Skip to content

Commit a1636d0

Browse files
committed
Auto-generated commit
1 parent d01116c commit a1636d0

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Features
1212

13+
- [`2ab6254`](https://github.com/stdlib-js/stdlib/commit/2ab6254a552c8bb1024eb5fc5baa35cd4812f64b) - update `blas/ext/base/ndarray` TypeScript declarations [(#11496)](https://github.com/stdlib-js/stdlib/pull/11496)
1314
- [`aacc13a`](https://github.com/stdlib-js/stdlib/commit/aacc13a91e7131c5829cdb3622990a92805aabc9) - add `dsort` to namespace
1415
- [`56329f6`](https://github.com/stdlib-js/stdlib/commit/56329f6843adb81d057638457604f1442db76484) - add `ssort` to namespace
1516
- [`fafa2d5`](https://github.com/stdlib-js/stdlib/commit/fafa2d535bd201a047b251afdb6aaa096b998961) - add `blas/ext/base/ndarray/ssort` [(#11484)](https://github.com/stdlib-js/stdlib/pull/11484)
@@ -863,6 +864,7 @@ A total of 57 issues were closed in this release:
863864

864865
<details>
865866

867+
- [`2ab6254`](https://github.com/stdlib-js/stdlib/commit/2ab6254a552c8bb1024eb5fc5baa35cd4812f64b) - **feat:** update `blas/ext/base/ndarray` TypeScript declarations [(#11496)](https://github.com/stdlib-js/stdlib/pull/11496) _(by stdlib-bot)_
866868
- [`aacc13a`](https://github.com/stdlib-js/stdlib/commit/aacc13a91e7131c5829cdb3622990a92805aabc9) - **feat:** add `dsort` to namespace _(by Athan Reines)_
867869
- [`56329f6`](https://github.com/stdlib-js/stdlib/commit/56329f6843adb81d057638457604f1442db76484) - **feat:** add `ssort` to namespace _(by Athan Reines)_
868870
- [`fafa2d5`](https://github.com/stdlib-js/stdlib/commit/fafa2d535bd201a047b251afdb6aaa096b998961) - **feat:** add `blas/ext/base/ndarray/ssort` [(#11484)](https://github.com/stdlib-js/stdlib/pull/11484) _(by Muhammad Haris, Athan Reines)_

ext/base/ndarray/docs/types/index.d.ts

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import dnansumkbn2 = require( './../../../../../ext/base/ndarray/dnansumkbn2' );
3939
import dnansumors = require( './../../../../../ext/base/ndarray/dnansumors' );
4040
import dnansumpw = require( './../../../../../ext/base/ndarray/dnansumpw' );
4141
import doneTo = require( './../../../../../ext/base/ndarray/done-to' );
42+
import dsort = require( './../../../../../ext/base/ndarray/dsort' );
4243
import dsorthp = require( './../../../../../ext/base/ndarray/dsorthp' );
4344
import dsortins = require( './../../../../../ext/base/ndarray/dsortins' );
4445
import dsortsh = require( './../../../../../ext/base/ndarray/dsortsh' );
@@ -89,6 +90,7 @@ import snansumkbn2 = require( './../../../../../ext/base/ndarray/snansumkbn2' );
8990
import snansumors = require( './../../../../../ext/base/ndarray/snansumors' );
9091
import snansumpw = require( './../../../../../ext/base/ndarray/snansumpw' );
9192
import soneTo = require( './../../../../../ext/base/ndarray/sone-to' );
93+
import ssort = require( './../../../../../ext/base/ndarray/ssort' );
9294
import ssorthp = require( './../../../../../ext/base/ndarray/ssorthp' );
9395
import ssum = require( './../../../../../ext/base/ndarray/ssum' );
9496
import ssumkbn = require( './../../../../../ext/base/ndarray/ssumkbn' );
@@ -538,6 +540,36 @@ interface Namespace {
538540
*/
539541
doneTo: typeof doneTo;
540542

543+
/**
544+
* 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: typeof dsort;
572+
541573
/**
542574
* Sorts a one-dimensional double-precision floating-point ndarray using heapsort.
543575
*
@@ -1723,6 +1755,36 @@ interface Namespace {
17231755
*/
17241756
soneTo: typeof soneTo;
17251757

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: typeof ssort;
1787+
17261788
/**
17271789
* Sorts a one-dimensional single-precision floating-point ndarray using heapsort.
17281790
*

0 commit comments

Comments
 (0)