Skip to content

Commit e2ed2a3

Browse files
committed
bench: use single-precision utility
1 parent 6b238d9 commit e2ed2a3

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

lib/node_modules/@stdlib/blas/base/sdot-wasm/benchmark/benchmark.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var bench = require( '@stdlib/bench' );
2424
var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' );
2525
var uniform = require( '@stdlib/random/array/uniform' );
26-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
26+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2727
var pow = require( '@stdlib/math/base/special/pow' );
2828
var pkg = require( './../package.json' ).name;
2929
var sdot = require( './../lib' );
@@ -66,12 +66,12 @@ function createBenchmark( len ) {
6666
b.tic();
6767
for ( i = 0; i < b.iterations; i++ ) {
6868
d = sdot.main( x.length, x, 1, y, 1 );
69-
if ( isnan( d ) ) {
69+
if ( isnanf( d ) ) {
7070
b.fail( 'should not return NaN' );
7171
}
7272
}
7373
b.toc();
74-
if ( isnan( d ) ) {
74+
if ( isnanf( d ) ) {
7575
b.fail( 'should not return NaN' );
7676
}
7777
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/base/sdot-wasm/benchmark/benchmark.module.main.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' );
2525
var Memory = require( '@stdlib/wasm/memory' );
2626
var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' );
2727
var uniform = require( '@stdlib/random/array/uniform' );
28-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
28+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2929
var pow = require( '@stdlib/math/base/special/pow' );
3030
var pkg = require( './../package.json' ).name;
3131
var sdot = require( './../lib' );
@@ -92,12 +92,12 @@ function createBenchmark( len ) {
9292
b.tic();
9393
for ( i = 0; i < b.iterations; i++ ) {
9494
d = mod.main( len, xptr, 1, yptr, 1 );
95-
if ( isnan( d ) ) {
95+
if ( isnanf( d ) ) {
9696
b.fail( 'should not return NaN' );
9797
}
9898
}
9999
b.toc();
100-
if ( isnan( d ) ) {
100+
if ( isnanf( d ) ) {
101101
b.fail( 'should not return NaN' );
102102
}
103103
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/base/sdot-wasm/benchmark/benchmark.module.ndarray.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' );
2525
var Memory = require( '@stdlib/wasm/memory' );
2626
var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' );
2727
var uniform = require( '@stdlib/random/array/uniform' );
28-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
28+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2929
var pow = require( '@stdlib/math/base/special/pow' );
3030
var pkg = require( './../package.json' ).name;
3131
var sdot = require( './../lib' );
@@ -92,12 +92,12 @@ function createBenchmark( len ) {
9292
b.tic();
9393
for ( i = 0; i < b.iterations; i++ ) {
9494
d = mod.ndarray( len, xptr, 1, 0, yptr, 1, 0 );
95-
if ( isnan( d ) ) {
95+
if ( isnanf( d ) ) {
9696
b.fail( 'should not return NaN' );
9797
}
9898
}
9999
b.toc();
100-
if ( isnan( d ) ) {
100+
if ( isnanf( d ) ) {
101101
b.fail( 'should not return NaN' );
102102
}
103103
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/base/sdot-wasm/benchmark/benchmark.ndarray.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var bench = require( '@stdlib/bench' );
2424
var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' );
2525
var uniform = require( '@stdlib/random/array/uniform' );
26-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
26+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2727
var pow = require( '@stdlib/math/base/special/pow' );
2828
var pkg = require( './../package.json' ).name;
2929
var sdot = require( './../lib' );
@@ -66,12 +66,12 @@ function createBenchmark( len ) {
6666
b.tic();
6767
for ( i = 0; i < b.iterations; i++ ) {
6868
d = sdot.ndarray( x.length, x, 1, 0, y, 1, 0 );
69-
if ( isnan( d ) ) {
69+
if ( isnanf( d ) ) {
7070
b.fail( 'should not return NaN' );
7171
}
7272
}
7373
b.toc();
74-
if ( isnan( d ) ) {
74+
if ( isnanf( d ) ) {
7575
b.fail( 'should not return NaN' );
7676
}
7777
b.pass( 'benchmark finished' );

0 commit comments

Comments
 (0)