Skip to content

Commit 47c06d0

Browse files
committed
Auto-generated commit
1 parent 9b539e3 commit 47c06d0

File tree

11 files changed

+41
-139
lines changed

11 files changed

+41
-139
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3524,6 +3524,8 @@ A total of 558 issues were closed in this release:
35243524

35253525
<details>
35263526

3527+
- [`f5ac8bf`](https://github.com/stdlib-js/stdlib/commit/f5ac8bf84a07bc581e7be667b9548c1dfe185eaf) - **docs:** update return annotations to use ndarray instance notation for `stats/nanmax` [(#9122)](https://github.com/stdlib-js/stdlib/pull/9122) _(by Sachin Pangal)_
3528+
- [`6ef2522`](https://github.com/stdlib-js/stdlib/commit/6ef252265ac04446eb43ea78093b0caac5f04bce) - **docs:** update return annotations to use ndarray instance notation for `stats/meankbn` [(#9093)](https://github.com/stdlib-js/stdlib/pull/9093) _(by Pratik, Athan Reines)_
35273529
- [`e23bad7`](https://github.com/stdlib-js/stdlib/commit/e23bad75d0635153bd643441192b3d3817bc33f3) - **docs:** update return annotations to use ndarray instance notation for `stats/mean` [(#9092)](https://github.com/stdlib-js/stdlib/pull/9092) _(by Pratik, Athan Reines)_
35283530
- [`5e0faf8`](https://github.com/stdlib-js/stdlib/commit/5e0faf88ff77013e8f29fb29d73eeec9f7cc64d7) - **docs:** update return annotations to use ndarray instance notation for `stats/meankbn2` [(#9100)](https://github.com/stdlib-js/stdlib/pull/9100) _(by Pratik, Athan Reines)_
35293531
- [`ef6af24`](https://github.com/stdlib-js/stdlib/commit/ef6af24d7711c680e58d393a70b16f65ee675ad5) - **docs:** update return annotations to use ndarray instance notation for `stats/minsorted` [(#9089)](https://github.com/stdlib-js/stdlib/pull/9089) _(by Sachin Pangal)_

meankbn/README.md

Lines changed: 10 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ var array = require( '@stdlib/ndarray/array' );
6161
var x = array( [ 1.0, 2.0, -2.0, 4.0 ] );
6262

6363
var y = meankbn( x );
64-
// returns <ndarray>
65-
66-
var v = y.get();
67-
// returns 1.25
64+
// returns <ndarray>[ 1.25 ]
6865
```
6966

7067
The function has the following parameters:
@@ -81,81 +78,58 @@ The function accepts the following options:
8178
By default, the function performs a reduction over all elements in a provided input [ndarray][@stdlib/ndarray/ctor]. To perform a reduction over specific dimensions, provide a `dims` option.
8279

8380
```javascript
84-
var ndarray2array = require( '@stdlib/ndarray/to-array' );
8581
var array = require( '@stdlib/ndarray/array' );
8682

8783
var x = array( [ 1.0, 2.0, -2.0, 4.0 ], {
8884
'shape': [ 2, 2 ],
8985
'order': 'row-major'
9086
});
91-
var v = ndarray2array( x );
92-
// returns [ [ 1.0, 2.0 ], [ -2.0, 4.0 ] ]
87+
// returns <ndarray>[ [ 1.0, 2.0 ], [ -2.0, 4.0 ] ]
9388

9489
var y = meankbn( x, {
9590
'dims': [ 0 ]
9691
});
97-
// returns <ndarray>
98-
99-
v = ndarray2array( y );
100-
// returns [ -0.5, 3.0 ]
92+
// returns <ndarray>[ -0.5, 3.0 ]
10193

10294
y = meankbn( x, {
10395
'dims': [ 1 ]
10496
});
105-
// returns <ndarray>
106-
107-
v = ndarray2array( y );
108-
// returns [ 1.5, 1.0 ]
97+
// returns <ndarray>[ 1.5, 1.0 ]
10998

11099
y = meankbn( x, {
111100
'dims': [ 0, 1 ]
112101
});
113-
// returns <ndarray>
114-
115-
v = y.get();
116-
// returns 1.25
102+
// returns <ndarray>[ 1.25 ]
117103
```
118104

119105
By default, the function excludes reduced dimensions from the output [ndarray][@stdlib/ndarray/ctor]. To include the reduced dimensions as singleton dimensions, set the `keepdims` option to `true`.
120106

121107
```javascript
122-
var ndarray2array = require( '@stdlib/ndarray/to-array' );
123108
var array = require( '@stdlib/ndarray/array' );
124109

125110
var x = array( [ 1.0, 2.0, -2.0, 4.0 ], {
126111
'shape': [ 2, 2 ],
127112
'order': 'row-major'
128113
});
129-
130-
var v = ndarray2array( x );
131-
// returns [ [ 1.0, 2.0 ], [ -2.0, 4.0 ] ]
114+
// returns <ndarray>[ [ 1.0, 2.0 ], [ -2.0, 4.0 ] ]
132115

133116
var y = meankbn( x, {
134117
'dims': [ 0 ],
135118
'keepdims': true
136119
});
137-
// returns <ndarray>
138-
139-
v = ndarray2array( y );
140-
// returns [ [ -0.5, 3.0 ] ]
120+
// returns <ndarray>[ [ -0.5, 3.0 ] ]
141121

142122
y = meankbn( x, {
143123
'dims': [ 1 ],
144124
'keepdims': true
145125
});
146-
// returns <ndarray>
147-
148-
v = ndarray2array( y );
149-
// returns [ [ 1.5 ], [ 1.0 ] ]
126+
// returns <ndarray>[ [ 1.5 ], [ 1.0 ] ]
150127

151128
y = meankbn( x, {
152129
'dims': [ 0, 1 ],
153130
'keepdims': true
154131
});
155-
// returns <ndarray>
156-
157-
v = ndarray2array( y );
158-
// returns [ [ 1.25 ] ]
132+
// returns <ndarray>[ [ 1.25 ] ]
159133
```
160134

161135
By default, the function returns an [ndarray][@stdlib/ndarray/ctor] having a [data type][@stdlib/ndarray/dtypes] determined by the function's output data type [policy][@stdlib/ndarray/output-dtype-policies]. To override the default behavior, set the `dtype` option.
@@ -189,10 +163,7 @@ var x = array( [ 1.0, 2.0, -2.0, 4.0 ] );
189163
var y = zeros( [] );
190164

191165
var out = meankbn.assign( x, y );
192-
// returns <ndarray>
193-
194-
var v = out.get();
195-
// returns 1.25
166+
// returns <ndarray>[ 1.25 ]
196167

197168
var bool = ( out === y );
198169
// returns true

meankbn/docs/repl.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@
3232
Examples
3333
--------
3434
> var x = {{alias:@stdlib/ndarray/array}}( [ -1.0, 2.0, -3.0, -4.0 ] );
35-
> var y = {{alias}}( x );
36-
> var v = y.get()
37-
-1.5
35+
> var y = {{alias}}( x )
36+
<ndarray>[ -1.5 ]
3837

3938

4039
{{alias}}.assign( x, out[, options] )
@@ -68,11 +67,9 @@
6867
> var x = {{alias:@stdlib/ndarray/array}}( [ -1.0, 2.0, -3.0, -4.0 ] );
6968
> var out = {{alias:@stdlib/ndarray/zeros}}( [] );
7069
> var y = {{alias}}.assign( x, out )
71-
<ndarray>
70+
<ndarray>[ -1.5 ]
7271
> var bool = ( out === y )
7372
true
74-
> var v = out.get()
75-
-1.5
7673

7774
See Also
7875
--------

meankbn/docs/types/index.d.ts

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ interface Unary {
7575
* var x = array( [ 1.0, 2.0, -2.0, 4.0 ] );
7676
*
7777
* var y = meankbn( x );
78-
* // returns <ndarray>
79-
*
80-
* var v = y.get();
81-
* // returns 1.25
78+
* // returns <ndarray>[ 1.25 ]
8279
*/
8380
<T = unknown, U = unknown>( x: InputArray<T>, options?: Options ): OutputArray<U>; // NOTE: we lose type specificity here, but retaining specificity would likely be difficult and/or tedious to completely enumerate, as the output ndarray data type is dependent on how `x` interacts with output data type policy and whether that policy has been overridden by `options.dtype`.
8481

@@ -98,10 +95,7 @@ interface Unary {
9895
* var y = zeros( [] );
9996
*
10097
* var out = meankbn.assign( x, y );
101-
* // returns <ndarray>
102-
*
103-
* var v = out.get();
104-
* // returns 1.25
98+
* // returns <ndarray>[ 1.25 ]
10599
*
106100
* var bool = ( out === y );
107101
* // returns true
@@ -122,10 +116,7 @@ interface Unary {
122116
* var x = array( [ 1.0, 2.0, -2.0, 4.0 ] );
123117
*
124118
* var y = meankbn( x );
125-
* // returns <ndarray>
126-
*
127-
* var v = y.get();
128-
* // returns 1.25
119+
* // returns <ndarray>[ 1.25 ]
129120
*
130121
* @example
131122
* var array = require( '@stdlib/ndarray/array' );
@@ -135,10 +126,7 @@ interface Unary {
135126
* var y = zeros( [] );
136127
*
137128
* var out = meankbn.assign( x, y );
138-
* // returns <ndarray>
139-
*
140-
* var v = out.get();
141-
* // returns 1.25
129+
* // returns <ndarray>[ 1.25 ]
142130
*
143131
* var bool = ( out === y );
144132
* // returns true

meankbn/lib/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@
4545
*
4646
* // Perform reduction:
4747
* var out = meankbn( x );
48-
* // returns <ndarray>
49-
*
50-
* var v = out.get();
51-
* // returns 6.5
48+
* // returns <ndarray>[ 6.5 ]
5249
*/
5350

5451
// MODULES //

meankbn/lib/main.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ var table = {
8888
*
8989
* // Perform reduction:
9090
* var out = meankbn( x );
91-
* // returns <ndarray>
92-
*
93-
* var v = out.get();
94-
* // returns 6.5
91+
* // returns <ndarray>[ 6.5 ]
9592
*/
9693
var meankbn = factory( table, [ idtypes ], odtypes, policies );
9794

nanmax/README.md

Lines changed: 11 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ var array = require( '@stdlib/ndarray/array' );
4040
var x = array( [ -1.0, 2.0, NaN ] );
4141

4242
var y = nanmax( x );
43-
// returns <ndarray>
44-
45-
var v = y.get();
46-
// returns 2.0
43+
// returns <ndarray>[ 2.0 ]
4744
```
4845

4946
The function has the following parameters:
@@ -60,81 +57,58 @@ The function accepts the following options:
6057
By default, the function performs a reduction over all elements in a provided input [ndarray][@stdlib/ndarray/ctor]. To perform a reduction over specific dimensions, provide a `dims` option.
6158

6259
```javascript
63-
var ndarray2array = require( '@stdlib/ndarray/to-array' );
6460
var array = require( '@stdlib/ndarray/array' );
6561

6662
var x = array( [ -1.0, 2.0, NaN, 4.0 ], {
6763
'shape': [ 2, 2 ],
6864
'order': 'row-major'
6965
});
70-
var v = ndarray2array( x );
71-
// returns [ [ -1.0, 2.0 ], [ NaN, 4.0 ] ]
66+
// returns <ndarray>[ [ -1.0, 2.0 ], [ NaN, 4.0 ] ]
7267

7368
var y = nanmax( x, {
7469
'dims': [ 0 ]
7570
});
76-
// returns <ndarray>
77-
78-
v = ndarray2array( y );
79-
// returns [ -1.0, 4.0 ]
71+
// returns <ndarray>[ -1.0, 4.0 ]
8072

8173
y = nanmax( x, {
8274
'dims': [ 1 ]
8375
});
84-
// returns <ndarray>
85-
86-
v = ndarray2array( y );
87-
// returns [ 2.0, 4.0 ]
76+
// returns <ndarray>[ 2.0, 4.0 ]
8877

8978
y = nanmax( x, {
9079
'dims': [ 0, 1 ]
9180
});
92-
// returns <ndarray>
93-
94-
v = y.get();
95-
// returns 4.0
81+
// returns <ndarray>[ 4.0 ]
9682
```
9783

9884
By default, the function excludes reduced dimensions from the output [ndarray][@stdlib/ndarray/ctor]. To include the reduced dimensions as singleton dimensions, set the `keepdims` option to `true`.
9985

10086
```javascript
101-
var ndarray2array = require( '@stdlib/ndarray/to-array' );
10287
var array = require( '@stdlib/ndarray/array' );
10388

10489
var x = array( [ -1.0, 2.0, NaN, 4.0 ], {
10590
'shape': [ 2, 2 ],
10691
'order': 'row-major'
10792
});
108-
109-
var v = ndarray2array( x );
110-
// returns [ [ -1.0, 2.0 ], [ NaN, 4.0 ] ]
93+
// returns <ndarray>[ [ -1.0, 2.0 ], [ NaN, 4.0 ] ]
11194

11295
var y = nanmax( x, {
11396
'dims': [ 0 ],
11497
'keepdims': true
11598
});
116-
// returns <ndarray>
117-
118-
v = ndarray2array( y );
119-
// returns [ [ -1.0, 4.0 ] ]
99+
// returns <ndarray>[ [ -1.0, 4.0 ] ]
120100

121101
y = nanmax( x, {
122102
'dims': [ 1 ],
123103
'keepdims': true
124104
});
125-
// returns <ndarray>
126-
127-
v = ndarray2array( y );
128-
// returns [ [ 2.0 ], [ 4.0 ] ]
105+
// returns <ndarray>[ [ 2.0 ], [ 4.0 ] ]
129106

130107
y = nanmax( x, {
131108
'dims': [ 0, 1 ],
132109
'keepdims': true
133110
});
134-
// returns <ndarray>
135-
136-
v = ndarray2array( y );
137-
// returns [ [ 4.0 ] ]
111+
// returns <ndarray>[ [ 4.0 ] ]
138112
```
139113

140114
By default, the function returns an [ndarray][@stdlib/ndarray/ctor] having a [data type][@stdlib/ndarray/dtypes] determined by the function's output data type [policy][@stdlib/ndarray/output-dtype-policies]. To override the default behavior, set the `dtype` option.
@@ -150,7 +124,7 @@ var x = array( [ -1.0, 2.0, NaN ], {
150124
var y = nanmax( x, {
151125
'dtype': 'float64'
152126
});
153-
// returns <ndarray>
127+
// returns <ndarray>[ 2.0 ]
154128

155129
var dt = String( getDType( y ) );
156130
// returns 'float64'
@@ -168,10 +142,7 @@ var x = array( [ -1.0, 2.0, NaN ] );
168142
var y = zeros( [] );
169143

170144
var out = nanmax.assign( x, y );
171-
// returns <ndarray>
172-
173-
var v = out.get();
174-
// returns 2.0
145+
// returns <ndarray>[ 2.0 ]
175146

176147
var bool = ( out === y );
177148
// returns true

nanmax/docs/repl.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@
3131
Examples
3232
--------
3333
> var x = {{alias:@stdlib/ndarray/array}}( [ -1.0, 2.0, NaN, -4.0 ] );
34-
> var y = {{alias}}( x );
35-
> var v = y.get()
36-
2.0
34+
> var y = {{alias}}( x )
35+
<ndarray>[ 2.0 ]
3736

3837

3938
{{alias}}.assign( x, out[, options] )
@@ -66,11 +65,9 @@
6665
> var x = {{alias:@stdlib/ndarray/array}}( [ -1.0, 2.0, NaN, -4.0 ] );
6766
> var out = {{alias:@stdlib/ndarray/zeros}}( [] );
6867
> var y = {{alias}}.assign( x, out )
69-
<ndarray>
68+
<ndarray>[ 2.0 ]
7069
> var bool = ( out === y )
7170
true
72-
> var v = out.get()
73-
2.0
7471

7572
See Also
7673
--------

0 commit comments

Comments
 (0)