From d1cb7556d59cc5cffb5e3d1b2b8150f5e1dcefc4 Mon Sep 17 00:00:00 2001 From: Gunj Joshi Date: Sun, 11 Aug 2024 15:34:40 +0530 Subject: [PATCH 1/3] bench: remove unrelated benchmark Signed-off-by: Gunj Joshi --- .../benchmark/benchmark.native.js | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/benchmark/benchmark.native.js index 6703f762560c..9527dc1c2a57 100644 --- a/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/benchmark/benchmark.native.js @@ -61,26 +61,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(); -}); From 233bb42bcce8115ff7915122c8c5873b80c56669 Mon Sep 17 00:00:00 2001 From: Gunj Joshi Date: Sun, 11 Aug 2024 15:36:37 +0530 Subject: [PATCH 2/3] docs: update boost link Signed-off-by: Gunj Joshi --- .../special/gamma-delta-ratio/lib/gamma_delta_ratio_lanczos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/lib/gamma_delta_ratio_lanczos.js b/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/lib/gamma_delta_ratio_lanczos.js index fedebf00a2f3..a713aba166bd 100644 --- a/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/lib/gamma_delta_ratio_lanczos.js +++ b/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/lib/gamma_delta_ratio_lanczos.js @@ -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. From cd20f3cb36f85f3acd6015c3bdd74c41ce12e39d Mon Sep 17 00:00:00 2001 From: Gunj Joshi Date: Sun, 11 Aug 2024 15:57:16 +0530 Subject: [PATCH 3/3] docs: remove unused import Signed-off-by: Gunj Joshi --- .../base/special/gamma-delta-ratio/benchmark/benchmark.native.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/benchmark/benchmark.native.js index 9527dc1c2a57..d4981e5fbdba 100644 --- a/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/benchmark/benchmark.native.js @@ -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' );