Skip to content

Commit e4d7173

Browse files
committed
Auto-generated commit
1 parent 46b0891 commit e4d7173

File tree

9 files changed

+64
-20
lines changed

9 files changed

+64
-20
lines changed

CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3510,10 +3510,6 @@ A total of 557 issues were closed in this release:
35103510

35113511
<details>
35123512

3513-
- [`8be43b3`](https://github.com/stdlib-js/stdlib/commit/8be43b3489187f60926783d3936fb8003f2a8b9a) - **docs:** update examples in `stats/mean` [(#8823)](https://github.com/stdlib-js/stdlib/pull/8823) _(by Sachin Pangal)_
3514-
- [`48d0dcb`](https://github.com/stdlib-js/stdlib/commit/48d0dcbf02ab85d05d7b0904d5a7196435787c44) - **docs:** update examples in `stats/maxabs` [(#8824)](https://github.com/stdlib-js/stdlib/pull/8824) _(by Sachin Pangal)_
3515-
- [`8cf190a`](https://github.com/stdlib-js/stdlib/commit/8cf190af409092c48ce33af1f5c8067393f17656) - **docs:** update examples in `stats/min` [(#8825)](https://github.com/stdlib-js/stdlib/pull/8825) _(by Sachin Pangal)_
3516-
- [`ac2791d`](https://github.com/stdlib-js/stdlib/commit/ac2791d4895a2932decb9f998a6b81057d2111b9) - **docs:** update examples in `stats/minabs` [(#8826)](https://github.com/stdlib-js/stdlib/pull/8826) _(by Sachin Pangal)_
35173513
- [`2cb9592`](https://github.com/stdlib-js/stdlib/commit/2cb9592c7057c1d5b1693343f01d740dd2e1d583) - **docs:** update examples in `stats/max` [(#8827)](https://github.com/stdlib-js/stdlib/pull/8827) _(by Sachin Pangal)_
35183514
- [`120e209`](https://github.com/stdlib-js/stdlib/commit/120e2092781bcc3db496f02c5882d7e0ec735e94) - **docs:** update examples in `stats/range` [(#8828)](https://github.com/stdlib-js/stdlib/pull/8828) _(by Sachin Pangal)_
35193515
- [`495d074`](https://github.com/stdlib-js/stdlib/commit/495d07427db5430c75747fb7317dd679fea217ad) - **docs:** update examples in `stats/cumax` [(#8829)](https://github.com/stdlib-js/stdlib/pull/8829) _(by Sachin Pangal)_

maxabs/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,19 @@ The method accepts the following options:
209209
<!-- eslint no-undef: "error" -->
210210

211211
```javascript
212-
var uniform = require( '@stdlib/random/uniform' );
212+
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
213213
var getDType = require( '@stdlib/ndarray/dtype' );
214214
var ndarray2array = require( '@stdlib/ndarray/to-array' );
215+
var ndarray = require( '@stdlib/ndarray/ctor' );
215216
var maxabs = require( '@stdlib/stats/maxabs' );
216217

217218
// Generate an array of random numbers:
218-
var x = uniform( [ 5, 5 ], -10.0, 10.0 );
219+
var xbuf = discreteUniform( 25, -10, 10, {
220+
'dtype': 'generic'
221+
});
222+
223+
// Wrap in an ndarray:
224+
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
219225
console.log( ndarray2array( x ) );
220226

221227
// Perform a reduction:

maxabs/examples/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@
1818

1919
'use strict';
2020

21-
var uniform = require( '@stdlib/random/uniform' );
21+
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2222
var getDType = require( '@stdlib/ndarray/dtype' );
2323
var ndarray2array = require( '@stdlib/ndarray/to-array' );
24+
var ndarray = require( '@stdlib/ndarray/ctor' );
2425
var maxabs = require( './../lib' );
2526

2627
// Generate an array of random numbers:
27-
var x = uniform( [ 5, 5 ], -10.0, 10.0 );
28+
var xbuf = discreteUniform( 25, -10, 10, {
29+
'dtype': 'generic'
30+
});
31+
32+
// Wrap in an ndarray:
33+
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
2834
console.log( ndarray2array( x ) );
2935

3036
// Perform a reduction:

mean/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,19 @@ The method accepts the following options:
230230
<!-- eslint no-undef: "error" -->
231231

232232
```javascript
233-
var uniform = require( '@stdlib/random/uniform' );
233+
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
234234
var getDType = require( '@stdlib/ndarray/dtype' );
235235
var ndarray2array = require( '@stdlib/ndarray/to-array' );
236+
var ndarray = require( '@stdlib/ndarray/ctor' );
236237
var mean = require( '@stdlib/stats/mean' );
237238

238239
// Generate an array of random numbers:
239-
var x = uniform( [ 5, 5 ], 0.0, 20.0 );
240+
var xbuf = discreteUniform( 25, 0, 20, {
241+
'dtype': 'generic'
242+
});
243+
244+
// Wrap in an ndarray:
245+
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
240246
console.log( ndarray2array( x ) );
241247

242248
// Perform a reduction:

mean/examples/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@
1818

1919
'use strict';
2020

21-
var uniform = require( '@stdlib/random/uniform' );
21+
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2222
var getDType = require( '@stdlib/ndarray/dtype' );
2323
var ndarray2array = require( '@stdlib/ndarray/to-array' );
24+
var ndarray = require( '@stdlib/ndarray/ctor' );
2425
var mean = require( './../lib' );
2526

2627
// Generate an array of random numbers:
27-
var x = uniform( [ 5, 5 ], 0.0, 20.0 );
28+
var xbuf = discreteUniform( 25, 0, 20, {
29+
'dtype': 'generic'
30+
});
31+
32+
// Wrap in an ndarray:
33+
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
2834
console.log( ndarray2array( x ) );
2935

3036
// Perform a reduction:

min/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,19 @@ The method accepts the following options:
209209
<!-- eslint no-undef: "error" -->
210210

211211
```javascript
212-
var uniform = require( '@stdlib/random/uniform' );
212+
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
213213
var getDType = require( '@stdlib/ndarray/dtype' );
214214
var ndarray2array = require( '@stdlib/ndarray/to-array' );
215+
var ndarray = require( '@stdlib/ndarray/ctor' );
215216
var min = require( '@stdlib/stats/min' );
216217

217218
// Generate an array of random numbers:
218-
var x = uniform( [ 5, 5 ], 0.0, 20.0 );
219+
var xbuf = discreteUniform( 25, 0, 20, {
220+
'dtype': 'generic'
221+
});
222+
223+
// Wrap in an ndarray:
224+
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
219225
console.log( ndarray2array( x ) );
220226

221227
// Perform a reduction:

min/examples/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@
1818

1919
'use strict';
2020

21-
var uniform = require( '@stdlib/random/uniform' );
21+
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2222
var getDType = require( '@stdlib/ndarray/dtype' );
2323
var ndarray2array = require( '@stdlib/ndarray/to-array' );
24+
var ndarray = require( '@stdlib/ndarray/ctor' );
2425
var min = require( './../lib' );
2526

2627
// Generate an array of random numbers:
27-
var x = uniform( [ 5, 5 ], 0.0, 20.0 );
28+
var xbuf = discreteUniform( 25, 0, 20, {
29+
'dtype': 'generic'
30+
});
31+
32+
// Wrap in an ndarray:
33+
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
2834
console.log( ndarray2array( x ) );
2935

3036
// Perform a reduction:

minabs/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,19 @@ The method accepts the following options:
209209
<!-- eslint no-undef: "error" -->
210210

211211
```javascript
212-
var uniform = require( '@stdlib/random/uniform' );
212+
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
213213
var getDType = require( '@stdlib/ndarray/dtype' );
214214
var ndarray2array = require( '@stdlib/ndarray/to-array' );
215+
var ndarray = require( '@stdlib/ndarray/ctor' );
215216
var minabs = require( '@stdlib/stats/minabs' );
216217

217218
// Generate an array of random numbers:
218-
var x = uniform( [ 5, 5 ], -10.0, 10.0 );
219+
var xbuf = discreteUniform( 25, -10, 10, {
220+
'dtype': 'generic'
221+
});
222+
223+
// Wrap in an ndarray:
224+
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
219225
console.log( ndarray2array( x ) );
220226

221227
// Perform a reduction:

minabs/examples/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@
1818

1919
'use strict';
2020

21-
var uniform = require( '@stdlib/random/uniform' );
21+
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2222
var getDType = require( '@stdlib/ndarray/dtype' );
2323
var ndarray2array = require( '@stdlib/ndarray/to-array' );
24+
var ndarray = require( '@stdlib/ndarray/ctor' );
2425
var minabs = require( './../lib' );
2526

2627
// Generate an array of random numbers:
27-
var x = uniform( [ 5, 5 ], -10.0, 10.0 );
28+
var xbuf = discreteUniform( 25, -10, 10, {
29+
'dtype': 'generic'
30+
});
31+
32+
// Wrap in an ndarray:
33+
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
2834
console.log( ndarray2array( x ) );
2935

3036
// Perform a reduction:

0 commit comments

Comments
 (0)