Skip to content

Commit 745bc11

Browse files
authored
docs: update example
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 15acaa9 commit 745bc11

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

  • lib/node_modules/@stdlib/blas/ext/sort

lib/node_modules/@stdlib/blas/ext/sort/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,14 @@ var y = sort( x, {
125125
<!-- eslint no-undef: "error" -->
126126

127127
```javascript
128-
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
128+
var discreteUniform = require( '@stdlib/random/discrete-uniform' );
129129
var ndarray2array = require( '@stdlib/ndarray/to-array' );
130-
var ndarray = require( '@stdlib/ndarray/ctor' );
131130
var sort = require( '@stdlib/blas/ext/sort' );
132131

133132
// Generate an array of random numbers:
134-
var xbuf = discreteUniform( 25, -20, 20, {
133+
var x = discreteUniform( [ 5, 5 ], -20, 20, {
135134
'dtype': 'generic'
136135
});
137-
138-
// Wrap in an ndarray:
139-
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
140136
console.log( ndarray2array( x ) );
141137

142138
// Perform operation:

0 commit comments

Comments
 (0)