Skip to content

Commit a0218f6

Browse files
committed
fix: benchmark.ndarray.js
--- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: passed - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent 1d2b031 commit a0218f6

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

lib/node_modules/@stdlib/blas/base/dgbmv/benchmark/benchmark.ndarray.js

Lines changed: 14 additions & 8 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-nanf' );
25+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2626
var pow = require( '@stdlib/math/base/special/pow' );
2727
var floor = require( '@stdlib/math/base/special/floor' );
2828
var pkg = require( './../package.json' ).name;
@@ -48,9 +48,15 @@ var options = {
4848
function createBenchmark( N ) {
4949
var x = uniform( N, -10.0, 10.0, options );
5050
var y = uniform( N, -10.0, 10.0, options );
51-
var A = [ 0, 9, 10,
52-
11, 12, 5,
53-
1, 2, 0 ];
51+
var A = [ 0,
52+
9,
53+
10,
54+
11,
55+
12,
56+
5,
57+
1,
58+
2,
59+
0 ];
5460
return benchmark;
5561

5662
/**
@@ -66,12 +72,12 @@ function createBenchmark( N ) {
6672
b.tic();
6773
for ( i = 0; i < b.iterations; i++ ) {
6874
z = dgbmv( 'no-transpose', N, N, 1.0, 1, 1, A, N, 1, 0, x, 1, 0, 1.0, y, 1, 0 );
69-
if ( isnan( z[ i%z.length ] ) ) {
75+
if ( isnanf( z[ i%z.length ] ) ) {
7076
b.fail( 'should not return NaN' );
7177
}
7278
}
7379
b.toc();
74-
if ( isnan( z[ i%z.length ] ) ) {
80+
if ( isnanf( z[ i%z.length ] ) ) {
7581
b.fail( 'should not return NaN' );
7682
}
7783
b.pass( 'benchmark finished' );
@@ -93,7 +99,7 @@ function main() {
9399

94100
len = floor( pow( pow( 10, 1 ), 1.0/2.0 ) );
95101
f = createBenchmark( len );
96-
bench( pkg+':ndarray:size='+(len*len), f );
102+
bench( pkg+':size='+(len*len), f );
97103
}
98104

99-
main();
105+
main();

0 commit comments

Comments
 (0)