Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions lib/node_modules/@stdlib/stats/maxabs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,19 +209,13 @@ The method accepts the following options:
<!-- eslint no-undef: "error" -->

```javascript
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
var uniform = require( '@stdlib/random/uniform' );
var getDType = require( '@stdlib/ndarray/dtype' );
var ndarray2array = require( '@stdlib/ndarray/to-array' );
var ndarray = require( '@stdlib/ndarray/ctor' );
var maxabs = require( '@stdlib/stats/maxabs' );

// Generate an array of random numbers:
var xbuf = discreteUniform( 25, -10, 10, {
'dtype': 'generic'
});

// Wrap in an ndarray:
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
var x = uniform( [ 5, 5 ], -10.0, 10.0 );
console.log( ndarray2array( x ) );

// Perform a reduction:
Expand Down
10 changes: 2 additions & 8 deletions lib/node_modules/@stdlib/stats/maxabs/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,13 @@

'use strict';

var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
var uniform = require( '@stdlib/random/uniform' );
var getDType = require( '@stdlib/ndarray/dtype' );
var ndarray2array = require( '@stdlib/ndarray/to-array' );
var ndarray = require( '@stdlib/ndarray/ctor' );
var maxabs = require( './../lib' );

// Generate an array of random numbers:
var xbuf = discreteUniform( 25, -10, 10, {
'dtype': 'generic'
});

// Wrap in an ndarray:
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
var x = uniform( [ 5, 5 ], -10.0, 10.0 );
console.log( ndarray2array( x ) );

// Perform a reduction:
Expand Down