diff --git a/lib/node_modules/@stdlib/blas/base/dger/README.md b/lib/node_modules/@stdlib/blas/base/dger/README.md index 6ed5d80c5b58..e289705c5628 100644 --- a/lib/node_modules/@stdlib/blas/base/dger/README.md +++ b/lib/node_modules/@stdlib/blas/base/dger/README.md @@ -247,8 +247,6 @@ void c_dger( const CBLAS_LAYOUT layout, const CBLAS_INT M, const CBLAS_INT N, co Performs the rank 1 operation `A = alpha*x*y^T + A`, using alternative indexing semantics and where `alpha` is a scalar, `X` is an `M` element vector, `Y` is an `N` element vector, and `A` is an `M`-by-`N` matrix. ```c -#include "stdlib/blas/base/shared.h" - double A[ 3*4 ] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, diff --git a/lib/node_modules/@stdlib/blas/base/sger/README.md b/lib/node_modules/@stdlib/blas/base/sger/README.md index 737fe0646aee..24c821112061 100644 --- a/lib/node_modules/@stdlib/blas/base/sger/README.md +++ b/lib/node_modules/@stdlib/blas/base/sger/README.md @@ -247,8 +247,6 @@ void c_sger( const CBLAS_LAYOUT layout, const CBLAS_INT M, const CBLAS_INT N, co Performs the rank 1 operation `A = alpha*x*y^T + A`, using alternative indexing semantics and where `alpha` is a scalar, `X` is an `M` element vector, `Y` is an `N` element vector, and `A` is an `M`-by-`N` matrix. ```c -#include "stdlib/blas/base/shared.h" - float A[ 3*4 ] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, diff --git a/lib/node_modules/@stdlib/blas/ext/base/dvander/README.md b/lib/node_modules/@stdlib/blas/ext/base/dvander/README.md index 3b76b8638082..b065ccbd0777 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dvander/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/dvander/README.md @@ -245,8 +245,6 @@ void API_SUFFIX(stdlib_strided_dvander)( const CBLAS_LAYOUT order, const double Generates a double-precision floating-point Vandermonde matrix using alternative indexing semantics. ```c -#include "stdlib/blas/base/shared.h" - const double x[ 3 ] = { 1.0, 2.0, 3.0 }; double Out[ 3*3 ] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/README.md b/lib/node_modules/@stdlib/blas/ext/base/svander/README.md index 445fbaf34c8a..bc460f29115c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/svander/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/svander/README.md @@ -245,8 +245,6 @@ void API_SUFFIX(stdlib_strided_svander)( const CBLAS_LAYOUT order, const float m Generates a single-precision floating-point Vandermonde matrix using alternative indexing semantics. ```c -#include "stdlib/blas/base/shared.h" - const float x[ 3 ] = { 1.0f, 2.0f, 3.0f }; float Out[ 3*3 ] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f }; diff --git a/lib/node_modules/@stdlib/math/base/special/absgammalnf/test/test.js b/lib/node_modules/@stdlib/math/base/special/absgammalnf/test/test.js index 82d45a1a57bc..7380c3d3ad2d 100644 --- a/lib/node_modules/@stdlib/math/base/special/absgammalnf/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/absgammalnf/test/test.js @@ -129,7 +129,7 @@ tape( 'the function evaluates the natural logarithm of the gamma function for x var x; var v; - x = f32( powf( 2.0, 27 ) ); + x = powf( 2.0, 27 ); v = absgammalnf( x ); expected = f32( x * f32( lnf( x ) - f32( 1.0 ) ) ); t.strictEqual( v, expected, 'returns expected value' ); diff --git a/lib/node_modules/@stdlib/math/base/special/absgammalnf/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/absgammalnf/test/test.native.js index f0791cd0f6c0..9e9829ec64fa 100644 --- a/lib/node_modules/@stdlib/math/base/special/absgammalnf/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/absgammalnf/test/test.native.js @@ -138,7 +138,7 @@ tape( 'the function evaluates the natural logarithm of the absolute value of the var x; var v; - x = f32( powf( 2.0, 27 ) ); + x = powf( 2.0, 27 ); v = absgammalnf( x ); expected = f32( x * f32( lnf( x ) - f32( 1.0 ) ) ); t.strictEqual( v, expected, 'returns expected value' ); diff --git a/lib/node_modules/@stdlib/ndarray/base/assert/is-contiguous/include/stdlib/ndarray/base/assert/is_contiguous.h b/lib/node_modules/@stdlib/ndarray/base/assert/is-contiguous/include/stdlib/ndarray/base/assert/is_contiguous.h index 8c717ef78e5e..ad0776d0be38 100644 --- a/lib/node_modules/@stdlib/ndarray/base/assert/is-contiguous/include/stdlib/ndarray/base/assert/is_contiguous.h +++ b/lib/node_modules/@stdlib/ndarray/base/assert/is-contiguous/include/stdlib/ndarray/base/assert/is_contiguous.h @@ -32,7 +32,7 @@ extern "C" { /** * Determines if an array is contiguous. */ -int8_t stdlib_ndarray_is_contiguous( enum STDLIB_NDARRAY_DTYPE dtype, int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset ); +int8_t stdlib_ndarray_is_contiguous( const enum STDLIB_NDARRAY_DTYPE dtype, const int64_t ndims, const int64_t *shape, const int64_t *strides, const int64_t offset ); #ifdef __cplusplus } diff --git a/lib/node_modules/@stdlib/ndarray/base/assert/is-contiguous/src/main.c b/lib/node_modules/@stdlib/ndarray/base/assert/is-contiguous/src/main.c index f5cfec1594c3..655dba289200 100644 --- a/lib/node_modules/@stdlib/ndarray/base/assert/is-contiguous/src/main.c +++ b/lib/node_modules/@stdlib/ndarray/base/assert/is-contiguous/src/main.c @@ -48,7 +48,7 @@ * int8_t b = stdlib_ndarray_is_contiguous( STDLIB_NDARRAY_UINT8, ndims, shape, strides, offset ); * // returns 1 */ -int8_t stdlib_ndarray_is_contiguous( enum STDLIB_NDARRAY_DTYPE dtype, int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset ) { +int8_t stdlib_ndarray_is_contiguous( const enum STDLIB_NDARRAY_DTYPE dtype, const int64_t ndims, const int64_t *shape, const int64_t *strides, const int64_t offset ) { if ( stdlib_ndarray_iteration_order( ndims, strides ) != 0 && stdlib_ndarray_is_single_segment_compatible( dtype, ndims, shape, strides, offset ) != 0 diff --git a/lib/node_modules/@stdlib/stats/strided/dvarm/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/dvarm/benchmark/c/benchmark.length.c index ebadc20f7c03..4f2a8fc481e8 100644 --- a/lib/node_modules/@stdlib/stats/strided/dvarm/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/dvarm/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static double rand_double( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - double x[ len ]; + double *x; double v; double t; int i; + x = (double *) malloc( len * sizeof( double ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_double() * 20000.0 ) - 10000.0; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/scovarmtk/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/scovarmtk/benchmark/c/benchmark.length.c index 90430dccae37..4e2482b4821a 100644 --- a/lib/node_modules/@stdlib/stats/strided/scovarmtk/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/scovarmtk/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; double t; float v; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; double t; float v; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/sdsmean/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/sdsmean/benchmark/c/benchmark.length.c index d37a10988a52..995e9bb3404b 100644 --- a/lib/node_modules/@stdlib/stats/strided/sdsmean/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/sdsmean/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/sdsmeanors/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/sdsmeanors/benchmark/c/benchmark.length.c index 99c64ad0a6ec..ae42a11a4721 100644 --- a/lib/node_modules/@stdlib/stats/strided/sdsmeanors/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/sdsmeanors/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/sdsnanmeanors/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/sdsnanmeanors/benchmark/c/benchmark.length.c index 4ced78997802..01996568af26 100644 --- a/lib/node_modules/@stdlib/stats/strided/sdsnanmeanors/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/sdsnanmeanors/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/smax/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/smax/benchmark/c/benchmark.length.c index 1785e5280ded..d2a3fe8bd813 100644 --- a/lib/node_modules/@stdlib/stats/strided/smax/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/smax/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/smaxabs/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/smaxabs/benchmark/c/benchmark.length.c index 3c030c4594ab..ff6eec7e819b 100644 --- a/lib/node_modules/@stdlib/stats/strided/smaxabs/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/smaxabs/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/smaxabssorted/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/smaxabssorted/benchmark/c/benchmark.length.c index e5dcf51db339..cb1c631e3639 100644 --- a/lib/node_modules/@stdlib/stats/strided/smaxabssorted/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/smaxabssorted/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = i - (len/2); } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = i - (len/2); } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/smaxsorted/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/smaxsorted/benchmark/c/benchmark.length.c index f85739357632..f0787419926f 100644 --- a/lib/node_modules/@stdlib/stats/strided/smaxsorted/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/smaxsorted/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = i; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = i; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/smeankbn/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/smeankbn/benchmark/c/benchmark.length.c index b7a841d4a8c4..446680b9b646 100644 --- a/lib/node_modules/@stdlib/stats/strided/smeankbn/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/smeankbn/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/smeankbn2/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/smeankbn2/benchmark/c/benchmark.length.c index 7c2fe2eae194..491bcf075efe 100644 --- a/lib/node_modules/@stdlib/stats/strided/smeankbn2/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/smeankbn2/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/smeanli/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/smeanli/benchmark/c/benchmark.length.c index 7c9d00453c27..85e37bd40bdc 100644 --- a/lib/node_modules/@stdlib/stats/strided/smeanli/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/smeanli/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/smeanlipw/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/smeanlipw/benchmark/c/benchmark.length.c index 3b408a54cf3a..448bedf38f34 100644 --- a/lib/node_modules/@stdlib/stats/strided/smeanlipw/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/smeanlipw/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/smeanors/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/smeanors/benchmark/c/benchmark.length.c index ff7823698b52..bb656c90aafb 100644 --- a/lib/node_modules/@stdlib/stats/strided/smeanors/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/smeanors/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/smeanpn/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/smeanpn/benchmark/c/benchmark.length.c index f9d172d06b94..dcd739665e39 100644 --- a/lib/node_modules/@stdlib/stats/strided/smeanpn/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/smeanpn/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/smeanwd/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/smeanwd/benchmark/c/benchmark.length.c index f68a03318858..8a90aaf19f70 100644 --- a/lib/node_modules/@stdlib/stats/strided/smeanwd/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/smeanwd/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/smediansorted/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/smediansorted/benchmark/c/benchmark.length.c index ad9099f93e5d..4752d39f06c9 100644 --- a/lib/node_modules/@stdlib/stats/strided/smediansorted/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/smediansorted/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = i; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = i; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/smidrange/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/smidrange/benchmark/c/benchmark.length.c index 616fb60cbe34..be941274209f 100644 --- a/lib/node_modules/@stdlib/stats/strided/smidrange/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/smidrange/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/smin/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/smin/benchmark/c/benchmark.length.c index 63a992a339ed..b888bba1f504 100644 --- a/lib/node_modules/@stdlib/stats/strided/smin/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/smin/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/sminabs/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/sminabs/benchmark/c/benchmark.length.c index 92aaee5ccbc2..356959201e90 100644 --- a/lib/node_modules/@stdlib/stats/strided/sminabs/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/sminabs/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/sminsorted/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/sminsorted/benchmark/c/benchmark.length.c index c05e445c15e7..ee0aacb3a40f 100644 --- a/lib/node_modules/@stdlib/stats/strided/sminsorted/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/sminsorted/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = i; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = i; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/snanmax/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/snanmax/benchmark/c/benchmark.length.c index d66089eaf79e..aa7454001cd7 100644 --- a/lib/node_modules/@stdlib/stats/strided/snanmax/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/snanmax/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2f ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -122,6 +123,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -134,11 +136,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2f ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -160,6 +163,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/snanmaxabs/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/snanmaxabs/benchmark/c/benchmark.length.c index 02c16b9689e7..0784ebf5a766 100644 --- a/lib/node_modules/@stdlib/stats/strided/snanmaxabs/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/snanmaxabs/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2f ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -122,6 +123,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -134,11 +136,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2f ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -160,6 +163,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/snanmean/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/snanmean/benchmark/c/benchmark.length.c index 9d040bd99b9d..6aed76f3ba7b 100644 --- a/lib/node_modules/@stdlib/stats/strided/snanmean/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/snanmean/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2 ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -122,6 +123,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -134,11 +136,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2 ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -160,6 +163,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/snanmeanors/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/snanmeanors/benchmark/c/benchmark.length.c index 2493ac825b5c..7819a55da815 100644 --- a/lib/node_modules/@stdlib/stats/strided/snanmeanors/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/snanmeanors/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2f ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -122,6 +123,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -134,11 +136,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2f ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -160,6 +163,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/snanmeanpn/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/snanmeanpn/benchmark/c/benchmark.length.c index c5c8f29dd8cd..131e25849516 100644 --- a/lib/node_modules/@stdlib/stats/strided/snanmeanpn/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/snanmeanpn/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2f ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -122,6 +123,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -134,11 +136,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2 ) { x[ i ] = 0.0 / 0.0; // NaN @@ -160,6 +163,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/snanmeanwd/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/snanmeanwd/benchmark/c/benchmark.length.c index 0648e2401b57..3b9ab4c52319 100644 --- a/lib/node_modules/@stdlib/stats/strided/snanmeanwd/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/snanmeanwd/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2f ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -122,6 +123,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -134,11 +136,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2f ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -160,6 +163,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/snanmin/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/snanmin/benchmark/c/benchmark.length.c index 2827c9f631e5..2ce9c0310620 100644 --- a/lib/node_modules/@stdlib/stats/strided/snanmin/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/snanmin/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2f ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -122,6 +123,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -134,11 +136,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2f ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -160,6 +163,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/snanminabs/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/snanminabs/benchmark/c/benchmark.length.c index 91c7d972f62f..0d2f2f7bf872 100644 --- a/lib/node_modules/@stdlib/stats/strided/snanminabs/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/snanminabs/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2f ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -122,6 +123,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -134,11 +136,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2f ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -160,6 +163,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/snanrange/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/snanrange/benchmark/c/benchmark.length.c index f515642a153f..c5abe2522527 100644 --- a/lib/node_modules/@stdlib/stats/strided/snanrange/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/snanrange/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2 ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -122,6 +123,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -134,11 +136,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { if ( rand_float() < 0.2 ) { x[ i ] = 0.0f / 0.0f; // NaN @@ -160,6 +163,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/srange/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/srange/benchmark/c/benchmark.length.c index 0f44b549d3d2..55bee6f87acc 100644 --- a/lib/node_modules/@stdlib/stats/strided/srange/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/srange/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/sstdevch/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/sstdevch/benchmark/c/benchmark.length.c index a2841fa64ccb..0d5f95e1e369 100644 --- a/lib/node_modules/@stdlib/stats/strided/sstdevch/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/sstdevch/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/sstdevpn/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/sstdevpn/benchmark/c/benchmark.length.c index 78ce6e65ab55..558853a857c5 100644 --- a/lib/node_modules/@stdlib/stats/strided/sstdevpn/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/sstdevpn/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/sstdevtk/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/sstdevtk/benchmark/c/benchmark.length.c index e84b89fd295a..d023972e4809 100644 --- a/lib/node_modules/@stdlib/stats/strided/sstdevtk/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/sstdevtk/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/sstdevyc/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/sstdevyc/benchmark/c/benchmark.length.c index 2e41407b240d..77ad2d1d480d 100644 --- a/lib/node_modules/@stdlib/stats/strided/sstdevyc/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/sstdevyc/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/svariance/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/svariance/benchmark/c/benchmark.length.c index f8340b82fe07..b0c4cd40b762 100644 --- a/lib/node_modules/@stdlib/stats/strided/svariance/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/svariance/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/svariancech/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/svariancech/benchmark/c/benchmark.length.c index 22b091ed454a..9c805574f754 100644 --- a/lib/node_modules/@stdlib/stats/strided/svariancech/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/svariancech/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/svariancepn/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/svariancepn/benchmark/c/benchmark.length.c index efbc1370a277..b4ca45cad076 100644 --- a/lib/node_modules/@stdlib/stats/strided/svariancepn/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/svariancepn/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/svariancetk/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/svariancetk/benchmark/c/benchmark.length.c index f635d6f3aee5..dda25d54e8cb 100644 --- a/lib/node_modules/@stdlib/stats/strided/svariancetk/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/svariancetk/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/svariancewd/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/svariancewd/benchmark/c/benchmark.length.c index b653c0ff4ed1..acc74439ff95 100644 --- a/lib/node_modules/@stdlib/stats/strided/svariancewd/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/svariancewd/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } diff --git a/lib/node_modules/@stdlib/stats/strided/svarianceyc/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/svarianceyc/benchmark/c/benchmark.length.c index 6edd52b5a6d8..aae6b97ceb74 100644 --- a/lib/node_modules/@stdlib/stats/strided/svarianceyc/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/strided/svarianceyc/benchmark/c/benchmark.length.c @@ -96,11 +96,12 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; } @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; + float *x; float v; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; } @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) { if ( v != v ) { printf( "should not return NaN\n" ); } + free( x ); return elapsed; }