Skip to content

Commit acadf4b

Browse files
chore: updates values
--- 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: passed - 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: passed - 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 --- --- 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: failed ---
1 parent 2f4b4ae commit acadf4b

File tree

15 files changed

+33
-49
lines changed

15 files changed

+33
-49
lines changed

lib/node_modules/@stdlib/math/base/special/binet/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bench( pkg, function benchmark( b ) {
3434
var y;
3535
var i;
3636

37-
x = discreteUniform( 100, 0.0, 79.0 );
37+
x = discreteUniform( 100, 0, 79 );
3838

3939
b.tic();
4040
for ( i = 0; i < b.iterations; i++ ) {

lib/node_modules/@stdlib/math/base/special/binet/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4343
var y;
4444
var i;
4545

46-
x = discreteUniform( 100, 0.0, 79.0 );
46+
x = discreteUniform( 100, 0, 79 );
4747

4848
b.tic();
4949
for ( i = 0; i < b.iterations; i++ ) {

lib/node_modules/@stdlib/math/base/special/binet/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static double benchmark( void ) {
112112

113113
t = tic();
114114
for ( i = 0; i < ITERATIONS; i++ ) {
115-
y = stdlib_base_binet( x[ i % 100 ] );
115+
y = stdlib_base_binet( x[ i%100 ] );
116116
if ( y < 0 ) {
117117
printf( "should return a nonnegative number\n" );
118118
break;

lib/node_modules/@stdlib/math/base/special/binet/benchmark/c/native/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static double benchmark( void ) {
102102

103103
t = tic();
104104
for ( i = 0; i < ITERATIONS; i++ ) {
105-
y = stdlib_base_binet( x[ i % 100 ] );
105+
y = stdlib_base_binet( x[ i%100 ] );
106106
if ( y != y ) {
107107
printf( "should not return NaN\n" );
108108
break;

lib/node_modules/@stdlib/math/base/special/binet/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ tape( 'main export is a function', function test( t ) {
4141

4242
tape( 'if provided `NaN`, the function returns `NaN`', function test( t ) {
4343
var v = binet( NaN );
44-
t.strictEqual( isnan( v ), true, 'returns expected value when provided a NaN' );
44+
t.strictEqual( isnan( v ), true, 'returns expected value' );
4545
t.end();
4646
});
4747

lib/node_modules/@stdlib/math/base/special/boxcox/benchmark/benchmark.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ bench( pkg, function benchmark( b ) {
3434
var y;
3535
var r;
3636
var i;
37-
var j;
3837

39-
x = uniform( 100, 1.0, 11.0 );
40-
y = uniform( x.length, 1.0, 11.0 );
38+
x = uniform( 100, 1, 11 );
39+
y = uniform( 100, 1, 11 );
4140

4241
b.tic();
4342
for ( i = 0; i < b.iterations; i++ ) {
44-
j = i % x.length;
45-
r = boxcox( x[ j ], y[ j ] );
43+
r = boxcox( x[ i%x.length ], y[ i%y.length ] );
4644
if ( isnan( r ) ) {
4745
b.fail( 'should not return NaN' );
4846
}

lib/node_modules/@stdlib/math/base/special/boxcox/benchmark/benchmark.native.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,13 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4343
var y;
4444
var r;
4545
var i;
46-
var j;
4746

48-
x = uniform( 100, 1.0, 11.0 );
49-
y = uniform( x.length, 1.0, 11.0 );
47+
x = uniform( 100, 1, 11 );
48+
y = uniform( 100, 1, 11 );
5049

5150
b.tic();
5251
for ( i = 0; i < b.iterations; i++ ) {
53-
j = i % x.length;
54-
r = boxcox( x[ j ], y[ j ] );
52+
r = boxcox( x[ i%x.length ], y[ i%y.length ] );
5553
if ( isnan( r ) ) {
5654
b.fail( 'should not return NaN' );
5755
}

lib/node_modules/@stdlib/math/base/special/boxcox1p/benchmark/benchmark.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ bench( pkg, function benchmark( b ) {
3434
var y;
3535
var r;
3636
var i;
37-
var j;
3837

39-
x = uniform( 100, 0.0, 10.0 );
40-
y = uniform( x.length, 0.0, 10.0 );
38+
x = uniform( 100, 0, 10 );
39+
y = uniform( 100, 0, 10 );
4140

4241
b.tic();
4342
for ( i = 0; i < b.iterations; i++ ) {
44-
j = i % x.length;
45-
r = boxcox1p( x[ j ], y[ j ] );
43+
r = boxcox1p( x[ i%x.length ], y[ i%y.length ] );
4644
if ( isnan( r ) ) {
4745
b.fail( 'should not return NaN' );
4846
}

lib/node_modules/@stdlib/math/base/special/boxcox1p/benchmark/benchmark.native.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,13 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4343
var y;
4444
var r;
4545
var i;
46-
var j;
4746

48-
x = uniform( 100, 0.0, 10.0 );
49-
y = uniform( x.length, 0.0, 10.0 );
47+
x = uniform( 100, 0, 10 );
48+
y = uniform( 100, 0, 10 );
5049

5150
b.tic();
5251
for ( i = 0; i < b.iterations; i++ ) {
53-
j = i % x.length;
54-
r = boxcox1p( x[ j ], y[ j ] );
52+
r = boxcox1p( x[ i%x.length ], y[ i%y.length ] );
5553
if ( isnan( r ) ) {
5654
b.fail( 'should not return NaN' );
5755
}

lib/node_modules/@stdlib/math/base/special/boxcox1p/benchmark/c/native/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ static double benchmark( void ) {
9898
int i;
9999

100100
for ( i = 0; i < 100; i++ ) {
101-
x[ i ] = ( rand_double() * 10.0 );
102-
y[ i ] = ( rand_double() * 10.0 );
101+
x[ i ] = rand_double() * 10.0;
102+
y[ i ] = rand_double() * 10.0;
103103
}
104104

105105
t = tic();

0 commit comments

Comments
 (0)