Skip to content

Commit 143bb4b

Browse files
authored
feat: update blas/ext/base/ndarray TypeScript declarations
PR-URL: #11329 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 21f03e5 commit 143bb4b

File tree

1 file changed

+19
-0
lines changed
  • lib/node_modules/@stdlib/blas/ext/base/ndarray/docs/types

1 file changed

+19
-0
lines changed

lib/node_modules/@stdlib/blas/ext/base/ndarray/docs/types/index.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ import gnansumkbn = require( '@stdlib/blas/ext/base/ndarray/gnansumkbn' );
6565
import gnansumkbn2 = require( '@stdlib/blas/ext/base/ndarray/gnansumkbn2' );
6666
import gnansumors = require( '@stdlib/blas/ext/base/ndarray/gnansumors' );
6767
import gnansumpw = require( '@stdlib/blas/ext/base/ndarray/gnansumpw' );
68+
import goneTo = require( '@stdlib/blas/ext/base/ndarray/gone-to' );
6869
import gsort = require( '@stdlib/blas/ext/base/ndarray/gsort' );
6970
import gsorthp = require( '@stdlib/blas/ext/base/ndarray/gsorthp' );
7071
import gsum = require( '@stdlib/blas/ext/base/ndarray/gsum' );
@@ -1176,6 +1177,24 @@ interface Namespace {
11761177
*/
11771178
gnansumpw: typeof gnansumpw;
11781179

1180+
/**
1181+
* Fills a one-dimensional ndarray with linearly spaced numeric elements which increment by `1` starting from one.
1182+
*
1183+
* @param arrays - array-like object containing a one-dimensional input ndarray
1184+
* @returns input ndarray
1185+
*
1186+
* @example
1187+
* var ndarray = require( '@stdlib/ndarray/base/ctor' );
1188+
*
1189+
* var xbuf = [ 0.0, 0.0, 0.0, 0.0 ];
1190+
* var x = new ndarray( 'generic', xbuf, [ 4 ], [ 1 ], 0, 'row-major' );
1191+
* // returns <ndarray>[ 0.0, 0.0, 0.0, 0.0 ]
1192+
*
1193+
* var out = ns.goneTo( [ x ] );
1194+
* // returns <ndarray>[ 1.0, 2.0, 3.0, 4.0 ]
1195+
*/
1196+
goneTo: typeof goneTo;
1197+
11791198
/**
11801199
* Sorts a one-dimensional ndarray.
11811200
*

0 commit comments

Comments
 (0)