Skip to content

Commit 3722f99

Browse files
refactor: update math/base/special/hypot to follow latest project conventions
--- 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: passed - 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 eae6f96 commit 3722f99

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

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

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

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

@@ -44,8 +44,8 @@ bench( pkg, function benchmark( b ) {
4444
var i;
4545

4646
len = 100;
47-
x = discreteUniform( len, -50, 50 );
48-
y = discreteUniform( len, -50, 50 );
47+
x = uniform( len, -50, 50 );
48+
y = uniform( len, -50, 50 );
4949

5050
b.tic();
5151
for ( i = 0; i < b.iterations; i++ ) {
@@ -70,8 +70,8 @@ bench( pkg+'::built-in', opts, function benchmark( b ) {
7070
var i;
7171

7272
len = 100;
73-
x = discreteUniform( len, -50, 50 );
74-
y = discreteUniform( len, -50, 50 );
73+
x = uniform( len, -50, 50 );
74+
y = uniform( len, -50, 50 );
7575

7676
b.tic();
7777
for ( i = 0; i < b.iterations; i++ ) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench' );
2525
var isnan = require( '@stdlib/math/base/assert/is-nan' );
26-
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
26+
var uniform = require( '@stdlib/random/array/uniform' );
2727
var tryRequire = require( '@stdlib/utils/try-require' );
2828
var pkg = require( './../package.json' ).name;
2929

@@ -46,8 +46,8 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4646
var i;
4747

4848
len = 100;
49-
x = discreteUniform( len, -50, 50 );
50-
y = discreteUniform( len, -50, 50 );
49+
x = uniform( len, -50, 50 );
50+
y = uniform( len, -50, 50 );
5151

5252
b.tic();
5353
for ( i = 0; i < b.iterations; i++ ) {

lib/node_modules/@stdlib/math/base/special/hypot/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 ] = round( ( rand_double() * 100.0 ) - 50.0 );
102-
y[ i ] = round( ( rand_double() * 100.0 ) - 50.0 );
101+
x[ i ] = ( rand_double() * 100.0 ) - 50.0;
102+
y[ i ] = ( rand_double() * 100.0 ) - 50.0;
103103
}
104104

105105
t = tic();

lib/node_modules/@stdlib/math/base/special/hypot/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
{
2929
"task": "build",
3030
"src": [
31-
"./src/hypot.c"
31+
"./src/main.c"
3232
],
3333
"include": [
3434
"./include"
@@ -48,7 +48,7 @@
4848
{
4949
"task": "benchmark",
5050
"src": [
51-
"./src/hypot.c"
51+
"./src/main.c"
5252
],
5353
"include": [
5454
"./include"
@@ -67,7 +67,7 @@
6767
{
6868
"task": "examples",
6969
"src": [
70-
"./src/hypot.c"
70+
"./src/main.c"
7171
],
7272
"include": [
7373
"./include"

lib/node_modules/@stdlib/math/base/special/hypot/src/hypot.c renamed to lib/node_modules/@stdlib/math/base/special/hypot/src/main.c

File renamed without changes.

0 commit comments

Comments
 (0)