Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Oct 21, 2024
1 parent fe8680c commit fee2afe
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

<details>

- [`e2ed2a3`](https://github.com/stdlib-js/stdlib/commit/e2ed2a3f152e6b424b9479b1103dcf382110e313) - **bench:** use single-precision utility _(by Athan Reines)_
- [`6b238d9`](https://github.com/stdlib-js/stdlib/commit/6b238d9a0b152532351c72100a5be2ca644eba1c) - **feat:** add `blas/base/sdot-wasm` [(#3025)](https://github.com/stdlib-js/stdlib/pull/3025) _(by Aman Bhansali, Athan Reines)_

</details>
Expand Down
6 changes: 3 additions & 3 deletions benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench-harness' );
var hasWebAssemblySupport = require( '@stdlib/assert-has-wasm-support' );
var uniform = require( '@stdlib/random-array-uniform' );
var isnan = require( '@stdlib/math-base-assert-is-nan' );
var isnanf = require( '@stdlib/math-base-assert-is-nanf' );
var pow = require( '@stdlib/math-base-special-pow' );
var pkg = require( './../package.json' ).name;
var sdot = require( './../lib' );
Expand Down Expand Up @@ -66,12 +66,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
d = sdot.main( x.length, x, 1, y, 1 );
if ( isnan( d ) ) {
if ( isnanf( d ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( d ) ) {
if ( isnanf( d ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
6 changes: 3 additions & 3 deletions benchmark/benchmark.module.main.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert-has-wasm-support' );
var Memory = require( '@stdlib/wasm-memory' );
var bytesPerElement = require( '@stdlib/ndarray-base-bytes-per-element' );
var uniform = require( '@stdlib/random-array-uniform' );
var isnan = require( '@stdlib/math-base-assert-is-nan' );
var isnanf = require( '@stdlib/math-base-assert-is-nanf' );
var pow = require( '@stdlib/math-base-special-pow' );
var pkg = require( './../package.json' ).name;
var sdot = require( './../lib' );
Expand Down Expand Up @@ -92,12 +92,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
d = mod.main( len, xptr, 1, yptr, 1 );
if ( isnan( d ) ) {
if ( isnanf( d ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( d ) ) {
if ( isnanf( d ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
6 changes: 3 additions & 3 deletions benchmark/benchmark.module.ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert-has-wasm-support' );
var Memory = require( '@stdlib/wasm-memory' );
var bytesPerElement = require( '@stdlib/ndarray-base-bytes-per-element' );
var uniform = require( '@stdlib/random-array-uniform' );
var isnan = require( '@stdlib/math-base-assert-is-nan' );
var isnanf = require( '@stdlib/math-base-assert-is-nanf' );
var pow = require( '@stdlib/math-base-special-pow' );
var pkg = require( './../package.json' ).name;
var sdot = require( './../lib' );
Expand Down Expand Up @@ -92,12 +92,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
d = mod.ndarray( len, xptr, 1, 0, yptr, 1, 0 );
if ( isnan( d ) ) {
if ( isnanf( d ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( d ) ) {
if ( isnanf( d ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
6 changes: 3 additions & 3 deletions benchmark/benchmark.ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench-harness' );
var hasWebAssemblySupport = require( '@stdlib/assert-has-wasm-support' );
var uniform = require( '@stdlib/random-array-uniform' );
var isnan = require( '@stdlib/math-base-assert-is-nan' );
var isnanf = require( '@stdlib/math-base-assert-is-nanf' );
var pow = require( '@stdlib/math-base-special-pow' );
var pkg = require( './../package.json' ).name;
var sdot = require( './../lib' );
Expand Down Expand Up @@ -66,12 +66,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
d = sdot.ndarray( x.length, x, 1, 0, y, 1, 0 );
if ( isnan( d ) ) {
if ( isnanf( d ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( d ) ) {
if ( isnanf( d ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@stdlib/blas-ext-base-gfill-by": "^0.2.1",
"@stdlib/fs-read-file": "^0.2.2",
"@stdlib/fs-write-file": "^0.2.2",
"@stdlib/math-base-assert-is-nan": "^0.2.2",
"@stdlib/math-base-assert-is-nanf": "^0.2.2",
"@stdlib/math-base-special-pow": "^0.3.0",
"@stdlib/ndarray-base-bytes-per-element": "^0.2.2",
"@stdlib/random-array-uniform": "^0.2.1",
Expand Down

0 comments on commit fee2afe

Please sign in to comment.