From f222c04edd255572b1be9158e254876571647bdc Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 10 Aug 2026 13:27:56 +0000 Subject: [PATCH 1/2] docs: fix parameter descriptions in `stats/base/dists/pareto-type1` Propagates fix from af0c6b67a ("docs: fix C API parameter descriptions") to sibling packages documenting the Pareto (Type I) scale parameter `beta` as a "second shape parameter" in C API docs. Affected packages: - `stats/base/dists/pareto-type1/skewness` - `stats/base/dists/pareto-type1/stdev` Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_019RjECpzDmZvZKwosPjWkTJ --- .../@stdlib/stats/base/dists/pareto-type1/skewness/README.md | 4 ++-- .../@stdlib/stats/base/dists/pareto-type1/skewness/src/main.c | 4 ++-- .../@stdlib/stats/base/dists/pareto-type1/stdev/README.md | 4 ++-- .../@stdlib/stats/base/dists/pareto-type1/stdev/src/main.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/skewness/README.md b/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/skewness/README.md index 7d46dfc940e1..33b6490104c0 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/skewness/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/skewness/README.md @@ -184,8 +184,8 @@ double out = stdlib_base_dists_pareto_type1_skewness( 3.5, 1.0 ); The function accepts the following arguments: -- **alpha**: `[in] double` first shape parameter. -- **beta**: `[in] double` second shape parameter. +- **alpha**: `[in] double` shape parameter. +- **beta**: `[in] double` scale parameter. ```c double stdlib_base_dists_pareto_type1_skewness( const double alpha, const double beta ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/skewness/src/main.c b/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/skewness/src/main.c index 4ebe353900e6..efe05c035578 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/skewness/src/main.c +++ b/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/skewness/src/main.c @@ -23,8 +23,8 @@ /** * Returns the skewness of a Pareto (Type I) distribution. * -* @param alpha first shape parameter -* @param beta second shape parameter +* @param alpha shape parameter +* @param beta scale parameter * @return skewness * * @example diff --git a/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/stdev/README.md b/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/stdev/README.md index 94e4be5fecc4..ebc1418e3f2b 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/stdev/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/stdev/README.md @@ -188,8 +188,8 @@ double out = stdlib_base_dists_pareto_type1_stdev( 2.5, 1.0 ); The function accepts the following arguments: -- **alpha**: `[in] double` first shape parameter. -- **beta**: `[in] double` second shape parameter. +- **alpha**: `[in] double` shape parameter. +- **beta**: `[in] double` scale parameter. ```c double stdlib_base_dists_pareto_type1_stdev( const double alpha, const double beta ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/stdev/src/main.c b/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/stdev/src/main.c index 91ba0f54d6c7..b7dd9e65ac53 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/stdev/src/main.c +++ b/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/stdev/src/main.c @@ -23,8 +23,8 @@ /** * Returns the standard deviation of a Pareto (Type I) distribution. * -* @param alpha first shape parameter -* @param beta second shape parameter +* @param alpha shape parameter +* @param beta scale parameter * @return standard deviation * * @example From bc1ddf7cdf273c1dfdbe7f0bef9df94d87b209ea Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 10 Aug 2026 13:28:02 +0000 Subject: [PATCH 2/2] bench: refactor to use dynamic memory allocation in `blas/base/zaxpy` Propagates fix from 3208321 ("bench: refactor to use dynamic memory allocation") to the last remaining C benchmark declaring runtime-sized variable-length arrays on the stack. Ref: https://github.com/stdlib-js/stdlib/issues/8643 Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_019RjECpzDmZvZKwosPjWkTJ --- .../base/zaxpy/benchmark/c/benchmark.length.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/c/benchmark.length.c index 467d2fbab50d..e652cb9bb2c4 100644 --- a/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/c/benchmark.length.c @@ -97,13 +97,15 @@ static double rand_double( void ) { */ static double benchmark1( int iterations, int N ) { stdlib_complex128_t alpha; - double x[ N*2 ]; - double y[ N*2 ]; double elapsed; + double *x; + double *y; double t; int i; alpha = stdlib_complex128( 1.0, 0.0 ); + x = (double *) malloc( N * 2 * sizeof( double ) ); + y = (double *) malloc( N * 2 * sizeof( double ) ); for ( i = 0; i < N*2; i+=2 ) { x[ i ] = ( rand_double()*20.0 ) - 10.0; x[ i+1 ] = ( rand_double()*20.0 ) - 10.0; @@ -122,6 +124,8 @@ static double benchmark1( int iterations, int N ) { if ( y[ i%(N*2) ] != y[ i%(N*2) ] ) { printf( "should not return NaN\n" ); } + free( x ); + free( y ); return elapsed; } @@ -134,13 +138,15 @@ static double benchmark1( int iterations, int N ) { */ static double benchmark2( int iterations, int N ) { stdlib_complex128_t alpha; - double x[ N*2 ]; - double y[ N*2 ]; double elapsed; + double *x; + double *y; double t; int i; alpha = stdlib_complex128( 1.0, 0.0 ); + x = (double *) malloc( N * 2 * sizeof( double ) ); + y = (double *) malloc( N * 2 * sizeof( double ) ); for ( i = 0; i < N*2; i+=2 ) { x[ i ] = ( rand_double()*20.0 ) - 10.0; x[ i+1 ] = ( rand_double()*20.0 ) - 10.0; @@ -159,6 +165,8 @@ static double benchmark2( int iterations, int N ) { if ( y[ i%(N*2) ] != y[ i%(N*2) ] ) { printf( "should not return NaN\n" ); } + free( x ); + free( y ); return elapsed; }