Skip to content

Commit 7a85a80

Browse files
committed
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into develop
2 parents 4f0b1ca + ccff6bb commit 7a85a80

File tree

35 files changed

+246
-334
lines changed

35 files changed

+246
-334
lines changed

.github/workflows/markdown_equations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
run: |
119119
make markdown-svg-equations-files FILES="${{ steps.changed.outputs.files }}"
120120
121-
# Stage *all* tracked and untracked changes first
121+
# Stage *all* tracked and untracked changes first...
122122
git add -A
123123
124124
if git diff --cached --quiet; then
@@ -139,7 +139,7 @@ jobs:
139139
make markdown-img-equations-files FILES="${{ steps.changed.outputs.files }}"
140140
make markdown-img-equations-src-urls-files FILES="${{ steps.changed.outputs.files }}"
141141
142-
# Stage *all* tracked and untracked changes first
142+
# Stage *all* tracked and untracked changes first...
143143
git add -A
144144
145145
if git diff --cached --quiet; then

.github/workflows/markdown_pkg_urls.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
run: |
125125
make markdown-pkg-urls MARKDOWN_FILTER='.*/lib/node_modules/@stdlib/.*'
126126
127-
# Stage *all* tracked and untracked changes first
127+
# Stage *all* tracked and untracked changes first...
128128
git add -A
129129
130130
if git diff --cached --quiet; then

.github/workflows/markdown_related_packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ jobs:
135135
make markdown-related-files FILES="${files}"
136136
make markdown-pkg-urls-files FILES="${files}"
137137
138-
# Stage *all* tracked and untracked changes first
138+
# Stage *all* tracked and untracked changes first...
139139
git add -A
140140
141-
# If the index is identical to HEAD, nothing real changed:
141+
# If the index is identical to HEAD, nothing really changed:
142142
if git diff --cached --quiet; then
143143
echo "changed=false" >> $GITHUB_OUTPUT
144144

.github/workflows/update_contributors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
run: |
7979
make update-contributors
8080
81-
# Stage *all* tracked and untracked changes first
81+
# Stage *all* tracked and untracked changes first...
8282
git add -A
8383
8484
# If the index is identical to HEAD, nothing real changed:

lib/node_modules/@stdlib/_tools/github/rank-users/lib/pluck.raw.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
function pluck( data, key ) {
2929
var out;
3030
var i;
31-
out = new Array( data.length );
32-
for ( i = 0; i < out.length; i++ ) {
33-
out[ i ] = [ i, data[i][key] ];
31+
out = [];
32+
for ( i = 0; i < data.length; i++ ) {
33+
out.push( [ i, data[i][key] ] );
3434
}
3535
return out;
3636
}

lib/node_modules/@stdlib/_tools/github/user-orgs/test/fixtures/results.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
"avatar_url": "https://avatars.githubusercontent.com/u/8172974?v=3",
2626
"description": "Boop."
2727
}
28-
]
28+
]

lib/node_modules/@stdlib/number/int32/base/to-uint32/lib/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@
2828
*
2929
* @example
3030
* var float64ToInt32 = require( '@stdlib/number/float64/base/to-int32' );
31+
*
3132
* var y = int32ToUint32( float64ToInt32( -1.0 ) );
3233
* // returns 4294967295
3334
*
3435
* @example
3536
* var float64ToInt32 = require( '@stdlib/number/float64/base/to-int32' );
37+
*
3638
* var y = int32ToUint32( float64ToInt32( 3 ) );
3739
* // returns 3
3840
*/

lib/node_modules/@stdlib/regexp/dirname-windows/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var reDirnameWindows = require( '@stdlib/regexp/dirname-windows' );
3232

3333
#### reDirnameWindows()
3434

35-
Returns a [regular expression][regexp] to capture a Windows path [dirname][dirname].
35+
Returns a [regular expression][regexp] to capture a Windows path [dirname][dirname].
3636

3737
```javascript
3838
var RE_DIRNAME_WINDOWS = reDirnameWindows();
@@ -42,7 +42,7 @@ var dir = RE_DIRNAME_WINDOWS.exec( 'foo\\bar\\index.js' )[ 1 ];
4242

4343
#### reDirnameWindows.REGEXP
4444

45-
[Regular expression][regexp] to capture a Windows path [dirname][dirname].
45+
[Regular expression][regexp] to capture a Windows path [dirname][dirname].
4646

4747
```javascript
4848
var dir = reDirnameWindows.REGEXP.exec( 'foo\\bar\\index.js' )[ 1 ];

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

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -129,22 +129,18 @@ y = mycdf( 12.0 );
129129
<!-- eslint no-undef: "error" -->
130130

131131
```javascript
132-
var randu = require( '@stdlib/random/base/randu' );
132+
var uniform = require( '@stdlib/random/array/uniform' );
133+
var logEachMap = require( '@stdlib/console/log-each-map' );
133134
var cdf = require( '@stdlib/stats/base/dists/cosine/cdf' );
134135

135-
var mu;
136-
var s;
137-
var x;
138-
var y;
139-
var i;
140-
141-
for ( i = 0; i < 10; i++ ) {
142-
x = randu() * 10.0;
143-
mu = randu() * 10.0;
144-
s = randu() * 10.0;
145-
y = cdf( x, mu, s );
146-
console.log( 'x: %d, µ: %d, s: %d, F(x;µ,s): %d', x, mu, s, y );
147-
}
136+
var opts = {
137+
'dtype': 'float64'
138+
};
139+
var x = uniform( 10, 0.0, 10.0, opts );
140+
var mu = uniform( 10, 0.0, 10.0, opts );
141+
var s = uniform( 10, 0.0, 10.0, opts );
142+
143+
logEachMap( 'x: %0.4f, µ: %0.4f, s: %0.4f, F(x;µ,s): %0.4f', x, mu, s, cdf );
148144
```
149145

150146
</section>

lib/node_modules/@stdlib/stats/base/dists/cosine/cdf/examples/index.js

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,15 @@
1818

1919
'use strict';
2020

21-
var randu = require( '@stdlib/random/base/randu' );
21+
var uniform = require( '@stdlib/random/array/uniform' );
22+
var logEachMap = require( '@stdlib/console/log-each-map' );
2223
var cdf = require( './../lib' );
2324

24-
var mu;
25-
var s;
26-
var x;
27-
var y;
28-
var i;
25+
var opts = {
26+
'dtype': 'float64'
27+
};
28+
var x = uniform( 10, 0.0, 10.0, opts );
29+
var mu = uniform( 10, 0.0, 10.0, opts );
30+
var s = uniform( 10, 0.0, 10.0, opts );
2931

30-
for ( i = 0; i < 10; i++ ) {
31-
x = randu() * 10.0;
32-
mu = randu() * 10.0;
33-
s = randu() * 10.0;
34-
y = cdf( x, mu, s );
35-
console.log( 'x: %d, µ: %d, s: %d, F(x;µ,s): %d', x, mu, s, y );
36-
}
32+
logEachMap( 'x: %0.4f, µ: %0.4f, s: %0.4f, F(x;µ,s): %0.4f', x, mu, s, cdf );

0 commit comments

Comments
 (0)