diff --git a/lib/node_modules/@stdlib/stats/base/dists/normal/mgf/README.md b/lib/node_modules/@stdlib/stats/base/dists/normal/mgf/README.md index 1cf317c1d0f6..e7da62468b8e 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/normal/mgf/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/normal/mgf/README.md @@ -150,12 +150,6 @@ for ( i = 0; i < 10; i++ ) { </section> -<!-- /.examples --> - -<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. --> - -<section class="references"> - <!-- C interface documentation. --> * * * @@ -257,6 +251,12 @@ int main( void ) { <!-- /.references --> +<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. --> + +<section class="references"> + +</section> + <!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. --> <section class="related"> diff --git a/lib/node_modules/@stdlib/stats/base/dists/normal/mgf/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/stats/base/dists/normal/mgf/benchmark/benchmark.native.js index e365536c4823..d619d1883cc8 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/normal/mgf/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/stats/base/dists/normal/mgf/benchmark/benchmark.native.js @@ -60,7 +60,7 @@ bench( pkg+'::native', opts, function benchmark( b ) { b.tic(); for ( i = 0; i < b.iterations; i++ ) { - y = mgf( t[ i%len ], mu[ i%len ], sigma[ i%len ]); + y = mgf( t[ i%len ], mu[ i%len ], sigma[ i%len ] ); if ( isnan( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/stats/base/dists/normal/mgf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/stats/base/dists/normal/mgf/benchmark/c/benchmark.c index 1be54a1a4174..a430ccdbd3b7 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/normal/mgf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/stats/base/dists/normal/mgf/benchmark/c/benchmark.c @@ -27,7 +27,6 @@ #define NAME "normal-mgf" #define ITERATIONS 1000000 #define REPEATS 3 -#define LEN 100 /** * Prints the TAP version. @@ -94,15 +93,15 @@ static double random_uniform( const double min, const double max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double sigma[ LEN ]; - double mu[ LEN ]; - double t[ LEN ]; + double sigma[ 100 ]; + double mu[ 100 ]; + double t[ 100 ]; double elapsed; double tc; double y; int i; - for ( i = 0; i < LEN; i++ ) { + for ( i = 0; i < 100; i++ ) { t[ i ] = random_uniform( -100.0, 100.0 ); mu[ i ] = random_uniform( -50.0, 50.0 ); sigma[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 ); @@ -110,7 +109,7 @@ static double benchmark( void ) { tc = tic(); for ( i = 0; i < ITERATIONS; i++ ) { - y = stdlib_base_dists_normal_mgf( t[ i%LEN ], mu[ i%LEN ], sigma[ i%LEN ] ); + y = stdlib_base_dists_normal_mgf( t[ i%100 ], mu[ i%100 ], sigma[ i%100 ] ); if ( y != y ) { printf( "should not return NaN\n" ); break;