Skip to content

Commit 33aafc4

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into feat/accessor-nanvariancech
2 parents ef20dda + 816c8e7 commit 33aafc4

File tree

934 files changed

+30071
-3335
lines changed

Some content is hidden

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

934 files changed

+30071
-3335
lines changed

.github/workflows/scripts/run_tests_coverage

100644100755
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ compare_cov() {
144144
main() {
145145
start_heartbeat "${heartbeat_interval}"
146146

147-
# Only keep files which reside in package directories:
148-
changed=$(echo "${changed}" | tr ' ' '\n' | grep '^lib/node_modules/@stdlib') || true
147+
# Only keep files which reside in package directories, but exclude _tools:
148+
changed=$(echo "${changed}" | tr ' ' '\n' | \
149+
grep '^lib/node_modules/@stdlib' | \
150+
grep -v '^lib/node_modules/@stdlib/_tools') || true
149151

150152
# Find unique package directories:
151153
directories=$(echo "${changed}" | tr ' ' '\n' | sed -E 's/\/(benchmark|bin|data|docs|etc|examples|include|lib|scripts|src|test)(\/.*)?\/?$//' | uniq)

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
121121
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
122122
Ori Miles <97595296+orimiles5@users.noreply.github.com>
123123
Philipp Burckhardt <pburckhardt@outlook.com>
124+
Pierre Forstmann <15964998+pierreforstmann@users.noreply.github.com>
124125
Prajjwal Bajpai <142303989+prajjwalbajpai@users.noreply.github.com>
125126
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
126127
Pranav Goswami <pranavchiku11@gmail.com>
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"tags": [
3-
"constant",
4-
"constructor",
2+
"tags": [
3+
"constant",
4+
"constructor",
55
"customfunction",
6-
"default",
7-
"example",
8-
"function",
9-
"license",
10-
"memberof",
11-
"module",
12-
"name",
13-
"namespace",
14-
"param",
15-
"private",
16-
"readonly",
17-
"returns",
18-
"see",
19-
"throws",
20-
"type"
21-
]
6+
"default",
7+
"example",
8+
"function",
9+
"license",
10+
"memberof",
11+
"module",
12+
"name",
13+
"namespace",
14+
"param",
15+
"private",
16+
"readonly",
17+
"returns",
18+
"see",
19+
"throws",
20+
"type"
21+
]
2222
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"limit": 5000,
3-
"remaining": 4823,
4-
"reset": 1454693201845
2+
"limit": 5000,
3+
"remaining": 4823,
4+
"reset": 1454693201845
55
}

lib/node_modules/@stdlib/_tools/github/user-rate-limit/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function clbk( error, status ) {
192192
### Usage
193193

194194
```bash
195-
Usage: ghratelimit [options]
195+
Usage: ghratelimit [options]
196196

197197
Options:
198198

lib/node_modules/@stdlib/_tools/pkgs/browser-entry-points/lib/entries.sync.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function entryPoints( pkgs ) {
5959
var k;
6060

6161
total = pkgs.length;
62-
out = new Array( total );
62+
out = [];
6363

6464
debug( 'Determining main entry points for %d packages...', total );
6565
for ( i = 0; i < total; i++ ) {
@@ -68,12 +68,12 @@ function entryPoints( pkgs ) {
6868
main = pkgs[ i ].id;
6969

7070
debug( 'Determined main entry point for package: %s (%d of %d). Main: %s', pkg, k, total, main );
71-
out[ i ] = {
71+
out.push({
7272
'id': main,
7373
'pkg': pkg,
7474
'dir': pkgs[ i ].dir,
7575
'entries': []
76-
};
76+
});
7777
}
7878
debug( 'Finished determining main entry points.' );
7979

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"svg": true,
3-
"inline": false,
4-
"format": "TeX",
5-
"width": 100,
6-
"ex": 6,
7-
"linebreaks": true,
8-
"speakText": true,
9-
"speakRuleset": "mathspeak",
10-
"speakStyle": "default"
2+
"svg": true,
3+
"inline": false,
4+
"format": "TeX",
5+
"width": 100,
6+
"ex": 6,
7+
"linebreaks": true,
8+
"speakText": true,
9+
"speakRuleset": "mathspeak",
10+
"speakStyle": "default"
1111
}

lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/c/benchmark.length.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static float rand_float( void ) {
9797
static double benchmark1( int iterations, int len ) {
9898
double elapsed;
9999
float x[ len ];
100-
int64_t n;
100+
CBLAS_INT n;
101101
double v;
102102
double t;
103103
int i;
@@ -113,6 +113,7 @@ static double benchmark1( int iterations, int len ) {
113113
n = 0;
114114
t = tic();
115115
for ( i = 0; i < iterations; i++ ) {
116+
/* cppcheck-suppress uninitvar */
116117
v = stdlib_strided_dsnannsumors( len, x, 1, &n );
117118
if ( v != v || n < 0 ) {
118119
printf( "should not return NaN\n" );
@@ -136,7 +137,7 @@ static double benchmark1( int iterations, int len ) {
136137
static double benchmark2( int iterations, int len ) {
137138
double elapsed;
138139
float x[ len ];
139-
int64_t n;
140+
CBLAS_INT n;
140141
double v;
141142
double t;
142143
int i;
@@ -152,6 +153,7 @@ static double benchmark2( int iterations, int len ) {
152153
n = 0;
153154
t = tic();
154155
for ( i = 0; i < iterations; i++ ) {
156+
/* cppcheck-suppress uninitvar */
155157
v = stdlib_strided_dsnannsumors_ndarray( len, x, 1, 0, &n );
156158
if ( v != v || n < 0 ) {
157159
printf( "should not return NaN\n" );

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ console.log( v );
156156
- <span class="package-name">[`@stdlib/blas/ext/base/dsum`][@stdlib/blas/ext/base/dsum]</span><span class="delimiter">: </span><span class="description">calculate the sum of double-precision floating-point strided array elements.</span>
157157
- <span class="package-name">[`@stdlib/blas/ext/base/gnansum`][@stdlib/blas/ext/base/gnansum]</span><span class="delimiter">: </span><span class="description">calculate the sum of strided array elements, ignoring NaN values.</span>
158158
- <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>
159-
- <span class="package-name">[`@stdlib/stats/base/mean`][@stdlib/stats/base/mean]</span><span class="delimiter">: </span><span class="description">calculate the arithmetic mean of a strided array.</span>
159+
- <span class="package-name">[`@stdlib/stats/strided/mean`][@stdlib/stats/strided/mean]</span><span class="delimiter">: </span><span class="description">calculate the arithmetic mean of a strided array.</span>
160160

161161
</section>
162162

@@ -180,7 +180,7 @@ console.log( v );
180180

181181
[@stdlib/blas/ext/base/ssum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ssum
182182

183-
[@stdlib/stats/base/mean]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/stats/base/mean
183+
[@stdlib/stats/strided/mean]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/stats/strided/mean
184184

185185
<!-- </related-links> -->
186186

lib/node_modules/@stdlib/complex/float32/base/add/README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,11 @@ Adds two single-precision complex floating-point numbers.
4242

4343
```javascript
4444
var Complex64 = require( '@stdlib/complex/float32/ctor' );
45-
var realf = require( '@stdlib/complex/float32/real' );
46-
var imagf = require( '@stdlib/complex/float32/imag' );
4745

4846
var z = new Complex64( -1.5, 2.5 );
4947

5048
var v = add( z, z );
51-
// returns <Complex64>
52-
53-
var re = realf( v );
54-
// returns -3.0
55-
56-
var im = imagf( v );
57-
// returns 5.0
49+
// returns <Complex64>[ -3.0, 5.0 ]
5850
```
5951

6052
</section>

lib/node_modules/@stdlib/complex/float32/base/add/docs/types/index.d.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,11 @@ import { Complex64 } from '@stdlib/types/complex';
3131
*
3232
* @example
3333
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
34-
* var realf = require( '@stdlib/complex/float32/real' );
35-
* var imagf = require( '@stdlib/complex/float32/imag' );
3634
*
3735
* var z = new Complex64( 5.0, 3.0 );
38-
* // returns <Complex64>
3936
*
4037
* var out = add( z, z );
41-
* // returns <Complex64>
42-
*
43-
* var re = realf( out );
44-
* // returns 10.0
45-
*
46-
* var im = imagf( out );
47-
* // returns 6.0
38+
* // returns <Complex64>[ 10.0, 6.0 ]
4839
*/
4940
declare function add( z1: Complex64, z2: Complex64 ): Complex64;
5041

lib/node_modules/@stdlib/complex/float32/base/add/lib/index.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,12 @@
2525
*
2626
* @example
2727
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
28-
* var realf = require( '@stdlib/complex/float32/real' );
29-
* var imagf = require( '@stdlib/complex/float32/imag' );
3028
* var add = require( '@stdlib/complex/float32/base/add' );
3129
*
3230
* var z = new Complex64( 5.0, 3.0 );
33-
* // returns <Complex64>
3431
*
3532
* var out = add( z, z );
36-
* // returns <Complex64>
37-
*
38-
* var re = realf( out );
39-
* // returns 10.0
40-
*
41-
* var im = imagf( out );
42-
* // returns 6.0
33+
* // returns <Complex64>[ 10.0, 6.0 ]
4334
*/
4435

4536
// MODULES //

lib/node_modules/@stdlib/complex/float32/base/add/lib/main.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,11 @@ var imagf = require( '@stdlib/complex/float32/imag' );
3737
*
3838
* @example
3939
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
40-
* var realf = require( '@stdlib/complex/float32/real' );
41-
* var imagf = require( '@stdlib/complex/float32/imag' );
4240
*
4341
* var z = new Complex64( 5.0, 3.0 );
44-
* // returns <Complex64>
4542
*
4643
* var out = add( z, z );
47-
* // returns <Complex64>
48-
*
49-
* var re = realf( out );
50-
* // returns 10.0
51-
*
52-
* var im = imagf( out );
53-
* // returns 6.0
44+
* // returns <Complex64>[ 10.0, 6.0 ]
5445
*/
5546
function add( z1, z2 ) {
5647
var re = f32( realf( z1 ) + realf( z2 ) );

lib/node_modules/@stdlib/complex/float32/base/add/lib/native.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,11 @@ var addon = require( './../src/addon.node' );
3636
*
3737
* @example
3838
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
39-
* var realf = require( '@stdlib/complex/float32/real' );
40-
* var imagf = require( '@stdlib/complex/float32/imag' );
4139
*
4240
* var z = new Complex64( 5.0, 3.0 );
43-
* // returns <Complex64>
4441
*
4542
* var out = add( z, z );
46-
* // returns <Complex64>
47-
*
48-
* var re = realf( out );
49-
* // returns 10.0
50-
*
51-
* var im = imagf( out );
52-
* // returns 6.0
43+
* // returns <Complex64>[ 10.0, 6.0 ]
5344
*/
5445
function add( z1, z2 ) {
5546
var v = addon( z1, z2 );

lib/node_modules/@stdlib/complex/float32/base/identity/README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,9 @@ Evaluates the [identity function][identity-function] for a single-precision [com
5959

6060
```javascript
6161
var Complex64 = require( '@stdlib/complex/float32/ctor' );
62-
var real = require( '@stdlib/complex/float32/real' );
63-
var imag = require( '@stdlib/complex/float32/imag' );
6462

6563
var v = cidentityf( new Complex64( -1.0, 2.0 ) );
66-
// returns <Complex64>
67-
68-
var re = real( v );
69-
// returns -1.0
70-
71-
var im = imag( v );
72-
// returns 2.0
64+
// returns <Complex64>[ -1.0, 2.0 ]
7365
```
7466

7567
</section>

lib/node_modules/@stdlib/complex/float32/base/identity/docs/types/index.d.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,9 @@ import { Complex64 } from '@stdlib/types/complex';
3030
*
3131
* @example
3232
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
33-
* var real = require( '@stdlib/complex/float32/real' );
34-
* var imag = require( '@stdlib/complex/float32/imag' );
3533
*
3634
* var v = cidentityf( new Complex64( -1.0, 2.0 ) );
37-
* // returns <Complex64>
38-
*
39-
* var re = real( v );
40-
* // returns -1.0
41-
*
42-
* var im = imag( v );
43-
* // returns 2.0
35+
* // returns <Complex64>[ -1.0, 2.0 ]
4436
*/
4537
declare function cidentityf( z: Complex64 ): Complex64;
4638

lib/node_modules/@stdlib/complex/float32/base/identity/lib/index.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,10 @@
2525
*
2626
* @example
2727
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
28-
* var real = require( '@stdlib/complex/float32/real' );
29-
* var imag = require( '@stdlib/complex/float32/imag' );
3028
* var cidentityf = require( '@stdlib/complex/float32/base/identity' );
3129
*
3230
* var v = cidentityf( new Complex64( -1.0, 2.0 ) );
33-
* // returns <Complex64>
34-
*
35-
* var re = real( v );
36-
* // returns -1.0
37-
*
38-
* var im = imag( v );
39-
* // returns 2.0
31+
* // returns <Complex64>[ -1.0, 2.0 ]
4032
*/
4133

4234
// MODULES //

lib/node_modules/@stdlib/complex/float32/base/identity/lib/main.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,9 @@
2828
*
2929
* @example
3030
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
31-
* var real = require( '@stdlib/complex/float32/real' );
32-
* var imag = require( '@stdlib/complex/float32/imag' );
3331
*
3432
* var v = cidentityf( new Complex64( -1.0, 2.0 ) );
35-
* // returns <Complex64>
36-
*
37-
* var re = real( v );
38-
* // returns -1.0
39-
*
40-
* var im = imag( v );
41-
* // returns 2.0
33+
* // returns <Complex64>[ -1.0, 2.0 ]
4234
*/
4335
function cidentityf( z ) {
4436
return z;

lib/node_modules/@stdlib/complex/float32/base/identity/lib/native.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,9 @@ var addon = require( './../src/addon.node' );
3535
*
3636
* @example
3737
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
38-
* var real = require( '@stdlib/complex/float32/real' );
39-
* var imag = require( '@stdlib/complex/float32/imag' );
4038
*
4139
* var v = cidentityf( new Complex64( -1.0, 2.0 ) );
42-
* // returns <Complex64>
43-
*
44-
* var re = real( v );
45-
* // returns -1.0
46-
*
47-
* var im = imag( v );
48-
* // returns 2.0
40+
* // returns <Complex64>[ -1.0, 2.0 ]
4941
*/
5042
function cidentityf( z ) {
5143
var v = addon( z );

0 commit comments

Comments
 (0)