Skip to content

Commit 308244a

Browse files
committed
bench: use single-precision utilities
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 0599ed1 commit 308244a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/node_modules/@stdlib/lapack/base/clacpy/benchmark/benchmark.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var bench = require( '@stdlib/bench' );
2424
var Complex64Array = require( '@stdlib/array/complex64' );
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 floor = require( '@stdlib/math/base/special/floor' );
2929
var pkg = require( './../package.json' ).name;
@@ -65,12 +65,12 @@ function createBenchmark( N ) {
6565
b.tic();
6666
for ( i = 0; i < b.iterations; i++ ) {
6767
z = clacpy( 'column-major', 'all', N, N, A, N, B, N );
68-
if ( isnan( z[ i%z.length ] ) ) {
68+
if ( isnanf( z[ i%z.length ] ) ) {
6969
b.fail( 'should not return NaN' );
7070
}
7171
}
7272
b.toc();
73-
if ( isnan( z[ i%z.length ] ) ) {
73+
if ( isnanf( z[ i%z.length ] ) ) {
7474
b.fail( 'should not return NaN' );
7575
}
7676
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/lapack/base/clacpy/benchmark/benchmark.ndarray.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var bench = require( '@stdlib/bench' );
2424
var Complex64Array = require( '@stdlib/array/complex64' );
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 floor = require( '@stdlib/math/base/special/floor' );
2929
var pkg = require( './../package.json' ).name;
@@ -65,12 +65,12 @@ function createBenchmark( N ) {
6565
b.tic();
6666
for ( i = 0; i < b.iterations; i++ ) {
6767
z = clacpy( 'all', N, N, A, 1, N, 0, B, 1, N, 0 );
68-
if ( isnan( z[ i%z.length ] ) ) {
68+
if ( isnanf( z[ i%z.length ] ) ) {
6969
b.fail( 'should not return NaN' );
7070
}
7171
}
7272
b.toc();
73-
if ( isnan( z[ i%z.length ] ) ) {
73+
if ( isnanf( z[ i%z.length ] ) ) {
7474
b.fail( 'should not return NaN' );
7575
}
7676
b.pass( 'benchmark finished' );

0 commit comments

Comments
 (0)