Skip to content

Commit c9e2fc3

Browse files
authored
docs: update ndarray TypeScript declarations
PR-URL: #9757 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com> Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>
1 parent 359927e commit c9e2fc3

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/docs/types

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

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,6 @@ interface Namespace {
17011701
* @example
17021702
* var Float64Array = require( '@stdlib/array/float64' );
17031703
* var ndarray = require( '@stdlib/ndarray/ctor' );
1704-
* var ndarray2array = require( '@stdlib/ndarray/to-array' );
17051704
*
17061705
* function scale( z ) {
17071706
* return z * 10.0;
@@ -1719,10 +1718,7 @@ interface Namespace {
17191718
* 'dtype': 'generic'
17201719
* };
17211720
* var y = ns.map( x, opts, scale );
1722-
* // returns <ndarray>
1723-
*
1724-
* var arr = ndarray2array( y );
1725-
* // returns [ [ 20, 30, 40 ], [ 80, 90, 100 ] ]
1721+
* // returns <ndarray>[ [ 20, 30, 40 ], [ 80, 90, 100 ] ]
17261722
*/
17271723
map: typeof map;
17281724

@@ -2622,10 +2618,7 @@ interface Namespace {
26222618
*
26232619
* // Perform reduction:
26242620
* var out = ns.someBy( x, 3, isEven );
2625-
* // returns <ndarray>
2626-
*
2627-
* var v = out.get();
2628-
* // returns true
2621+
* // returns <ndarray>[ true ]
26292622
*
26302623
* @example
26312624
* var Float64Array = require( '@stdlib/array/float64' );
@@ -2655,10 +2648,7 @@ interface Namespace {
26552648
*
26562649
* // Perform reduction:
26572650
* var out = ns.someBy.assign( x, 3, y, isEven );
2658-
* // returns <ndarray>
2659-
*
2660-
* var v = out.get();
2661-
* // returns true
2651+
* // returns <ndarray>[ true ]
26622652
*/
26632653
someBy: typeof someBy;
26642654

0 commit comments

Comments
 (0)