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 850e3bb commit b1dbc70
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 16 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,26 @@
<section class="release" id="unreleased">

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

<section class="bug-fixes">

### Bug Fixes

- [`898b50d`](https://github.com/stdlib-js/stdlib/commit/898b50d8d705bdf6a55db8cf1858ea1e1d257c35) - fix includes and types

</section>

<!-- /.bug-fixes -->

<section class="commits">

### Commits

<details>

- [`e454c91`](https://github.com/stdlib-js/stdlib/commit/e454c91ae2af928b61effcddadb31548758f8675) - **chore:** improve code style and conditionals _(by Philipp Burckhardt)_
- [`898b50d`](https://github.com/stdlib-js/stdlib/commit/898b50d8d705bdf6a55db8cf1858ea1e1d257c35) - **fix:** fix includes and types _(by Philipp Burckhardt)_
- [`7cc8bb9`](https://github.com/stdlib-js/stdlib/commit/7cc8bb9a96147bb94fe8cfddc180a6ec535fc368) - **refactor:** update `blas/ext/base/dsnannsumors` _(by HarshaNP, 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 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 <[email protected]>
Adarsh Palaskar <[email protected]>
Aditya Sapra <[email protected]>
AgPriyanshu18 <[email protected]>
Expand All @@ -26,17 +27,20 @@ EuniceSim142 <[email protected]>
Frank Kovacs <[email protected]>
Golden Kumar <[email protected]>
Gunj Joshi <[email protected]>
HarshaNP <[email protected]>
Harshita Kalani <[email protected]>
Hridyanshu <[email protected]>
Jaimin Godhani <[email protected]>
James Gelok <[email protected]>
Jaysukh Makvana <[email protected]>
Jenish Thapa <[email protected]>
Jithin KS <[email protected]>
Joel Mathew Koshy <[email protected]>
Joey Reed <[email protected]>
Jordan Gallivan <[email protected]>
Joris Labie <[email protected]>
Justin Dennison <[email protected]>
Kaif Mohd <[email protected]>
Karthik Prakash <[email protected]>
Khaldon <[email protected]>
Krishnendu Das <[email protected]>
Expand Down Expand Up @@ -86,8 +90,10 @@ Stephannie Jiménez Gacha <[email protected]>
Suraj kumar <[email protected]>
Tirtadwipa Manunggal <[email protected]>
Tudor Pagu <[email protected]>
Tufailahmed Bargir <[email protected]>
Utkarsh <http://[email protected]>
Utkarsh Raj <[email protected]>
Vaibhav Patel <[email protected]>
Varad Gupta <[email protected]>
Xiaochuan Ye <[email protected]>
Yernar Yergaziyev <[email protected]>
Expand All @@ -96,3 +102,4 @@ nishant-s7 <[email protected]>
orimiles5 <[email protected]>
rainn <[email protected]>
rei2hu <[email protected]>
yaswanth <[email protected]>
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,14 @@ var Float32Array = require( '@stdlib/array-float32' );
var Float64Array = require( '@stdlib/array-float64' );
var dsnannsumors = require( '@stdlib/blas-ext-base-dsnannsumors' );

var x;

function rand() {
if ( bernoulli( 0.5 ) < 0.2 ) {
return NaN;
}
return discreteUniform( 0, 100 );
}

x = filledarrayBy( 10, 'float32', rand );
var x = filledarrayBy( 10, 'float32', rand );
console.log( x );

var out = new Float64Array( 2 );
Expand Down
2 changes: 1 addition & 1 deletion benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function createBenchmark( len ) {
return benchmark;

function rand() {
if ( bernoulli( 0.5 ) < 0.2 ) {
if ( bernoulli( 0.2 ) ) {
return NaN;
}
return uniform( -10.0, 10.0 );
Expand Down
2 changes: 1 addition & 1 deletion benchmark/benchmark.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function createBenchmark( len ) {
return benchmark;

function rand() {
if ( bernoulli( 0.5 ) < 0.2 ) {
if ( bernoulli( 0.2 ) ) {
return NaN;
}
return uniform( -10.0, 10.0 );
Expand Down
2 changes: 1 addition & 1 deletion benchmark/benchmark.ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function createBenchmark( len ) {
return benchmark;

function rand() {
if ( bernoulli( 0.5 ) < 0.2 ) {
if ( bernoulli( 0.2 ) ) {
return NaN;
}
return uniform( -10.0, 10.0 );
Expand Down
2 changes: 1 addition & 1 deletion benchmark/benchmark.ndarray.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function createBenchmark( len ) {
return benchmark;

function rand() {
if ( bernoulli( 0.5 ) < 0.2 ) {
if ( bernoulli( 0.2 ) ) {
return NaN;
}
return uniform( -10.0, 10.0 );
Expand Down
9 changes: 3 additions & 6 deletions examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,16 @@ var filledarrayBy = require( '@stdlib/array-filled-by' );
var Float64Array = require( '@stdlib/array-float64' );
var dsnannsumors = require( './../lib' );

var out;
var x;

function rand() {
if ( bernoulli( 0.5 ) < 0.2 ) {
if ( bernoulli( 0.2 ) ) {
return NaN;
}
return discreteUniform( 0, 100 );
}

x = filledarrayBy( 10, 'float32', rand );
var x = filledarrayBy( 10, 'float32', rand );
console.log( x );

out = new Float64Array( 2 );
var out = new Float64Array( 2 );
dsnannsumors( x.length, x, 1, out, 1 );
console.log( out );
3 changes: 1 addition & 2 deletions src/addon.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "stdlib/napi/argv_strided_float32array.h"
#include "stdlib/napi/argv_strided_float64array.h"
#include <node_api.h>
#include <assert.h>

/**
* Receives JavaScript callback invocation data.
Expand Down Expand Up @@ -56,4 +55,4 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
return NULL;
}

STDLIB_NAPI_MODULE_EXPORT_FCN( addon )
STDLIB_NAPI_MODULE_EXPORT_FCN( addon )

0 comments on commit b1dbc70

Please sign in to comment.