Skip to content

Commit 15acaa9

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

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

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

lib/node_modules/@stdlib/blas/ext/sort/examples/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,14 @@
1818

1919
'use strict';
2020

21-
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
21+
var discreteUniform = require( '@stdlib/random/discrete-uniform' );
2222
var ndarray2array = require( '@stdlib/ndarray/to-array' );
23-
var ndarray = require( '@stdlib/ndarray/ctor' );
2423
var sort = require( './../lib' );
2524

2625
// Generate an array of random numbers:
27-
var xbuf = discreteUniform( 25, -20, 20, {
26+
var x = discreteUniform( [ 5, 5 ], -20, 20, {
2827
'dtype': 'generic'
2928
});
30-
31-
// Wrap in an ndarray:
32-
var x = new ndarray( 'generic', xbuf, [ 5, 5 ], [ 5, 1 ], 0, 'row-major' );
3329
console.log( ndarray2array( x ) );
3430

3531
// Perform operation:

0 commit comments

Comments
 (0)