Skip to content

Commit 8549793

Browse files
committed
Auto-generated commit
1 parent 59a543c commit 8549793

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

CHANGELOG.md

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

35113511
<details>
35123512

3513+
- [`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)_
35133514
- [`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)_
35143515
- [`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)_
35153516
- [`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)_

maxabs/README.md

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

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

218217
// Generate an array of random numbers:
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' );
218+
var x = uniform( [ 5, 5 ], -10.0, 10.0 );
225219
console.log( ndarray2array( x ) );
226220

227221
// Perform a reduction:

maxabs/examples/index.js

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

1919
'use strict';
2020

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

2726
// Generate an array of random numbers:
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' );
27+
var x = uniform( [ 5, 5 ], -10.0, 10.0 );
3428
console.log( ndarray2array( x ) );
3529

3630
// Perform a reduction:

0 commit comments

Comments
 (0)