Skip to content

Commit d19ad56

Browse files
committed
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into develop
2 parents 66c5711 + 38c6617 commit d19ad56

File tree

499 files changed

+20138
-1682
lines changed

Some content is hidden

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

499 files changed

+20138
-1682
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)

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/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 //

0 commit comments

Comments
 (0)