Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Sep 20, 2024
1 parent c9c2580 commit 670d7c8
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 18 deletions.
1 change: 0 additions & 1 deletion .github/.keepalive

This file was deleted.

6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
<section class="release" id="unreleased">

## Unreleased (2024-09-01)
## Unreleased (2024-09-20)

<section class="commits">

### Commits

<details>

- [`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)_

Expand All @@ -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

</section>

Expand Down
7 changes: 7 additions & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# Contributors listed in alphabetical order.

Aayush Khanna <96649223+aayush0325@users.noreply.github.com>
Adarsh Palaskar <adarshpalaskar99@gmail.com>
Aditya Sapra <adityaework@gmail.com>
AgPriyanshu18 <113460573+AgPriyanshu18@users.noreply.github.com>
Expand All @@ -26,17 +27,20 @@ EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
Frank Kovacs <fran70kk@gmail.com>
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
Gunj Joshi <gunjjoshi8372@gmail.com>
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
Harshita Kalani <harshitakalani02@gmail.com>
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
James Gelok <jdgelok@gmail.com>
Jaysukh Makvana <jaysukhmakvana2004@gmail.com>
Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com>
Jithin KS <jithinks112@gmail.com>
Joel Mathew Koshy <joelmathewkoshy@gmail.com>
Joey Reed <joeyrreed@gmail.com>
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
Joris Labie <joris.labie1@gmail.com>
Justin Dennison <justin1dennison@gmail.com>
Kaif Mohd <mdkaifprofession@gmail.com>
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
Khaldon <kahmd1444@gmail.com>
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
Expand Down Expand Up @@ -86,8 +90,10 @@ Stephannie Jiménez Gacha <steff456@hotmail.com>
Suraj kumar <125961509+kumarsuraj212003@users.noreply.github.com>
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
Utkarsh <http://utkarsh11105@gmail.com>
Utkarsh Raj <rajutkarsh2505@gmail.com>
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
Varad Gupta <varadgupta21@gmail.com>
Xiaochuan Ye <tap91624@gmail.com>
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
Expand All @@ -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 <reimu@reimu.ws>
yaswanth <116426380+yaswanthkosuru@users.noreply.github.com>
6 changes: 3 additions & 3 deletions benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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 ) {
Expand Down
6 changes: 3 additions & 3 deletions benchmark/benchmark.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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 ) {
Expand Down
6 changes: 3 additions & 3 deletions benchmark/benchmark.ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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 ) {
Expand Down
6 changes: 3 additions & 3 deletions benchmark/benchmark.ndarray.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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 ) {
Expand Down
6 changes: 3 additions & 3 deletions examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 670d7c8

Please sign in to comment.