From 2dffec5bdf4494aa8683207597980cec67853bf7 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 8 Jul 2026 13:18:49 +0000 Subject: [PATCH 1/3] docs: correct description in `stats/base/dists/gumbel/logcdf` Propagates the description fix from a3c9b303 ("docs: update descriptions") to the C source in `stats/base/dists/gumbel/logcdf`, which shared the same defect as the pareto-type1 sibling: the JSDoc sentence said "Evaluates the cumulative distribution function (CDF)" instead of "Evaluates the natural logarithm of the cumulative distribution function (CDF)". The sibling `lib/main.js` and header already carry the corrected wording. --- .../@stdlib/stats/base/dists/gumbel/logcdf/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/gumbel/logcdf/src/main.c b/lib/node_modules/@stdlib/stats/base/dists/gumbel/logcdf/src/main.c index 67d5372c937f..ae21bd557ba0 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/gumbel/logcdf/src/main.c +++ b/lib/node_modules/@stdlib/stats/base/dists/gumbel/logcdf/src/main.c @@ -21,7 +21,7 @@ #include "stdlib/math/base/special/exp.h" /** -* Evaluates the cumulative distribution function (CDF) for a Gumbel distribution with location parameter `mu` and scale parameter `beta` at a value `x`. +* Evaluates the natural logarithm of the cumulative distribution function (CDF) for a Gumbel distribution with location parameter `mu` and scale parameter `beta` at a value `x`. * * @param x input value * @param mu location parameter From 2841ad4abcb5a132167f0da8f2bcd44f1a236297 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 8 Jul 2026 13:18:59 +0000 Subject: [PATCH 2/3] chore: const-qualify read-only input arrays in `number/*` C examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Propagates the C lint fix from 3fab81a6 ("chore: fix C lint errors") to sibling `number/float{32,64}/base/*` packages whose example.c and README C snippets declare a read-only input array `x[]` without `const`. The pattern (cppcheck flagging arrays that are only indexed-read as candidates for `const`) applies verbatim in `number/float64/base/exponent`, `number/float64/base/to-words`, and `number/float32/base/to-word` — the arrays are iterated over and each element is passed by value into the stdlib call, never mutated. --- lib/node_modules/@stdlib/number/float32/base/to-word/README.md | 2 +- .../@stdlib/number/float32/base/to-word/examples/c/example.c | 2 +- lib/node_modules/@stdlib/number/float64/base/exponent/README.md | 2 +- .../@stdlib/number/float64/base/exponent/examples/c/example.c | 2 +- lib/node_modules/@stdlib/number/float64/base/to-words/README.md | 2 +- .../@stdlib/number/float64/base/to-words/examples/c/example.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/node_modules/@stdlib/number/float32/base/to-word/README.md b/lib/node_modules/@stdlib/number/float32/base/to-word/README.md index 3f9c04c93946..0d44e8831bc5 100644 --- a/lib/node_modules/@stdlib/number/float32/base/to-word/README.md +++ b/lib/node_modules/@stdlib/number/float32/base/to-word/README.md @@ -184,7 +184,7 @@ The union has the following members: #include int main( void ) { - float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f }; + const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f }; uint32_t word; int i; diff --git a/lib/node_modules/@stdlib/number/float32/base/to-word/examples/c/example.c b/lib/node_modules/@stdlib/number/float32/base/to-word/examples/c/example.c index ea7279cc8754..3e872deb8c5e 100644 --- a/lib/node_modules/@stdlib/number/float32/base/to-word/examples/c/example.c +++ b/lib/node_modules/@stdlib/number/float32/base/to-word/examples/c/example.c @@ -21,7 +21,7 @@ #include int main( void ) { - float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f }; + const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f }; uint32_t word; int i; diff --git a/lib/node_modules/@stdlib/number/float64/base/exponent/README.md b/lib/node_modules/@stdlib/number/float64/base/exponent/README.md index 816af50e29e1..4b09fce78099 100644 --- a/lib/node_modules/@stdlib/number/float64/base/exponent/README.md +++ b/lib/node_modules/@stdlib/number/float64/base/exponent/README.md @@ -156,7 +156,7 @@ int32_t stdlib_base_float64_exponent( const double x ); #include int main( void ) { - double x[] = { 4.0, 0.0, -0.0, 1.0, -1.0, 3.14, -3.14, 1.0e308, -1.0e308, 1.0/0.0, -1.0/0.0, 0.0/0.0 }; + const double x[] = { 4.0, 0.0, -0.0, 1.0, -1.0, 3.14, -3.14, 1.0e308, -1.0e308, 1.0/0.0, -1.0/0.0, 0.0/0.0 }; int32_t out; int i; diff --git a/lib/node_modules/@stdlib/number/float64/base/exponent/examples/c/example.c b/lib/node_modules/@stdlib/number/float64/base/exponent/examples/c/example.c index e2df31558b94..6f77f3523a47 100644 --- a/lib/node_modules/@stdlib/number/float64/base/exponent/examples/c/example.c +++ b/lib/node_modules/@stdlib/number/float64/base/exponent/examples/c/example.c @@ -22,7 +22,7 @@ #include int main( void ) { - double x[] = { 4.0, 0.0, -0.0, 1.0, -1.0, 3.14, -3.14, 1.0e308, -1.0e308, 1.0/0.0, -1.0/0.0, 0.0/0.0 }; + const double x[] = { 4.0, 0.0, -0.0, 1.0, -1.0, 3.14, -3.14, 1.0e308, -1.0e308, 1.0/0.0, -1.0/0.0, 0.0/0.0 }; int32_t out; int i; diff --git a/lib/node_modules/@stdlib/number/float64/base/to-words/README.md b/lib/node_modules/@stdlib/number/float64/base/to-words/README.md index 16bad4afad20..aa495ce9ed77 100644 --- a/lib/node_modules/@stdlib/number/float64/base/to-words/README.md +++ b/lib/node_modules/@stdlib/number/float64/base/to-words/README.md @@ -203,7 +203,7 @@ The union has the following members: #include int main( void ) { - double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 }; + const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 }; uint32_t high; uint32_t low; diff --git a/lib/node_modules/@stdlib/number/float64/base/to-words/examples/c/example.c b/lib/node_modules/@stdlib/number/float64/base/to-words/examples/c/example.c index e67ab05970fe..6ada8c59581a 100644 --- a/lib/node_modules/@stdlib/number/float64/base/to-words/examples/c/example.c +++ b/lib/node_modules/@stdlib/number/float64/base/to-words/examples/c/example.c @@ -21,7 +21,7 @@ #include int main( void ) { - double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 }; + const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 }; uint32_t high; uint32_t low; From 1f85abc790ec752d59df7b023392ffec04284ac4 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 8 Jul 2026 13:27:06 +0000 Subject: [PATCH 3/3] chore: drop README C snippets from const-qualifier propagation Revert the `const` addition on the C snippet inside `number/float32/base/to-word/README.md` and `number/float64/base/exponent/README.md`. Both READMEs carry a pre-existing `stdlib/doctest-marker` violation on nearby `// =>` comments in the JS example, and touching either file surfaces the lint failure under `Lint Changed Files`. Fixing that lint is adaptive rewriting outside the source commit's mechanical shape; drop these README sites and keep the const propagation to the sibling `examples/c/example.c` files (which stay landed) plus `float64/base/to-words/README.md`, which has no such marker. --- lib/node_modules/@stdlib/number/float32/base/to-word/README.md | 2 +- lib/node_modules/@stdlib/number/float64/base/exponent/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/number/float32/base/to-word/README.md b/lib/node_modules/@stdlib/number/float32/base/to-word/README.md index 0d44e8831bc5..3f9c04c93946 100644 --- a/lib/node_modules/@stdlib/number/float32/base/to-word/README.md +++ b/lib/node_modules/@stdlib/number/float32/base/to-word/README.md @@ -184,7 +184,7 @@ The union has the following members: #include int main( void ) { - const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f }; + float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f }; uint32_t word; int i; diff --git a/lib/node_modules/@stdlib/number/float64/base/exponent/README.md b/lib/node_modules/@stdlib/number/float64/base/exponent/README.md index 4b09fce78099..816af50e29e1 100644 --- a/lib/node_modules/@stdlib/number/float64/base/exponent/README.md +++ b/lib/node_modules/@stdlib/number/float64/base/exponent/README.md @@ -156,7 +156,7 @@ int32_t stdlib_base_float64_exponent( const double x ); #include int main( void ) { - const double x[] = { 4.0, 0.0, -0.0, 1.0, -1.0, 3.14, -3.14, 1.0e308, -1.0e308, 1.0/0.0, -1.0/0.0, 0.0/0.0 }; + double x[] = { 4.0, 0.0, -0.0, 1.0, -1.0, 3.14, -3.14, 1.0e308, -1.0e308, 1.0/0.0, -1.0/0.0, 0.0/0.0 }; int32_t out; int i;