From 670d7c8a4ca05b57f37a11dbdae961e60c7bb5a4 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 20 Sep 2024 22:06:24 +0000 Subject: [PATCH] Auto-generated commit --- .github/.keepalive | 1 - CHANGELOG.md | 6 ++++-- CONTRIBUTORS | 7 +++++++ benchmark/benchmark.js | 6 +++--- benchmark/benchmark.native.js | 6 +++--- benchmark/benchmark.ndarray.js | 6 +++--- benchmark/benchmark.ndarray.native.js | 6 +++--- examples/index.js | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) delete mode 100644 .github/.keepalive diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 8a890ec..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-09-01T03:50:05.545Z diff --git a/CHANGELOG.md b/CHANGELOG.md index 03fe566..e01b7e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@
-## Unreleased (2024-09-01) +## Unreleased (2024-09-20)
@@ -12,6 +12,7 @@
+- [`e454c91`](https://github.com/stdlib-js/stdlib/commit/e454c91ae2af928b61effcddadb31548758f8675) - **chore:** improve code style and conditionals _(by Philipp Burckhardt)_ - [`272ae7a`](https://github.com/stdlib-js/stdlib/commit/272ae7ac5c576c68cfab1b6e304c86407faa20cd) - **docs:** remove comment _(by Athan Reines)_ - [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_ @@ -25,9 +26,10 @@ ### Contributors -A total of 1 person contributed to this release. Thank you to this contributor: +A total of 2 people contributed to this release. Thank you to the following contributors: - Athan Reines +- Philipp Burckhardt
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 57d1184..147a89e 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2,6 +2,7 @@ # # Contributors listed in alphabetical order. +Aayush Khanna <96649223+aayush0325@users.noreply.github.com> Adarsh Palaskar Aditya Sapra AgPriyanshu18 <113460573+AgPriyanshu18@users.noreply.github.com> @@ -26,17 +27,20 @@ EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com> Frank Kovacs Golden Kumar <103646877+AuenKr@users.noreply.github.com> Gunj Joshi +HarshaNP <96897754+GittyHarsha@users.noreply.github.com> Harshita Kalani Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com> Jaimin Godhani <112328542+Jai0401@users.noreply.github.com> James Gelok Jaysukh Makvana +Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com> Jithin KS Joel Mathew Koshy Joey Reed Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com> Joris Labie Justin Dennison +Kaif Mohd Karthik Prakash <116057817+skoriop@users.noreply.github.com> Khaldon Krishnendu Das <86651039+itskdhere@users.noreply.github.com> @@ -86,8 +90,10 @@ Stephannie Jiménez Gacha Suraj kumar <125961509+kumarsuraj212003@users.noreply.github.com> Tirtadwipa Manunggal Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com> +Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com> Utkarsh Utkarsh Raj +Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com> Varad Gupta Xiaochuan Ye Yernar Yergaziyev @@ -96,3 +102,4 @@ nishant-s7 <97207366+nishant-s7@users.noreply.github.com> orimiles5 <97595296+orimiles5@users.noreply.github.com> rainn <88160429+AmCodesLame@users.noreply.github.com> rei2hu +yaswanth <116426380+yaswanthkosuru@users.noreply.github.com> diff --git a/benchmark/benchmark.js b/benchmark/benchmark.js index 1e18c0b..4499d83 100644 --- a/benchmark/benchmark.js +++ b/benchmark/benchmark.js @@ -32,8 +32,8 @@ var sdsnansum = require( './../lib/sdsnansum.js' ); // FUNCTIONS // -function randOrNan() { - if ( bernoulli() < 0.2 ) { +function rand() { + if ( bernoulli( 0.2 ) ) { return NaN; } return uniform( -20.0, -10.0 ); @@ -47,7 +47,7 @@ function randOrNan() { * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', randOrNan ); + var x = filledarrayBy( len, 'float32', rand ); return benchmark; function benchmark( b ) { diff --git a/benchmark/benchmark.native.js b/benchmark/benchmark.native.js index 6a50b04..a48298e 100644 --- a/benchmark/benchmark.native.js +++ b/benchmark/benchmark.native.js @@ -41,8 +41,8 @@ var opts = { // FUNCTIONS // -function randOrNan() { - if ( bernoulli() < 0.2 ) { +function rand() { + if ( bernoulli( 0.2 ) ) { return NaN; } return uniform( -20.0, -10.0 ); @@ -56,7 +56,7 @@ function randOrNan() { * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', randOrNan ); + var x = filledarrayBy( len, 'float32', rand ); return benchmark; function benchmark( b ) { diff --git a/benchmark/benchmark.ndarray.js b/benchmark/benchmark.ndarray.js index b23a91b..b48fbf2 100644 --- a/benchmark/benchmark.ndarray.js +++ b/benchmark/benchmark.ndarray.js @@ -32,8 +32,8 @@ var sdsnansum = require( './../lib/ndarray.js' ); // FUNCTIONS // -function randOrNan() { - if ( bernoulli() < 0.2 ) { +function rand() { + if ( bernoulli( 0.2 ) ) { return NaN; } return uniform( -20.0, -10.0 ); @@ -47,7 +47,7 @@ function randOrNan() { * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', randOrNan ); + var x = filledarrayBy( len, 'float32', rand ); return benchmark; function benchmark( b ) { diff --git a/benchmark/benchmark.ndarray.native.js b/benchmark/benchmark.ndarray.native.js index 76ceb01..20f6fb3 100644 --- a/benchmark/benchmark.ndarray.native.js +++ b/benchmark/benchmark.ndarray.native.js @@ -41,8 +41,8 @@ var opts = { // FUNCTIONS // -function randOrNan() { - if ( bernoulli() < 0.2 ) { +function rand() { + if ( bernoulli( 0.2 ) ) { return NaN; } return uniform( -20.0, -10.0 ); @@ -56,7 +56,7 @@ function randOrNan() { * @returns {Function} benchmark function */ function createBenchmark( len ) { - var x = filledarrayBy( len, 'float32', randOrNan ); + var x = filledarrayBy( len, 'float32', rand ); return benchmark; function benchmark( b ) { diff --git a/examples/index.js b/examples/index.js index e7039ab..e5e247c 100644 --- a/examples/index.js +++ b/examples/index.js @@ -23,14 +23,14 @@ var bernoulli = require( '@stdlib/random-base-bernoulli' ); var filledarrayBy = require( '@stdlib/array-filled-by' ); var sdsnansum = require( './../lib' ); -function randOrNan() { - if ( bernoulli() < 0.2 ) { +function rand() { + if ( bernoulli( 0.2 ) ) { return NaN; } return discreteUniform( 0, 100 ); } -var x = filledarrayBy( 10, 'float32', randOrNan ); +var x = filledarrayBy( 10, 'float32', rand ); console.log( x ); var v = sdsnansum( x.length, x, 1 );