Skip to content

Commit 88aff2e

Browse files
Merge branch 'develop' of https://github.com/Neerajpathak07/stdlib into ndarray-dnanmean
2 parents c4d570d + 954e7c1 commit 88aff2e

File tree

118 files changed

+2870
-938
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+2870
-938
lines changed

.github/workflows/scripts/lint_javascript_files

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,23 @@ fi
6666
# Lint JavaScript command-line interfaces...
6767
file=$(echo "${files_to_lint}" | tr ' ' '\n' | grep '\.js$' | grep -E '/bin/cli$' | tr '\n' ' ' | sed 's/ $//')
6868
if [[ -n "${file}" ]]; then
69-
make lint-javascript-files FIX="${fix}" FILES="${file}"
69+
make lint-javascript-files FIX="${fix}" FAST_FAIL=0 FILES="${file}"
7070
fi
7171

7272
# Lint JavaScript example files:
7373
files=$(echo "${files_to_lint}" | tr ' ' '\n' | grep '/examples/.*\.js$' | tr '\n' ' ' | sed 's/ $//')
7474
if [[ -n "${files}" ]]; then
75-
make lint-javascript-files FIX="${fix}" FILES="${files}" ESLINT_CONF="${eslint_examples_conf}"
75+
make lint-javascript-files FIX="${fix}" FAST_FAIL=0 FILES="${files}" ESLINT_CONF="${eslint_examples_conf}"
7676
fi
7777

7878
# Lint JavaScript test files:
7979
files=$(echo "${files_to_lint}" | tr ' ' '\n' | grep '/test/.*\.js$' | tr '\n' ' ' | sed 's/ $//')
8080
if [[ -n "${files}" ]]; then
81-
make lint-javascript-files FIX="${fix}" FILES="${files}" ESLINT_CONF="${eslint_tests_conf}"
81+
make lint-javascript-files FIX="${fix}" FAST_FAIL=0 FILES="${files}" ESLINT_CONF="${eslint_tests_conf}"
8282
fi
8383

8484
# Lint JavaScript benchmark files:
8585
files=$(echo "${files_to_lint}" | tr ' ' '\n' | grep '/benchmark/.*\.js$' | tr '\n' ' ' | sed 's/ $//')
8686
if [[ -n "${files}" ]]; then
87-
make lint-javascript-files FIX="${fix}" FILES="${files}" ESLINT_CONF="${eslint_benchmarks_conf}"
87+
make lint-javascript-files FIX="${fix}" FAST_FAIL=0 FILES="${files}" ESLINT_CONF="${eslint_benchmarks_conf}"
8888
fi

CONTRIBUTORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ Dominik Moritz <[email protected]>
3535
Dorrin Sotoudeh <[email protected]>
3636
EuniceSim142 <[email protected]>
3737
Frank Kovacs <[email protected]>
38+
GK Bishnoi <[email protected]>
39+
3840
Golden Kumar <[email protected]>
3941
Gunj Joshi <[email protected]>
4042
Gururaj Gurram <[email protected]>
43+
4144
4245
Harshita Kalani <[email protected]>
4346
Hridyanshu <[email protected]>

lib/node_modules/@stdlib/blas/ext/base/sapxsum/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ int main( void ) {
280280
## See Also
281281
282282
- <span class="package-name">[`@stdlib/blas/ext/base/dapxsum`][@stdlib/blas/ext/base/dapxsum]</span><span class="delimiter">: </span><span class="description">add a scalar constant to each double-precision floating-point strided array element and compute the sum.</span>
283-
- <span class="package-name">[`@stdlib/blas/ext/base/gapxsum`][@stdlib/blas/ext/base/gapxsum]</span><span class="delimiter">: </span><span class="description">add a constant to each strided array element and compute the sum.</span>
284-
- <span class="package-name">[`@stdlib/blas/ext/base/sapxsumpw`][@stdlib/blas/ext/base/sapxsumpw]</span><span class="delimiter">: </span><span class="description">add a constant to each single-precision floating-point strided array element and compute the sum using pairwise summation.</span>
283+
- <span class="package-name">[`@stdlib/blas/ext/base/gapxsum`][@stdlib/blas/ext/base/gapxsum]</span><span class="delimiter">: </span><span class="description">add a scalar constant to each strided array element and compute the sum.</span>
284+
- <span class="package-name">[`@stdlib/blas/ext/base/sapxsumpw`][@stdlib/blas/ext/base/sapxsumpw]</span><span class="delimiter">: </span><span class="description">add a scalar constant to each single-precision floating-point strided array element and compute the sum using pairwise summation.</span>
285285
- <span class="package-name">[`@stdlib/blas/ext/base/ssum`][@stdlib/blas/ext/base/ssum]</span><span class="delimiter">: </span><span class="description">calculate the sum of single-precision floating-point strided array elements.</span>
286286
287287
</section>

lib/node_modules/@stdlib/repl/help/data/data.csv

Lines changed: 10 additions & 10 deletions
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/help/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/stats/base/dists/binomial/skewness/benchmark/benchmark.native.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ var bench = require( '@stdlib/bench' );
2525
var Int32Array = require( '@stdlib/array/int32' );
2626
var Float64Array = require( '@stdlib/array/float64' );
2727
var tryRequire = require( '@stdlib/utils/try-require' );
28-
var ceil = require( '@stdlib/math/base/special/ceil' );
29-
var randu = require( '@stdlib/random/base/randu' );
28+
var uniform = require( '@stdlib/random/base/uniform' );
29+
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
3030
var isnan = require( '@stdlib/math/base/assert/is-nan' );
3131
var pkg = require( './../package.json' ).name;
3232

@@ -52,8 +52,8 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5252
n = new Int32Array( len );
5353
p = new Float64Array( len );
5454
for ( i = 0; i < len; i++ ) {
55-
n[ i ] = ceil( randu() * 100.0 );
56-
p[ i ] = randu();
55+
n[ i ] = discreteUniform( 1, 100 );
56+
p[ i ] = uniform( 0.0, 1.0 );
5757
}
5858

5959
b.tic();

lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ for ( i = 0; i < 10; i++ ) {
130130

131131
<!-- /.examples -->
132132

133-
<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
134-
135-
<section class="references">
136-
137133
<!-- C interface documentation. -->
138134

139135
* * *
@@ -162,7 +158,7 @@ for ( i = 0; i < 10; i++ ) {
162158

163159
#### stdlib_base_dists_exponential_cdf( x, lambda )
164160

165-
Evaluates the [probability density function][cdf] (cdf) for an [exponential][exponential-distribution] distribution with rate parameter `lambda`.
161+
Evaluates the [cumulative distribution function][cdf] (cdf) for an [exponential][exponential-distribution] distribution with rate parameter `lambda`.
166162

167163
```c
168164
double out = stdlib_base_dists_exponential_cdf( 2.0, 0.7 );
@@ -226,6 +222,12 @@ int main( void ) {
226222

227223
<!-- /.references -->
228224

225+
<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
226+
227+
<section class="references">
228+
229+
</section>
230+
229231
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
230232

231233
<section class="related">

lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/benchmark/benchmark.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench' );
2525
var Float64Array = require( '@stdlib/array/float64' );
26-
var randu = require( '@stdlib/random/base/randu' );
26+
var uniform = require( '@stdlib/random/base/uniform' );
2727
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2828
var EPS = require( '@stdlib/constants/float64/eps' );
2929
var tryRequire = require( '@stdlib/utils/try-require' );
@@ -51,8 +51,8 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5151
x = new Float64Array( len );
5252
lambda = new Float64Array( len );
5353
for ( i = 0; i < len; i++ ) {
54-
x[ i ] = ( randu()*100.0 );
55-
lambda[ i ] = ( randu()*100.0 ) + EPS;
54+
x[ i ] = uniform( 0.0, 100.0 );
55+
lambda[ i ] = uniform( EPS, 100.0 );
5656
}
5757

5858
b.tic();

lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static double benchmark( void ) {
107107

108108
t = tic();
109109
for ( i = 0; i < ITERATIONS; i++ ) {
110-
y = stdlib_base_dists_exponential_cdf( x[ i % 100 ], lambda[ i % 100 ]);
110+
y = stdlib_base_dists_exponential_cdf( x[ i % 100 ], lambda[ i % 100 ] );
111111
if ( y != y ) {
112112
printf( "should not return NaN\n" );
113113
break;

lib/node_modules/@stdlib/stats/base/dists/exponential/logpdf/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,6 @@ for ( i = 0; i < 10; i++ ) {
137137

138138
<!-- /.examples -->
139139

140-
<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
141-
142-
<section class="references">
143-
144140
<!-- C interface documentation. -->
145141

146142
* * *
@@ -231,6 +227,12 @@ int main( void ) {
231227

232228
</section>
233229

230+
<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
231+
232+
<section class="references">
233+
234+
</section>
235+
234236
<!-- /.references -->
235237

236238
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->

0 commit comments

Comments
 (0)