Skip to content

Commit

Permalink
docs: fix paths in examples and refactor array creation in benchmarks
Browse files Browse the repository at this point in the history
PR-URL: #2563
Ref: #2257
Reviewed-by: Athan Reines <kgryte@gmail.com>
  • Loading branch information
aman-095 committed Jul 11, 2024
1 parent 1cb0243 commit a78f42b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 22 deletions.
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/zdrot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ im = imag( z );
```javascript
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
var filledarrayBy = require( '@stdlib/array/filled-by' );
var Complex128 = require( '@stdlib/complex/float64' );
var Complex128 = require( '@stdlib/complex/float64/ctor' );
var zcopy = require( '@stdlib/blas/base/zcopy' );
var zeros = require( '@stdlib/array/zeros' );
var logEach = require( '@stdlib/console/log-each' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ function createBenchmark( len ) {
var zx;
var zy;

zx = uniform( len*2, -100.0, 100.0, options );
zx = new Complex128Array( zx.buffer );

zy = uniform( len*2, -100.0, 100.0, options );
zy = new Complex128Array( zy.buffer );
zx = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
zy = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );

return benchmark;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,8 @@ function createBenchmark( len ) {
var zx;
var zy;

zx = uniform( len*2, -100.0, 100.0, options );
zx = new Complex128Array( zx.buffer );

zy = uniform( len*2, -100.0, 100.0, options );
zy = new Complex128Array( zy.buffer );
zx = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
zy = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );

return benchmark;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ function createBenchmark( len ) {
var zx;
var zy;

zx = uniform( len*2, -100.0, 100.0, options );
zx = new Complex128Array( zx.buffer );

zy = uniform( len*2, -100.0, 100.0, options );
zy = new Complex128Array( zy.buffer );
zx = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
zy = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );

return benchmark;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,8 @@ function createBenchmark( len ) {
var zx;
var zy;

zx = uniform( len*2, -100.0, 100.0, options );
zx = new Complex128Array( zx.buffer );

zy = uniform( len*2, -100.0, 100.0, options );
zy = new Complex128Array( zy.buffer );
zx = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
zy = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );

return benchmark;

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/zdrot/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
var filledarrayBy = require( '@stdlib/array/filled-by' );
var Complex128 = require( '@stdlib/complex/float64' );
var Complex128 = require( '@stdlib/complex/float64/ctor' );
var zcopy = require( '@stdlib/blas/base/zcopy' );
var zeros = require( '@stdlib/array/zeros' );
var logEach = require( '@stdlib/console/log-each' );
Expand Down

1 comment on commit a78f42b

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
blas/base/zdrot $\color{green}531/531$
$\color{green}+100.00\%$
$\color{green}17/17$
$\color{green}+100.00\%$
$\color{green}4/4$
$\color{green}+100.00\%$
$\color{green}531/531$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this push.

Please sign in to comment.