Skip to content

Commit 7b9c843

Browse files
committed
bench: remove irrelevant benchmark, update boost link in math/base/special/gamma-delta-ratio
PR-URL: stdlib-js#2776 --------- Signed-off-by: Gunj Joshi <[email protected]> Reviewed-by: Philipp Burckhardt <[email protected]>
1 parent c75da3e commit 7b9c843

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/benchmark/benchmark.native.js

-24
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench' );
25-
var gamma = require( '@stdlib/math/base/special/gamma' );
2625
var randu = require( '@stdlib/random/base/randu' );
2726
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2827
var tryRequire = require( '@stdlib/utils/try-require' );
@@ -61,26 +60,3 @@ bench( pkg+'::native', opts, function benchmark( b ) {
6160
b.pass( 'benchmark finished' );
6261
b.end();
6362
});
64-
65-
bench( pkg+'::native,naive', function benchmark( b ) {
66-
var delta;
67-
var z;
68-
var y;
69-
var i;
70-
71-
b.tic();
72-
for ( i = 0; i < b.iterations; i++ ) {
73-
z = randu() * 100.0;
74-
delta = randu() * 100.0;
75-
y = gamma( z ) / gamma( z + delta );
76-
if ( isnan( y ) ) {
77-
b.fail( 'should not return NaN' );
78-
}
79-
}
80-
b.toc();
81-
if ( isnan( y ) ) {
82-
b.fail( 'should not return NaN' );
83-
}
84-
b.pass( 'benchmark finished' );
85-
b.end();
86-
});

lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/lib/gamma_delta_ratio_lanczos.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* ## Notice
2020
*
21-
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_64_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
21+
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_85_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
2222
*
2323
* ```text
2424
* Copyright John Maddock 2006-7, 2013-14.

0 commit comments

Comments
 (0)