Skip to content

Commit b3ea47d

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into tests-find
2 parents 91e18b4 + e0690b4 commit b3ea47d

41 files changed

Lines changed: 120 additions & 140 deletions

File tree

Some content is hidden

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

lib/node_modules/@stdlib/_tools/bundle/pkg-list/examples/multiple-bundles-single-scope/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
var join = require( 'path' ).join;
2222
var mkdirp = require( 'mkdirp' ).sync;
23-
var collapse = require( 'bundle-collapser/plugin' );
23+
var collapse = require( 'bundle-collapser/plugin.js' );
2424
var uglifyify = require( 'uglifyify' );
2525
var uglify = require( 'uglify-js' );
26-
var packFlat = require( 'browser-pack-flat/plugin' );
26+
var packFlat = require( 'browser-pack-flat/plugin.js' );
2727
var pkgNames = require( '@stdlib/_tools/pkgs/names' ).sync;
2828
var instanceOf = require( '@stdlib/assert/instance-of' );
2929
var writeFile = require( '@stdlib/fs/write-file' ).sync;

lib/node_modules/@stdlib/blas/base/dsdot/benchmark/c/benchmark.length.c

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,14 @@ static float rand_float( void ) {
9696
*/
9797
static double benchmark1( int iterations, int len ) {
9898
double elapsed;
99-
float x[ len ];
100-
float y[ len ];
99+
float *x;
100+
float *y;
101101
double z;
102102
double t;
103103
int i;
104104

105+
x = (float *) malloc( len * sizeof( float ) );
106+
y = (float *) malloc( len * sizeof( float ) );
105107
for ( i = 0; i < len; i++ ) {
106108
x[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
107109
y[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
@@ -119,6 +121,8 @@ static double benchmark1( int iterations, int len ) {
119121
if ( z != z ) {
120122
printf( "should not return NaN\n" );
121123
}
124+
free( x );
125+
free( y );
122126
return elapsed;
123127
}
124128

@@ -131,12 +135,14 @@ static double benchmark1( int iterations, int len ) {
131135
*/
132136
static double benchmark2( int iterations, int len ) {
133137
double elapsed;
134-
float x[ len ];
135-
float y[ len ];
138+
float *x;
139+
float *y;
136140
double z;
137141
double t;
138142
int i;
139143

144+
x = (float *) malloc( len * sizeof( float ) );
145+
y = (float *) malloc( len * sizeof( float ) );
140146
for ( i = 0; i < len; i++ ) {
141147
x[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
142148
y[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
@@ -154,6 +160,8 @@ static double benchmark2( int iterations, int len ) {
154160
if ( z != z ) {
155161
printf( "should not return NaN\n" );
156162
}
163+
free( x );
164+
free( y );
157165
return elapsed;
158166
}
159167

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@ static float rand_float( void ) {
9696
*/
9797
static double benchmark1( int iterations, int len ) {
9898
double elapsed;
99-
float x[ len ];
99+
float *x;
100100
float v;
101101
double t;
102102
int i;
103103

104+
x = (float *)malloc( len * sizeof( float ) );
104105
for ( i = 0; i < len; i++ ) {
105106
if ( rand_float() < 0.2f ) {
106107
x[ i ] = 0.0f / 0.0f; // NaN
@@ -122,6 +123,7 @@ static double benchmark1( int iterations, int len ) {
122123
if ( v != v ) {
123124
printf( "should not return NaN\n" );
124125
}
126+
free( x );
125127
return elapsed;
126128
}
127129

@@ -134,11 +136,12 @@ static double benchmark1( int iterations, int len ) {
134136
*/
135137
static double benchmark2( int iterations, int len ) {
136138
double elapsed;
137-
float x[ len ];
139+
float *x;
138140
float v;
139141
double t;
140142
int i;
141143

144+
x = (float *)malloc( len * sizeof( float ) );
142145
for ( i = 0; i < len; i++ ) {
143146
if ( rand_float() < 0.2f ) {
144147
x[ i ] = 0.0f / 0.0f; // NaN
@@ -160,6 +163,7 @@ static double benchmark2( int iterations, int len ) {
160163
if ( v != v ) {
161164
printf( "should not return NaN\n" );
162165
}
166+
free( x );
163167
return elapsed;
164168
}
165169

lib/node_modules/@stdlib/math/strided/special/dmskrsqrt/benchmark/c/benchmark.length.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,15 @@ float rand_uniformf( float a, float b ) {
115115
*/
116116
static double benchmark( int iterations, int len ) {
117117
double elapsed;
118-
uint8_t m[ len ];
119-
double x[ len ];
120-
double y[ len ];
118+
uint8_t *m;
119+
double *x;
120+
double *y;
121121
double t;
122122
int i;
123123

124+
m = (uint8_t *)malloc( len *sizeof( uint8_t ) );
125+
x = (double *)malloc( len * sizeof( double ) );
126+
y = (double *)malloc( len * sizeof( double ) );
124127
for ( i = 0; i < len; i++ ) {
125128
x[ i ] = rand_uniform( 0.0, 200.0 );
126129
y[ i ] = 0.0;
@@ -138,6 +141,9 @@ static double benchmark( int iterations, int len ) {
138141
if ( y[ 0 ] != y[ 0 ] ) {
139142
printf( "should not return NaN\n" );
140143
}
144+
free( m );
145+
free( x );
146+
free( y );
141147
return elapsed;
142148
}
143149

lib/node_modules/@stdlib/math/strided/special/smskdeg2rad/benchmark/c/benchmark.length.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,15 @@ float rand_uniformf( float a, float b ) {
115115
*/
116116
static double benchmark( int iterations, int len ) {
117117
double elapsed;
118-
uint8_t m[ len ];
119-
float x[ len ];
120-
float y[ len ];
118+
uint8_t *m;
119+
float *x;
120+
float *y;
121121
double t;
122122
int i;
123123

124+
m = (uint8_t *) malloc( len * sizeof( uint8_t ) );
125+
x = (float *) malloc( len * sizeof( float ) );
126+
y = (float *) malloc( len * sizeof( float ) );
124127
for ( i = 0; i < len; i++ ) {
125128
x[ i ] = rand_uniformf( -180.0f, 180.0f );
126129
y[ i ] = 0.0f;
@@ -138,6 +141,9 @@ static double benchmark( int iterations, int len ) {
138141
if ( y[ 0 ] != y[ 0 ] ) {
139142
printf( "should not return NaN\n" );
140143
}
144+
free( m );
145+
free( x );
146+
free( y );
141147
return elapsed;
142148
}
143149

lib/node_modules/@stdlib/namespace/alias2pkg/data/data.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2521,7 +2521,7 @@ LOG2E,"@stdlib/constants/float64/log2-e"
25212521
LOG10E,"@stdlib/constants/float64/log10-e"
25222522
logspace,"@stdlib/array/logspace"
25232523
lowercase,"@stdlib/string/lowercase"
2524-
lowercaseKeys,"@stdlib/utils/lowercase-keys"
2524+
lowercaseKeys,"@stdlib/object/lowercase-keys"
25252525
lowess,"@stdlib/stats/lowess"
25262526
lpad,"@stdlib/string/left-pad"
25272527
ltrim,"@stdlib/string/left-trim"

lib/node_modules/@stdlib/namespace/lib/namespace/l.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ ns.push({
201201

202202
ns.push({
203203
'alias': 'lowercaseKeys',
204-
'path': '@stdlib/utils/lowercase-keys',
205-
'value': require( '@stdlib/utils/lowercase-keys' ),
204+
'path': '@stdlib/object/lowercase-keys',
205+
'value': require( '@stdlib/object/lowercase-keys' ),
206206
'type': 'Function',
207207
'related': [
208208
'@stdlib/object/uncapitalize-keys',

lib/node_modules/@stdlib/namespace/lib/namespace/u.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ ns.push({
194194
'type': 'Function',
195195
'related': [
196196
'@stdlib/object/capitalize-keys',
197-
'@stdlib/utils/lowercase-keys'
197+
'@stdlib/object/lowercase-keys'
198198
]
199199
});
200200

@@ -440,7 +440,7 @@ ns.push({
440440
'type': 'Function',
441441
'related': [
442442
'@stdlib/object/capitalize-keys',
443-
'@stdlib/utils/lowercase-keys'
443+
'@stdlib/object/lowercase-keys'
444444
]
445445
});
446446

lib/node_modules/@stdlib/namespace/pkg2alias/data/data.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2521,7 +2521,7 @@
25212521
"@stdlib/constants/float64/log10-e",LOG10E
25222522
"@stdlib/array/logspace",logspace
25232523
"@stdlib/string/lowercase",lowercase
2524-
"@stdlib/utils/lowercase-keys",lowercaseKeys
2524+
"@stdlib/object/lowercase-keys",lowercaseKeys
25252525
"@stdlib/stats/lowess",lowess
25262526
"@stdlib/string/left-pad",lpad
25272527
"@stdlib/string/left-trim",ltrim

lib/node_modules/@stdlib/namespace/pkg2related/data/data.csv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2521,7 +2521,7 @@
25212521
"@stdlib/constants/float64/log10-e","@stdlib/constants/float64/e,@stdlib/constants/float64/log2-e"
25222522
"@stdlib/array/logspace","@stdlib/array/incrspace,@stdlib/array/linspace"
25232523
"@stdlib/string/lowercase","@stdlib/string/uncapitalize,@stdlib/string/uppercase"
2524-
"@stdlib/utils/lowercase-keys","@stdlib/object/uncapitalize-keys,@stdlib/utils/uppercase-keys"
2524+
"@stdlib/object/lowercase-keys","@stdlib/object/uncapitalize-keys,@stdlib/utils/uppercase-keys"
25252525
"@stdlib/stats/lowess",""
25262526
"@stdlib/string/left-pad","@stdlib/string/pad,@stdlib/string/right-pad"
25272527
"@stdlib/string/left-trim","@stdlib/string/trim,@stdlib/string/right-trim"
@@ -3108,7 +3108,7 @@
31083108
"@stdlib/array/uint32","@stdlib/array/buffer,@stdlib/array/float32,@stdlib/array/float64,@stdlib/array/int16,@stdlib/array/int32,@stdlib/array/int8,@stdlib/array/uint16,@stdlib/array/uint8,@stdlib/array/uint8c"
31093109
"@stdlib/process/umask",""
31103110
"@stdlib/string/uncapitalize","@stdlib/string/capitalize,@stdlib/string/lowercase"
3111-
"@stdlib/object/uncapitalize-keys","@stdlib/object/capitalize-keys,@stdlib/utils/lowercase-keys"
3111+
"@stdlib/object/uncapitalize-keys","@stdlib/object/capitalize-keys,@stdlib/object/lowercase-keys"
31123112
"@stdlib/utils/uncurry","@stdlib/utils/curry,@stdlib/utils/uncurry-right"
31133113
"@stdlib/utils/uncurry-right","@stdlib/utils/curry,@stdlib/utils/curry-right,@stdlib/utils/uncurry"
31143114
"@stdlib/constants/unicode/max","@stdlib/constants/unicode/max-bmp"
@@ -3127,7 +3127,7 @@
31273127
"@stdlib/utils/until-each-right","@stdlib/utils/until-each,@stdlib/utils/while-each-right"
31283128
"@stdlib/utils/unzip","@stdlib/utils/zip"
31293129
"@stdlib/string/uppercase","@stdlib/string/capitalize,@stdlib/string/lowercase"
3130-
"@stdlib/utils/uppercase-keys","@stdlib/object/capitalize-keys,@stdlib/utils/lowercase-keys"
3130+
"@stdlib/utils/uppercase-keys","@stdlib/object/capitalize-keys,@stdlib/object/lowercase-keys"
31313131
"@stdlib/datasets/us-states-abbr","@stdlib/datasets/us-states-capitals,@stdlib/datasets/us-states-names"
31323132
"@stdlib/datasets/us-states-capitals","@stdlib/datasets/us-states-abbr,@stdlib/datasets/us-states-capitals-names,@stdlib/datasets/us-states-names,@stdlib/datasets/us-states-names-capitals"
31333133
"@stdlib/datasets/us-states-capitals-names","@stdlib/datasets/us-states-capitals,@stdlib/datasets/us-states-names,@stdlib/datasets/us-states-names-capitals"

0 commit comments

Comments
 (0)