Skip to content

Commit c6d177d

Browse files
authored
docs: update example
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 8f05f3d commit c6d177d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/blas/ext/base/ndarray/dcusumors/lib

lib/node_modules/@stdlib/blas/ext/base/ndarray/dcusumors/lib/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,13 @@
3838
*
3939
* var initial = scalar2ndarray( 0.0, 'float64', 'row-major' );
4040
*
41-
* dcusumors( [ x, y, initial ] );
41+
* var v = dcusumors( [ x, y, initial ] );
42+
* // returns <ndarray>
4243
*
43-
* var arr = ndarray2array( y );
44+
* var bool = ( v === y );
45+
* // returns true
46+
*
47+
* var arr = ndarray2array( v );
4448
* // returns [ 1.0, 4.0, 8.0, 10.0 ]
4549
*/
4650

0 commit comments

Comments
 (0)