Skip to content

Commit 0ca797b

Browse files
committed
bench: use float literals for uniform range arguments
--- 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 685691c commit 0ca797b

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

lib/node_modules/@stdlib/math/base/special/fast/hypotf/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ bench( pkg, function benchmark( b ) {
3939
opts = {
4040
'dtype': 'float32'
4141
};
42-
x = uniform( 100, -50, 50, opts );
43-
y = uniform( 100, -50, 50, opts );
42+
x = uniform( 100, -50.0, 50.0, opts );
43+
y = uniform( 100, -50.0, 50.0, opts );
4444

4545
b.tic();
4646
for ( i = 0; i < b.iterations; i++ ) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4848
opts = {
4949
'dtype': 'float32'
5050
};
51-
x = uniform( 100, -50, 50, opts );
52-
y = uniform( 100, -50, 50, opts );
51+
x = uniform( 100, -50.0, 50.0, opts );
52+
y = uniform( 100, -50.0, 50.0, opts );
5353

5454
b.tic();
5555
for ( i = 0; i < b.iterations; i++ ) {

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

Lines changed: 2 additions & 2 deletions
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 = uniform( 100, -500.0, 500, {
37+
x = uniform( 100, -500.0, 500.0, {
3838
'dtype': 'float32'
3939
});
4040

@@ -58,7 +58,7 @@ bench( pkg+'::built-in', function benchmark( b ) {
5858
var y;
5959
var i;
6060

61-
x = uniform( 100, -500.0, 500, {
61+
x = uniform( 100, -500.0, 500.0, {
6262
'dtype': 'float32'
6363
});
6464

lib/node_modules/@stdlib/math/base/special/floorf/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 = uniform( 100, -500.0, 500, {
46+
x = uniform( 100, -500.0, 500.0, {
4747
'dtype': 'float32'
4848
});
4949

lib/node_modules/@stdlib/number/float16/base/sub/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ bench( pkg, function benchmark( b ) {
3838
var y;
3939
var i;
4040

41-
x = map( uniform( 100, -100, 100 ), naryFunction( toFloat16, 1 ) );
42-
y = map( uniform( 100, -100, 100 ), naryFunction( toFloat16, 1 ) );
41+
x = map( uniform( 100, -100.0, 100.0 ), naryFunction( toFloat16, 1 ) );
42+
y = map( uniform( 100, -100.0, 100.0 ), naryFunction( toFloat16, 1 ) );
4343

4444
b.tic();
4545
for ( i = 0; i < b.iterations; i++ ) {

lib/node_modules/@stdlib/stats/base/dists/binomial/cdf/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bench( pkg, function benchmark( b ) {
4343
};
4444
x = uniform( 100, 0.0, 100.0, opts );
4545
n = discreteUniform( 100, 1, 100, opts );
46-
p = uniform( 100, 0, 1, opts );
46+
p = uniform( 100, 0.0, 1.0, opts );
4747

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

0 commit comments

Comments
 (0)