Skip to content

Commit a4900ed

Browse files
committed
Auto-generated commit
1 parent 5ae76c9 commit a4900ed

File tree

6 files changed

+7
-22
lines changed

6 files changed

+7
-22
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3796,6 +3796,7 @@ A total of 586 issues were closed in this release:
37963796

37973797
<details>
37983798

3799+
- [`9e562a3`](https://github.com/stdlib-js/stdlib/commit/9e562a3d9c9650d384bb6a3f8966a0c7e1c6a307) - **docs:** improve doctests for ndarray instances in `stats/base/ndarray/cumin` [(#11523)](https://github.com/stdlib-js/stdlib/pull/11523) _(by Uday Kakade)_
37993800
- [`a19ed4c`](https://github.com/stdlib-js/stdlib/commit/a19ed4c1ebd7a8e2124665cf5b9442e7e970eb19) - **docs:** improve doctests for ndarray instances in `stats/base/ndarray/cumax` [(#11522)](https://github.com/stdlib-js/stdlib/pull/11522) _(by Uday Kakade)_
38003801
- [`00385f6`](https://github.com/stdlib-js/stdlib/commit/00385f618ba07beba4fa4be45feee0f55591aa5f) - **docs:** improve doctests for ndarray instances in `stats/base/ndarray/dcumin` [(#11521)](https://github.com/stdlib-js/stdlib/pull/11521) _(by Uday Kakade)_
38013802
- [`2505815`](https://github.com/stdlib-js/stdlib/commit/25058156cf7b1138c5c33209a5143100c376b46d) - **docs:** update namespace table of contents [(#11520)](https://github.com/stdlib-js/stdlib/pull/11520) _(by stdlib-bot)_

base/ndarray/cumin/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ var cumin = require( '@stdlib/stats/base/ndarray/cumin' );
4141
Computes the cumulative minimum value of a one-dimensional ndarray.
4242

4343
```javascript
44-
var ndarray2array = require( '@stdlib/ndarray/to-array' );
4544
var ndarray = require( '@stdlib/ndarray/base/ctor' );
4645

4746
var xbuf = [ 1.0, 3.0, 4.0, 2.0 ];
@@ -51,13 +50,10 @@ var ybuf = [ 0.0, 0.0, 0.0, 0.0 ];
5150
var y = new ndarray( 'generic', xbuf, [ 4 ], [ 1 ], 0, 'row-major' );
5251

5352
var v = cumin( [ x, y ] );
54-
// returns <ndarray>
53+
// returns <ndarray>[ 1.0, 1.0, 1.0, 1.0 ]
5554

5655
var bool = ( v === y );
5756
// returns true
58-
59-
var arr = ndarray2array( v );
60-
// returns [ 1.0, 1.0, 1.0, 1.0 ]
6157
```
6258

6359
The function has the following parameters:

base/ndarray/cumin/docs/repl.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@
2727
> var ord = 'row-major';
2828
> var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord );
2929
> var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord );
30-
> {{alias}}( [ x, y ] );
31-
> {{alias:@stdlib/ndarray/to-array}}( y )
32-
[ 1.0, -2.0, -2.0 ]
30+
> {{alias}}( [ x, y ] )
31+
<ndarray>[ 1.0, -2.0, -2.0 ]
3332

3433
See Also
3534
--------

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import { ndarray, typedndarray } from '@stdlib/types/ndarray';
2929
* @returns output ndarray
3030
*
3131
* @example
32-
* var ndarray2array = require( '@stdlib/ndarray/to-array' );
3332
* var ndarray = require( '@stdlib/ndarray/base/ctor' );
3433
*
3534
* var xbuf = [ 1.0, 3.0, 4.0, 2.0 ];
@@ -39,13 +38,10 @@ import { ndarray, typedndarray } from '@stdlib/types/ndarray';
3938
* var y = new ndarray( 'generic', ybuf, [ 4 ], [ 1 ], 0, 'row-major' );
4039
*
4140
* var v = cumin( [ x, y ] );
42-
* // returns <ndarray>
41+
* // returns <ndarray>[ 1.0, 1.0, 1.0, 1.0 ]
4342
*
4443
* var bool = ( v === y );
4544
* // returns true
46-
*
47-
* var arr = ndarray2array( v );
48-
* // returns [ 1.0, 1.0, 1.0, 1.0 ]
4945
*/
5046
declare function cumin<T extends typedndarray<unknown> = typedndarray<unknown>>( arrays: [ ndarray, T ] ): T;
5147

base/ndarray/cumin/lib/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
* @module @stdlib/stats/base/ndarray/cumin
2525
*
2626
* @example
27-
* var ndarray2array = require( '@stdlib/ndarray/to-array' );
2827
* var ndarray = require( '@stdlib/ndarray/base/ctor' );
2928
* var cumin = require( '@stdlib/stats/base/ndarray/cumin' );
3029
*
@@ -35,13 +34,10 @@
3534
* var y = new ndarray( 'generic', xbuf, [ 4 ], [ 1 ], 0, 'row-major' );
3635
*
3736
* var v = cumin( [ x, y ] );
38-
* // returns <ndarray>
37+
* // returns <ndarray>[ 1.0, 1.0, 1.0, 1.0 ]
3938
*
4039
* var bool = ( v === y );
4140
* // returns true
42-
*
43-
* var arr = ndarray2array( v );
44-
* // returns [ 1.0, 1.0, 1.0, 1.0 ]
4541
*/
4642

4743
// MODULES //

base/ndarray/cumin/lib/main.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,10 @@ var strided = require( './../../../../base/cumin' ).ndarray;
4646
* var y = new ndarray( 'generic', xbuf, [ 4 ], [ 1 ], 0, 'row-major' );
4747
*
4848
* var v = cumin( [ x, y ] );
49-
* // returns <ndarray>
49+
* // returns <ndarray>[ 1.0, 1.0, 1.0, 1.0 ]
5050
*
5151
* var bool = ( v === y );
5252
* // returns true
53-
*
54-
* var arr = ndarray2array( v );
55-
* // returns [ 1.0, 1.0, 1.0, 1.0 ]
5653
*/
5754
function cumin( arrays ) {
5855
var x = arrays[ 0 ];

0 commit comments

Comments
 (0)