Skip to content

Commit 2bfa5ac

Browse files
Merge branch 'stdlib-js:develop' into lognormal-logcdf
2 parents cafc120 + 1024672 commit 2bfa5ac

File tree

242 files changed

+499
-419
lines changed

Some content is hidden

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

242 files changed

+499
-419
lines changed

.github/workflows/lint_changed_files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
# Cache dependencies:
7676
- name: 'Cache dependencies'
7777
# Pin action to full length commit SHA
78-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
78+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
7979
id: cache
8080
with:
8181
path: |

.github/workflows/run_affected_benchmarks.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,21 @@ jobs:
7878
node-version: '20' # 'lts/*'
7979
timeout-minutes: 5
8080

81+
# Cache dependencies:
82+
- name: 'Cache dependencies'
83+
# Pin action to full length commit SHA
84+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
85+
id: cache
86+
with:
87+
path: |
88+
${{ github.workspace }}/node_modules
89+
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
90+
restore-keys: |
91+
${{ runner.os }}-node-
92+
8193
# Install dependencies (accounting for possible network failures, etc, when installing node module dependencies):
8294
- name: 'Install dependencies'
95+
if: steps.cache.outputs.cache-hit != 'true'
8396
run: |
8497
make install-node-modules || make install-node-modules || make install-node-modules
8598
timeout-minutes: 15

.github/workflows/run_affected_examples.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,21 @@ jobs:
7979
node-version: '20' # 'lts/*'
8080
timeout-minutes: 5
8181

82+
# Cache dependencies:
83+
- name: 'Cache dependencies'
84+
# Pin action to full length commit SHA
85+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
86+
id: cache
87+
with:
88+
path: |
89+
${{ github.workspace }}/node_modules
90+
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
91+
restore-keys: |
92+
${{ runner.os }}-node-
93+
8294
# Install dependencies (accounting for possible network failures, etc, when installing node module dependencies):
8395
- name: 'Install dependencies'
96+
if: steps.cache.outputs.cache-hit != 'true'
8497
run: |
8598
make install-node-modules || make install-node-modules || make install-node-modules
8699
timeout-minutes: 15

.github/workflows/run_affected_tests.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,21 @@ jobs:
114114
node-version: '20' # 'lts/*'
115115
timeout-minutes: 5
116116

117+
# Cache dependencies:
118+
- name: 'Cache dependencies'
119+
# Pin action to full length commit SHA
120+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
121+
id: cache
122+
with:
123+
path: |
124+
${{ github.workspace }}/node_modules
125+
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
126+
restore-keys: |
127+
${{ runner.os }}-node-
128+
117129
# Install dependencies (accounting for possible network failures, etc, when installing node module dependencies):
118130
- name: 'Install dependencies'
131+
if: steps.cache.outputs.cache-hit != 'true'
119132
run: |
120133
make install-node-modules || make install-node-modules || make install-node-modules
121134
timeout-minutes: 15

.github/workflows/run_tests_coverage.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,21 @@ jobs:
120120
node-version: 20 # 'lts/*'
121121
timeout-minutes: 5
122122

123+
# Cache dependencies:
124+
- name: 'Cache dependencies'
125+
# Pin action to full length commit SHA
126+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
127+
id: cache
128+
with:
129+
path: |
130+
${{ github.workspace }}/node_modules
131+
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
132+
restore-keys: |
133+
${{ runner.os }}-node-
134+
123135
# Install dependencies (accounting for possible network failures, etc, when installing node module dependencies):
124136
- name: 'Install dependencies'
137+
if: steps.cache.outputs.cache-hit != 'true'
125138
run: |
126139
make install-node-modules || make install-node-modules || make install-node-modules
127140
timeout-minutes: 15

lib/node_modules/@stdlib/array/base/cuevery-by/lib/assign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function accessors( x, out, stride, offset, predicate, thisArg ) {
146146
*
147147
* @example
148148
* function isPositive( value ) {
149-
* return ( value > 0 );
149+
* return ( value > 0 );
150150
* }
151151
*
152152
* var x = [ 1, 1, 1, 0, 1 ];

lib/node_modules/@stdlib/array/base/cunone-by-right/lib/assign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function accessors( x, out, stride, offset, predicate, thisArg ) {
136136
*
137137
* @example
138138
* function fcn( value ) {
139-
* return ( value > 0 );
139+
* return ( value > 0 );
140140
* }
141141
*
142142
* var x = [ 1, 1, 0, 0 ];

lib/node_modules/@stdlib/array/base/cusome-by-right/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* var cusomeByRight = require( '@stdlib/array/base/cusome-by-right' );
4040
*
4141
* function fcn( value ) {
42-
* return ( value > 0 );
42+
* return ( value > 0 );
4343
* }
4444
*
4545
* var x = [ 1, 1, 0, 0, 0 ];

lib/node_modules/@stdlib/array/base/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3365,10 +3365,10 @@ interface Namespace {
33653365
*
33663366
* @example
33673367
* var x = [ 1, 2, 3, 4 ];
3368-
* var idx = [ 5, 6, 7, 8 ];
3368+
* var y = [ 5, 6, 7, 8 ];
33693369
* var mask = [ 0, 1, 0, 1 ];
33703370
*
3371-
* var out = ns.mskfilter2( x, idx, mask );
3371+
* var out = ns.mskfilter2( x, y, mask );
33723372
* // returns [ [ 2, 4 ], [ 6, 8 ] ]
33733373
*/
33743374
mskfilter2: typeof mskfilter2;

lib/node_modules/@stdlib/array/base/mskfilter2/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ Returns new arrays by applying a mask to two provided input arrays in a single p
3636

3737
```javascript
3838
var x = [ 1, 2, 3, 4 ];
39-
var idx = [ 0, 1, 2, 3 ];
39+
var y = [ 0, 1, 2, 3 ];
4040

41-
var out = mskfilter2( x, idx, [ 0, 1, 0, 1 ] );
41+
var out = mskfilter2( x, y, [ 0, 1, 0, 1 ] );
4242
// returns [ [ 2, 4 ], [ 1, 3 ] ]
4343
```
4444

@@ -79,8 +79,8 @@ var mskfilter2 = require( '@stdlib/array/base/mskfilter2' );
7979
var x = zeroTo( 20 );
8080
console.log( x );
8181

82-
var idx = zeroTo( x.length );
83-
console.log( idx );
82+
var y = zeroTo( x.length );
83+
console.log( y );
8484

8585
// Generate a random mask:
8686
var mask = bernoulli( x.length, 0.5, {
@@ -89,7 +89,7 @@ var mask = bernoulli( x.length, 0.5, {
8989
console.log( mask );
9090

9191
// Filter both arrays using the mask:
92-
var out = mskfilter2( x, idx, mask );
92+
var out = mskfilter2( x, y, mask );
9393
console.log( out );
9494
```
9595

0 commit comments

Comments
 (0)