Skip to content

Commit bca9f25

Browse files
stdlib-botnakul-krishnakumar
authored andcommitted
docs: update blas/ext/base/ndarray TypeScript declaration example code
PR-URL: stdlib-js#9793 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com> Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>
1 parent 33c339d commit bca9f25

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • lib/node_modules/@stdlib/blas/ext/base/ndarray/docs/types

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ interface Namespace {
7373
*
7474
* @example
7575
* var Float64Array = require( '@stdlib/array/float64' );
76-
* var ndarray2array = require( '@stdlib/ndarray/to-array' );
7776
* var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' );
7877
* var ndarray = require( '@stdlib/ndarray/base/ctor' );
7978
*
@@ -86,13 +85,10 @@ interface Namespace {
8685
* var initial = scalar2ndarray( 0.0, 'float64', 'row-major' );
8786
*
8887
* var v = ns.dcusum( [ x, y, initial ] );
89-
* // returns <ndarray>
88+
* // returns <ndarray>[ 1.0, 4.0, 8.0, 10.0 ]
9089
*
9190
* var bool = ( v === y );
9291
* // returns true
93-
*
94-
* var arr = ndarray2array( v );
95-
* // returns [ 1.0, 4.0, 8.0, 10.0 ]
9692
*/
9793
dcusum: typeof dcusum;
9894

0 commit comments

Comments
 (0)