Skip to content

Commit 55ecb7b

Browse files
bench: update single precision pkgs & opts declaration
--- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent ad049b2 commit 55ecb7b

4 files changed

Lines changed: 17 additions & 15 deletions

File tree

lib/node_modules/@stdlib/math/base/tools/chebyshev-seriesf/benchmark/benchmark.factory.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var uniform = require( '@stdlib/random/array/uniform' );
25-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
25+
var isnanf = require( '@stdlib/math/base/assert/is-nan' );
2626
var format = require( '@stdlib/string/format' );
2727
var pkg = require( './../package.json' ).name;
2828
var factory = require( './../lib/factory.js' );
@@ -75,12 +75,12 @@ bench( format( '%s::evaluate:factory', pkg ), function benchmark( b ) {
7575
b.tic();
7676
for ( i = 0; i < b.iterations; i++ ) {
7777
v = f( values[ i%values.length ] );
78-
if ( isnan( v ) ) {
78+
if ( isnanf( v ) ) {
7979
b.fail( 'should not return NaN' );
8080
}
8181
}
8282
b.toc();
83-
if ( isnan( v ) ) {
83+
if ( isnanf( v ) ) {
8484
b.fail( 'should not return NaN' );
8585
}
8686
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/math/base/tools/chebyshev-seriesf/benchmark/benchmark.factory.length.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 pow = require( '@stdlib/math/base/special/pow' );
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-nan' );
2727
var format = require( '@stdlib/string/format' );
2828
var pkg = require( './../package.json' ).name;
2929
var factory = require( './../lib/factory.js' );
@@ -64,12 +64,12 @@ function createBenchmark( len ) {
6464
b.tic();
6565
for ( i = 0; i < b.iterations; i++ ) {
6666
v = evaluate( x[ i%x.length ] );
67-
if ( isnan( v ) ) {
67+
if ( isnanf( v ) ) {
6868
b.fail( 'should not return NaN' );
6969
}
7070
}
7171
b.toc();
72-
if ( isnan( v ) ) {
72+
if ( isnanf( v ) ) {
7373
b.fail( 'should not return NaN' );
7474
}
7575
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/math/base/tools/chebyshev-seriesf/benchmark/benchmark.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var uniform = require( '@stdlib/random/array/uniform' );
25-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
25+
var isnanf = require( '@stdlib/math/base/assert/is-nan' );
2626
var pkg = require( './../package.json' ).name;
2727
var chebyshevSeriesf = require( './../lib' );
2828

@@ -31,12 +31,14 @@ var chebyshevSeriesf = require( './../lib' );
3131

3232
bench( pkg, function benchmark( b ) {
3333
var coefs;
34-
var opts = {
35-
'dtype': 'float32'
36-
};
34+
var opts;
3735
var x;
3836
var v;
3937
var i;
38+
39+
opts = {
40+
'dtype': 'float32'
41+
};
4042
coefs = [
4143
uniform( 10, 0.0, 100.0, opts ),
4244
uniform( 10, 0.0, 100.0, opts ),
@@ -47,12 +49,12 @@ bench( pkg, function benchmark( b ) {
4749
b.tic();
4850
for ( i = 0; i < b.iterations; i++ ) {
4951
v = chebyshevSeriesf( x[ i%x.length ], coefs[ i%coefs.length ] );
50-
if ( isnan( v ) ) {
52+
if ( isnanf( v ) ) {
5153
b.fail( 'should not return NaN' );
5254
}
5355
}
5456
b.toc();
55-
if ( isnan( v ) ) {
57+
if ( isnanf( v ) ) {
5658
b.fail( 'should not return NaN' );
5759
}
5860
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/math/base/tools/chebyshev-seriesf/benchmark/benchmark.length.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 pow = require( '@stdlib/math/base/special/pow' );
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-nan' );
2727
var format = require( '@stdlib/string/format' );
2828
var pkg = require( './../package.json' ).name;
2929
var chebyshevSeriesf = require( './../lib' );
@@ -61,12 +61,12 @@ function createBenchmark( len ) {
6161
b.tic();
6262
for ( i = 0; i < b.iterations; i++ ) {
6363
v = chebyshevSeriesf( x[ i%x.length ], c );
64-
if ( isnan( v ) ) {
64+
if ( isnanf( v ) ) {
6565
b.fail( 'should not return NaN' );
6666
}
6767
}
6868
b.toc();
69-
if ( isnan( v ) ) {
69+
if ( isnanf( v ) ) {
7070
b.fail( 'should not return NaN' );
7171
}
7272
b.pass( 'benchmark finished' );

0 commit comments

Comments
 (0)