Skip to content

bench: remove irrelevant benchmark, update boost link in math/base/special/gamma-delta-ratio #2776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -22,7 +22,6 @@

var resolve = require( 'path' ).resolve;
var bench = require( '@stdlib/bench' );
var gamma = require( '@stdlib/math/base/special/gamma' );
var randu = require( '@stdlib/random/base/randu' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var tryRequire = require( '@stdlib/utils/try-require' );
@@ -61,26 +60,3 @@ bench( pkg+'::native', opts, function benchmark( b ) {
b.pass( 'benchmark finished' );
b.end();
});

bench( pkg+'::native,naive', function benchmark( b ) {
var delta;
var z;
var y;
var i;

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
z = randu() * 100.0;
delta = randu() * 100.0;
y = gamma( z ) / gamma( z + delta );
if ( isnan( y ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( y ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
b.end();
});
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
*
* ## Notice
*
* 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.
* 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.
*
* ```text
* Copyright John Maddock 2006-7, 2013-14.