From df10bad9f88fdae27d1524449694fbff6e9a0d6a Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 19 Aug 2026 13:24:31 +0000 Subject: [PATCH 1/5] bench: generate arrays with `NaN` values in `stats/base/ndarray` Propagates fix from 82ee27d ("bench: generate arrays with `NaN` values") to the remaining masked sibling packages whose benchmarks generate input arrays which never contain `NaN` values, meaning the `NaN` code path of the benchmarked NaN-ignoring reductions is never exercised. Affected packages: - stats/base/ndarray/nanmskmax - stats/base/ndarray/nanmskmidrange - stats/base/ndarray/nanmskmin - stats/base/ndarray/nanmskrange - stats/base/ndarray/snanmskmax - stats/base/ndarray/snanmskmaxabs - stats/base/ndarray/snanmskmidrange - stats/base/ndarray/snanmskmin - stats/base/ndarray/snanmskminabs - stats/base/ndarray/snanmskrange --- .../ndarray/nanmskmax/benchmark/benchmark.js | 35 ++++++++++++++++--- .../nanmskmidrange/benchmark/benchmark.js | 35 ++++++++++++++++--- .../ndarray/nanmskmin/benchmark/benchmark.js | 35 ++++++++++++++++--- .../nanmskrange/benchmark/benchmark.js | 35 ++++++++++++++++--- .../ndarray/snanmskmax/benchmark/benchmark.js | 33 ++++++++++++++--- .../snanmskmaxabs/benchmark/benchmark.js | 33 ++++++++++++++--- .../snanmskmidrange/benchmark/benchmark.js | 33 ++++++++++++++--- .../ndarray/snanmskmin/benchmark/benchmark.js | 33 ++++++++++++++--- .../snanmskminabs/benchmark/benchmark.js | 33 ++++++++++++++--- .../snanmskrange/benchmark/benchmark.js | 33 ++++++++++++++--- 10 files changed, 294 insertions(+), 44 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/nanmskmax/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/ndarray/nanmskmax/benchmark/benchmark.js index a0cb7673979e..1668dd29452c 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/nanmskmax/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/ndarray/nanmskmax/benchmark/benchmark.js @@ -21,8 +21,10 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/uniform' ); -var bernoulli = require( '@stdlib/random/bernoulli' ); +var uniform = require( '@stdlib/random/base/uniform' ); +var bernoulli = require( '@stdlib/random/base/bernoulli' ); +var fillBy = require( '@stdlib/ndarray/fill-by' ); +var zeros = require( '@stdlib/ndarray/zeros' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var format = require( '@stdlib/string/format' ); @@ -35,13 +37,36 @@ var nanmskmax = require( './../lib' ); var options = { 'dtype': 'generic' }; -var mopts = { +var moptions = { 'dtype': 'uint8' }; // FUNCTIONS // +/** +* Returns a random number. +* +* @private +* @returns {number} random number +*/ +function rand() { + if ( bernoulli( 0.8 ) < 1 ) { + return NaN; + } + return uniform( -10.0, 10.0 ); +} + +/** +* Returns a random mask value. +* +* @private +* @returns {integer} random mask value +*/ +function mrand() { + return bernoulli( 0.2 ); +} + /** * Creates a benchmark function. * @@ -53,8 +78,8 @@ function createBenchmark( len ) { var mask; var x; - x = uniform( [ len ], -100.0, 100.0, options ); - mask = bernoulli( [ len ], 0.2, mopts ); + x = fillBy( zeros( [ len ], options ), rand ); + mask = fillBy( zeros( [ len ], moptions ), mrand ); return benchmark; diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/nanmskmidrange/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/ndarray/nanmskmidrange/benchmark/benchmark.js index 3bd7d7eb9b99..d16950215387 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/nanmskmidrange/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/ndarray/nanmskmidrange/benchmark/benchmark.js @@ -21,8 +21,10 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/uniform' ); -var bernoulli = require( '@stdlib/random/bernoulli' ); +var uniform = require( '@stdlib/random/base/uniform' ); +var bernoulli = require( '@stdlib/random/base/bernoulli' ); +var fillBy = require( '@stdlib/ndarray/fill-by' ); +var zeros = require( '@stdlib/ndarray/zeros' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var format = require( '@stdlib/string/format' ); @@ -35,13 +37,36 @@ var nanmskmidrange = require( './../lib' ); var options = { 'dtype': 'generic' }; -var mopts = { +var moptions = { 'dtype': 'uint8' }; // FUNCTIONS // +/** +* Returns a random number. +* +* @private +* @returns {number} random number +*/ +function rand() { + if ( bernoulli( 0.8 ) < 1 ) { + return NaN; + } + return uniform( -10.0, 10.0 ); +} + +/** +* Returns a random mask value. +* +* @private +* @returns {integer} random mask value +*/ +function mrand() { + return bernoulli( 0.2 ); +} + /** * Creates a benchmark function. * @@ -53,8 +78,8 @@ function createBenchmark( len ) { var mask; var x; - x = uniform( [ len ], -100.0, 100.0, options ); - mask = bernoulli( [ len ], 0.2, mopts ); + x = fillBy( zeros( [ len ], options ), rand ); + mask = fillBy( zeros( [ len ], moptions ), mrand ); return benchmark; diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/nanmskmin/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/ndarray/nanmskmin/benchmark/benchmark.js index f4e60d382bcc..194250d84b97 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/nanmskmin/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/ndarray/nanmskmin/benchmark/benchmark.js @@ -21,8 +21,10 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/uniform' ); -var bernoulli = require( '@stdlib/random/bernoulli' ); +var uniform = require( '@stdlib/random/base/uniform' ); +var bernoulli = require( '@stdlib/random/base/bernoulli' ); +var fillBy = require( '@stdlib/ndarray/fill-by' ); +var zeros = require( '@stdlib/ndarray/zeros' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var format = require( '@stdlib/string/format' ); @@ -35,13 +37,36 @@ var nanmskmin = require( './../lib' ); var options = { 'dtype': 'generic' }; -var mopts = { +var moptions = { 'dtype': 'uint8' }; // FUNCTIONS // +/** +* Returns a random number. +* +* @private +* @returns {number} random number +*/ +function rand() { + if ( bernoulli( 0.8 ) < 1 ) { + return NaN; + } + return uniform( -10.0, 10.0 ); +} + +/** +* Returns a random mask value. +* +* @private +* @returns {integer} random mask value +*/ +function mrand() { + return bernoulli( 0.2 ); +} + /** * Creates a benchmark function. * @@ -53,8 +78,8 @@ function createBenchmark( len ) { var mask; var x; - x = uniform( [ len ], -100.0, 100.0, options ); - mask = bernoulli( [ len ], 0.2, mopts ); + x = fillBy( zeros( [ len ], options ), rand ); + mask = fillBy( zeros( [ len ], moptions ), mrand ); return benchmark; diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/nanmskrange/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/ndarray/nanmskrange/benchmark/benchmark.js index d0927e2b6a4d..f4c08d60b20f 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/nanmskrange/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/ndarray/nanmskrange/benchmark/benchmark.js @@ -21,8 +21,10 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/uniform' ); -var bernoulli = require( '@stdlib/random/bernoulli' ); +var uniform = require( '@stdlib/random/base/uniform' ); +var bernoulli = require( '@stdlib/random/base/bernoulli' ); +var fillBy = require( '@stdlib/ndarray/fill-by' ); +var zeros = require( '@stdlib/ndarray/zeros' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var format = require( '@stdlib/string/format' ); @@ -35,13 +37,36 @@ var nanmskrange = require( './../lib' ); var options = { 'dtype': 'generic' }; -var mopts = { +var moptions = { 'dtype': 'uint8' }; // FUNCTIONS // +/** +* Returns a random number. +* +* @private +* @returns {number} random number +*/ +function rand() { + if ( bernoulli( 0.8 ) < 1 ) { + return NaN; + } + return uniform( -10.0, 10.0 ); +} + +/** +* Returns a random mask value. +* +* @private +* @returns {integer} random mask value +*/ +function mrand() { + return bernoulli( 0.2 ); +} + /** * Creates a benchmark function. * @@ -53,8 +78,8 @@ function createBenchmark( len ) { var mask; var x; - x = uniform( [ len ], -100.0, 100.0, options ); - mask = bernoulli( [ len ], 0.2, mopts ); + x = fillBy( zeros( [ len ], options ), rand ); + mask = fillBy( zeros( [ len ], moptions ), mrand ); return benchmark; diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmax/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmax/benchmark/benchmark.js index 16279b6e5fdf..96160a31443b 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmax/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmax/benchmark/benchmark.js @@ -21,8 +21,10 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/uniform' ); -var bernoulli = require( '@stdlib/random/bernoulli' ); +var uniform = require( '@stdlib/random/base/uniform' ); +var bernoulli = require( '@stdlib/random/base/bernoulli' ); +var fillBy = require( '@stdlib/ndarray/fill-by' ); +var zeros = require( '@stdlib/ndarray/zeros' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var format = require( '@stdlib/string/format' ); @@ -42,6 +44,29 @@ var moptions = { // FUNCTIONS // +/** +* Returns a random number. +* +* @private +* @returns {number} random number +*/ +function rand() { + if ( bernoulli( 0.8 ) < 1 ) { + return NaN; + } + return uniform( -10.0, 10.0 ); +} + +/** +* Returns a random mask value. +* +* @private +* @returns {integer} random mask value +*/ +function mrand() { + return bernoulli( 0.2 ); +} + /** * Creates a benchmark function. * @@ -53,8 +78,8 @@ function createBenchmark( len ) { var mask; var x; - mask = bernoulli( [ len ], 0.2, moptions ); - x = uniform( [ len ], -100.0, 100.0, options ); + x = fillBy( zeros( [ len ], options ), rand ); + mask = fillBy( zeros( [ len ], moptions ), mrand ); return benchmark; diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmaxabs/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmaxabs/benchmark/benchmark.js index 6cfb332f1c72..f9066d0644fd 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmaxabs/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmaxabs/benchmark/benchmark.js @@ -21,8 +21,10 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/uniform' ); -var bernoulli = require( '@stdlib/random/bernoulli' ); +var uniform = require( '@stdlib/random/base/uniform' ); +var bernoulli = require( '@stdlib/random/base/bernoulli' ); +var fillBy = require( '@stdlib/ndarray/fill-by' ); +var zeros = require( '@stdlib/ndarray/zeros' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var format = require( '@stdlib/string/format' ); @@ -42,6 +44,29 @@ var moptions = { // FUNCTIONS // +/** +* Returns a random number. +* +* @private +* @returns {number} random number +*/ +function rand() { + if ( bernoulli( 0.8 ) < 1 ) { + return NaN; + } + return uniform( -10.0, 10.0 ); +} + +/** +* Returns a random mask value. +* +* @private +* @returns {integer} random mask value +*/ +function mrand() { + return bernoulli( 0.2 ); +} + /** * Creates a benchmark function. * @@ -53,8 +78,8 @@ function createBenchmark( len ) { var mask; var x; - mask = bernoulli( [ len ], 0.2, moptions ); - x = uniform( [ len ], -100.0, 100.0, options ); + x = fillBy( zeros( [ len ], options ), rand ); + mask = fillBy( zeros( [ len ], moptions ), mrand ); return benchmark; diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmidrange/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmidrange/benchmark/benchmark.js index 5c9f1ba14695..dec2504746cc 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmidrange/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmidrange/benchmark/benchmark.js @@ -21,8 +21,10 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/uniform' ); -var bernoulli = require( '@stdlib/random/bernoulli' ); +var uniform = require( '@stdlib/random/base/uniform' ); +var bernoulli = require( '@stdlib/random/base/bernoulli' ); +var fillBy = require( '@stdlib/ndarray/fill-by' ); +var zeros = require( '@stdlib/ndarray/zeros' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var format = require( '@stdlib/string/format' ); @@ -42,6 +44,29 @@ var moptions = { // FUNCTIONS // +/** +* Returns a random number. +* +* @private +* @returns {number} random number +*/ +function rand() { + if ( bernoulli( 0.8 ) < 1 ) { + return NaN; + } + return uniform( -10.0, 10.0 ); +} + +/** +* Returns a random mask value. +* +* @private +* @returns {integer} random mask value +*/ +function mrand() { + return bernoulli( 0.2 ); +} + /** * Creates a benchmark function. * @@ -53,8 +78,8 @@ function createBenchmark( len ) { var mask; var x; - mask = bernoulli( [ len ], 0.2, moptions ); - x = uniform( [ len ], -100.0, 100.0, options ); + x = fillBy( zeros( [ len ], options ), rand ); + mask = fillBy( zeros( [ len ], moptions ), mrand ); return benchmark; diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmin/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmin/benchmark/benchmark.js index 24b583e946a0..bcefddedbca4 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmin/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/ndarray/snanmskmin/benchmark/benchmark.js @@ -21,8 +21,10 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/uniform' ); -var bernoulli = require( '@stdlib/random/bernoulli' ); +var uniform = require( '@stdlib/random/base/uniform' ); +var bernoulli = require( '@stdlib/random/base/bernoulli' ); +var fillBy = require( '@stdlib/ndarray/fill-by' ); +var zeros = require( '@stdlib/ndarray/zeros' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var format = require( '@stdlib/string/format' ); @@ -42,6 +44,29 @@ var moptions = { // FUNCTIONS // +/** +* Returns a random number. +* +* @private +* @returns {number} random number +*/ +function rand() { + if ( bernoulli( 0.8 ) < 1 ) { + return NaN; + } + return uniform( -10.0, 10.0 ); +} + +/** +* Returns a random mask value. +* +* @private +* @returns {integer} random mask value +*/ +function mrand() { + return bernoulli( 0.2 ); +} + /** * Creates a benchmark function. * @@ -53,8 +78,8 @@ function createBenchmark( len ) { var mask; var x; - mask = bernoulli( [ len ], 0.2, moptions ); - x = uniform( [ len ], -100.0, 100.0, options ); + x = fillBy( zeros( [ len ], options ), rand ); + mask = fillBy( zeros( [ len ], moptions ), mrand ); return benchmark; diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/snanmskminabs/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/ndarray/snanmskminabs/benchmark/benchmark.js index 5fc2a866177d..83e1d1389827 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/snanmskminabs/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/ndarray/snanmskminabs/benchmark/benchmark.js @@ -21,8 +21,10 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/uniform' ); -var bernoulli = require( '@stdlib/random/bernoulli' ); +var uniform = require( '@stdlib/random/base/uniform' ); +var bernoulli = require( '@stdlib/random/base/bernoulli' ); +var fillBy = require( '@stdlib/ndarray/fill-by' ); +var zeros = require( '@stdlib/ndarray/zeros' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var format = require( '@stdlib/string/format' ); @@ -42,6 +44,29 @@ var moptions = { // FUNCTIONS // +/** +* Returns a random number. +* +* @private +* @returns {number} random number +*/ +function rand() { + if ( bernoulli( 0.8 ) < 1 ) { + return NaN; + } + return uniform( -10.0, 10.0 ); +} + +/** +* Returns a random mask value. +* +* @private +* @returns {integer} random mask value +*/ +function mrand() { + return bernoulli( 0.2 ); +} + /** * Creates a benchmark function. * @@ -53,8 +78,8 @@ function createBenchmark( len ) { var mask; var x; - mask = bernoulli( [ len ], 0.2, moptions ); - x = uniform( [ len ], -100.0, 100.0, options ); + x = fillBy( zeros( [ len ], options ), rand ); + mask = fillBy( zeros( [ len ], moptions ), mrand ); return benchmark; diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/snanmskrange/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/ndarray/snanmskrange/benchmark/benchmark.js index f53055ad0dda..d43541f5fb1c 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/snanmskrange/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/ndarray/snanmskrange/benchmark/benchmark.js @@ -21,8 +21,10 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/uniform' ); -var bernoulli = require( '@stdlib/random/bernoulli' ); +var uniform = require( '@stdlib/random/base/uniform' ); +var bernoulli = require( '@stdlib/random/base/bernoulli' ); +var fillBy = require( '@stdlib/ndarray/fill-by' ); +var zeros = require( '@stdlib/ndarray/zeros' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var format = require( '@stdlib/string/format' ); @@ -42,6 +44,29 @@ var moptions = { // FUNCTIONS // +/** +* Returns a random number. +* +* @private +* @returns {number} random number +*/ +function rand() { + if ( bernoulli( 0.8 ) < 1 ) { + return NaN; + } + return uniform( -10.0, 10.0 ); +} + +/** +* Returns a random mask value. +* +* @private +* @returns {integer} random mask value +*/ +function mrand() { + return bernoulli( 0.2 ); +} + /** * Creates a benchmark function. * @@ -53,8 +78,8 @@ function createBenchmark( len ) { var mask; var x; - mask = bernoulli( [ len ], 0.2, moptions ); - x = uniform( [ len ], -100.0, 100.0, options ); + x = fillBy( zeros( [ len ], options ), rand ); + mask = fillBy( zeros( [ len ], moptions ), mrand ); return benchmark; From 8fdba670339422033b977af308ba72c7ca820802 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 19 Aug 2026 13:24:43 +0000 Subject: [PATCH 2/5] chore: remove unused header in `stats/base/dists/normal` examples Propagates fix from 746050a ("chore: remove unused header") to sibling packages whose C examples include `` without using any of its declarations. Affected packages: - stats/base/dists/normal/cdf - stats/base/dists/normal/logpdf --- .../@stdlib/stats/base/dists/normal/cdf/examples/c/example.c | 1 - .../@stdlib/stats/base/dists/normal/logpdf/examples/c/example.c | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/normal/cdf/examples/c/example.c b/lib/node_modules/@stdlib/stats/base/dists/normal/cdf/examples/c/example.c index fccbf64b4e6a..9799d0e30e71 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/normal/cdf/examples/c/example.c +++ b/lib/node_modules/@stdlib/stats/base/dists/normal/cdf/examples/c/example.c @@ -19,7 +19,6 @@ #include "stdlib/stats/base/dists/normal/cdf.h" #include #include -#include static double random_uniform( const double min, const double max ) { double v = (double)rand() / ( (double)RAND_MAX + 1.0 ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/normal/logpdf/examples/c/example.c b/lib/node_modules/@stdlib/stats/base/dists/normal/logpdf/examples/c/example.c index e778668d83e3..f2be3e020bfe 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/normal/logpdf/examples/c/example.c +++ b/lib/node_modules/@stdlib/stats/base/dists/normal/logpdf/examples/c/example.c @@ -19,7 +19,6 @@ #include "stdlib/stats/base/dists/normal/logpdf.h" #include #include -#include static double random_uniform( const double min, const double max ) { double v = (double)rand() / ( (double)RAND_MAX + 1.0 ); From 6f7bcdf38379bf8ca995dafaa42584e60278a940 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 19 Aug 2026 13:25:07 +0000 Subject: [PATCH 3/5] chore: use `floating-point` in docs, comments, and test descriptions Propagates fix from 72b23ea ("chore: clean-up") to remaining files using "floating point" as an unhyphenated compound modifier, which is contrary to project convention. Affected packages: - math/base/special (namespace README) - math/base/special/cbrt - math/base/special/kernel-log1p - math/base/special/kernel-log1pf - math/base/special/log1p - math/base/special/rempio2 - math/base/special/rempio2f - string/format The occurrences in `string/format` example input/output literals are deliberately left unchanged. --- .../@stdlib/math/base/special/README.md | 2 +- .../@stdlib/math/base/special/cbrt/lib/main.js | 2 +- .../@stdlib/math/base/special/cbrt/src/main.c | 2 +- .../math/base/special/kernel-log1p/lib/main.js | 2 +- .../math/base/special/kernel-log1p/src/main.c | 2 +- .../base/special/kernel-log1pf/lib/main.js | 2 +- .../math/base/special/kernel-log1pf/src/main.c | 2 +- .../math/base/special/log1p/lib/main.js | 2 +- .../@stdlib/math/base/special/log1p/src/main.c | 2 +- .../math/base/special/rempio2/test/test.js | 18 +++++++++--------- .../base/special/rempio2/test/test.native.js | 18 +++++++++--------- .../math/base/special/rempio2f/test/test.js | 18 +++++++++--------- .../base/special/rempio2f/test/test.native.js | 18 +++++++++--------- .../@stdlib/string/format/README.md | 2 +- 14 files changed, 46 insertions(+), 46 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/README.md b/lib/node_modules/@stdlib/math/base/special/README.md index 59fbd65ea53e..301c207472c0 100644 --- a/lib/node_modules/@stdlib/math/base/special/README.md +++ b/lib/node_modules/@stdlib/math/base/special/README.md @@ -90,7 +90,7 @@ var fcns = special; - [`acoversin( x )`][@stdlib/math/base/special/acoversin]: compute the inverse coversed sine. - [`acoversinf( x )`][@stdlib/math/base/special/acoversinf]: compute the inverse coversed sine of a single-precision floating-point number (in radians). - [`ahavercos( x )`][@stdlib/math/base/special/ahavercos]: compute the inverse half-value versed cosine. -- [`ahavercosf( x )`][@stdlib/math/base/special/ahavercosf]: compute the inverse half-value versed cosine of a single-precision floating point number. +- [`ahavercosf( x )`][@stdlib/math/base/special/ahavercosf]: compute the inverse half-value versed cosine of a single-precision floating-point number. - [`ahaversin( x )`][@stdlib/math/base/special/ahaversin]: compute the inverse half-value versed sine. - [`ahaversinf( x )`][@stdlib/math/base/special/ahaversinf]: compute the inverse half-value versed sine of a single-precision floating-point number. - [`asin( x )`][@stdlib/math/base/special/asin]: compute the arcsine of a double-precision floating-point number. diff --git a/lib/node_modules/@stdlib/math/base/special/cbrt/lib/main.js b/lib/node_modules/@stdlib/math/base/special/cbrt/lib/main.js index 60478edd5461..b188c392fef4 100644 --- a/lib/node_modules/@stdlib/math/base/special/cbrt/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/cbrt/lib/main.js @@ -97,7 +97,7 @@ var WORDS = [ 0>>>0, 0>>>0 ]; // asm type annotation * * Adding a bias of \\( -0.03306235651 \\) to the \\( (e \mathrm{mod} 3+ m )/ 3 \\) term reduces the error to about \\( 1 \\) in \\( 32 \\). * -* With the IEEE floating point representation, for finite positive normal values, ordinary integer division of the value in bits magically gives almost exactly the RHS of the above provided we first subtract the exponent bias (\\( 1023 \\) for doubles) and later add it back. +* With the IEEE floating-point representation, for finite positive normal values, ordinary integer division of the value in bits magically gives almost exactly the RHS of the above provided we first subtract the exponent bias (\\( 1023 \\) for doubles) and later add it back. * * We do the subtraction virtually to keep \\( e \geq 0 \\) so that ordinary integer division rounds toward \\( -\infty \\); this is also efficient. * diff --git a/lib/node_modules/@stdlib/math/base/special/cbrt/src/main.c b/lib/node_modules/@stdlib/math/base/special/cbrt/src/main.c index 8d9a9efab34d..fb49b637cbac 100644 --- a/lib/node_modules/@stdlib/math/base/special/cbrt/src/main.c +++ b/lib/node_modules/@stdlib/math/base/special/cbrt/src/main.c @@ -84,7 +84,7 @@ static double polval( const double x ) { * * Adding a bias of \\( -0.03306235651 \\) to the \\( (e \mathrm{mod} 3+ m )/ 3 \\) term reduces the error to about \\( 1 \\) in \\( 32 \\). * -* With the IEEE floating point representation, for finite positive normal values, ordinary integer division of the value in bits magically gives almost exactly the RHS of the above provided we first subtract the exponent bias (\\( 1023 \\) for doubles) and later add it back. +* With the IEEE floating-point representation, for finite positive normal values, ordinary integer division of the value in bits magically gives almost exactly the RHS of the above provided we first subtract the exponent bias (\\( 1023 \\) for doubles) and later add it back. * * We do the subtraction virtually to keep \\( e \geq 0 \\) so that ordinary integer division rounds toward \\( -\infty \\); this is also efficient. * diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/lib/main.js b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/lib/main.js index 575b0d39599b..4b3d93297752 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/lib/main.js @@ -109,7 +109,7 @@ var polyvalQ = require( './polyval_q.js' ); * \end{align*} * ``` * -* Here, \\(\operatorname{ln2}\\) is split into two floating point numbers: +* Here, \\(\operatorname{ln2}\\) is split into two floating-point numbers: * * ```tex * \operatorname{ln2} = \operatorname{ln2}_{hi} + \operatorname{ln2}_{lo} diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/src/main.c b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/src/main.c index fdd92f2a6da0..e4eab32a4675 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/src/main.c +++ b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/src/main.c @@ -145,7 +145,7 @@ static double polyval_q( const double x ) { * \end{align*} * ``` * -* Here, \\(\operatorname{ln2}\\) is split into two floating point numbers: +* Here, \\(\operatorname{ln2}\\) is split into two floating-point numbers: * * ```tex * \operatorname{ln2} = \operatorname{ln2}_{hi} + \operatorname{ln2}_{lo} diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/lib/main.js b/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/lib/main.js index d89192f99984..15a3a1618b2a 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/lib/main.js @@ -116,7 +116,7 @@ var TWO = f32( 2.0 ); * \end{align*} * ``` * -* Here, \\(\operatorname{ln2}\\) is split into two floating point numbers: +* Here, \\(\operatorname{ln2}\\) is split into two floating-point numbers: * * ```tex * \operatorname{ln2} = \operatorname{ln2}_{hi} + \operatorname{ln2}_{lo} diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/src/main.c b/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/src/main.c index a3e50ed18c85..4bba1f9585c2 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/src/main.c +++ b/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/src/main.c @@ -145,7 +145,7 @@ static float polyval_q( const float x ) { * \end{align*} * ``` * -* Here, \\(\operatorname{ln2}\\) is split into two floating point numbers: +* Here, \\(\operatorname{ln2}\\) is split into two floating-point numbers: * * ```tex * \operatorname{ln2} = \operatorname{ln2}_{hi} + \operatorname{ln2}_{lo} diff --git a/lib/node_modules/@stdlib/math/base/special/log1p/lib/main.js b/lib/node_modules/@stdlib/math/base/special/log1p/lib/main.js index 061d34bb5ba2..b21591b9f674 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1p/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/log1p/lib/main.js @@ -175,7 +175,7 @@ var TWO_THIRDS = 6.666666666666666666e-01; * \end{align*} * ``` * -* Here \\(\mathrm{ln2}\\) is split into two floating point numbers: +* Here \\(\mathrm{ln2}\\) is split into two floating-point numbers: * * ```tex * \mathrm{ln2}_{hi} + \mathrm{ln2}_{lo} diff --git a/lib/node_modules/@stdlib/math/base/special/log1p/src/main.c b/lib/node_modules/@stdlib/math/base/special/log1p/src/main.c index 628bba9e30c3..faa1ed8d34d7 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1p/src/main.c +++ b/lib/node_modules/@stdlib/math/base/special/log1p/src/main.c @@ -191,7 +191,7 @@ static double polyval_lp( const double x ) { * \end{align*} * ``` * -* Here \\(\mathrm{ln2}\\) is split into two floating point numbers: +* Here \\(\mathrm{ln2}\\) is split into two floating-point numbers: * * ```tex * \mathrm{ln2}_{hi} + \mathrm{ln2}_{lo} diff --git a/lib/node_modules/@stdlib/math/base/special/rempio2/test/test.js b/lib/node_modules/@stdlib/math/base/special/rempio2/test/test.js index e4d595e30878..7c8af1ced86d 100644 --- a/lib/node_modules/@stdlib/math/base/special/rempio2/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/rempio2/test/test.js @@ -68,7 +68,7 @@ tape( 'the function returns `0` and sets the elements of `y` to `NaN` if provide t.end(); }); -tape( 'the function returns `n` and stores `r` as two double-precision floating point numbers in `y` such that `x - nπ/2 = r` (positive)', function test( t ) { +tape( 'the function returns `n` and stores `r` as two double-precision floating-point numbers in `y` such that `x - nπ/2 = r` (positive)', function test( t ) { var x; var y; var z; @@ -90,7 +90,7 @@ tape( 'the function returns `n` and stores `r` as two double-precision floating t.end(); }); -tape( 'the function returns `n` and stores `r` as two double-precision floating point numbers in `y` such that `x - nπ/2 = r` (tiny positive)', function test( t ) { +tape( 'the function returns `n` and stores `r` as two double-precision floating-point numbers in `y` such that `x - nπ/2 = r` (tiny positive)', function test( t ) { var x; var y; var z; @@ -112,7 +112,7 @@ tape( 'the function returns `n` and stores `r` as two double-precision floating t.end(); }); -tape( 'the function returns `n` and stores `r` as two double-precision floating point numbers in `y` such that `x - nπ/2 = r` (negative)', function test( t ) { +tape( 'the function returns `n` and stores `r` as two double-precision floating-point numbers in `y` such that `x - nπ/2 = r` (negative)', function test( t ) { var x; var y; var z; @@ -134,7 +134,7 @@ tape( 'the function returns `n` and stores `r` as two double-precision floating t.end(); }); -tape( 'the function returns `n` and stores `r` as two double-precision floating point numbers in `y` such that `x - nπ/2 = r` (tiny negative)', function test( t ) { +tape( 'the function returns `n` and stores `r` as two double-precision floating-point numbers in `y` such that `x - nπ/2 = r` (tiny negative)', function test( t ) { var x; var y; var z; @@ -156,7 +156,7 @@ tape( 'the function returns `n` and stores `r` as two double-precision floating t.end(); }); -tape( 'the function returns `n` and stores `r` as two double-precision floating point numbers in `y` such that `x - nπ/2 = r` (multiples of π/4)', function test( t ) { +tape( 'the function returns `n` and stores `r` as two double-precision floating-point numbers in `y` such that `x - nπ/2 = r` (multiples of π/4)', function test( t ) { var x; var y; var z; @@ -178,7 +178,7 @@ tape( 'the function returns `n` and stores `r` as two double-precision floating t.end(); }); -tape( 'for large positive input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating point numbers in `y`', function test( t ) { +tape( 'for large positive input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating-point numbers in `y`', function test( t ) { var x; var y; var n; @@ -196,7 +196,7 @@ tape( 'for large positive input values, the function returns the last three bina t.end(); }); -tape( 'for large negative input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating point numbers in `y`', function test( t ) { +tape( 'for large negative input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating-point numbers in `y`', function test( t ) { var x; var y; var n; @@ -214,7 +214,7 @@ tape( 'for large negative input values, the function returns the last three bina t.end(); }); -tape( 'for huge positive input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating point numbers in `y`', function test( t ) { +tape( 'for huge positive input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating-point numbers in `y`', function test( t ) { var x; var y; var n; @@ -232,7 +232,7 @@ tape( 'for huge positive input values, the function returns the last three binar t.end(); }); -tape( 'for huge negative input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating point numbers in `y`', function test( t ) { +tape( 'for huge negative input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating-point numbers in `y`', function test( t ) { var x; var y; var n; diff --git a/lib/node_modules/@stdlib/math/base/special/rempio2/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/rempio2/test/test.native.js index 0cd39b8ad88e..25628dfa5110 100644 --- a/lib/node_modules/@stdlib/math/base/special/rempio2/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/rempio2/test/test.native.js @@ -78,7 +78,7 @@ tape( 'the function returns `0` and sets the elements of `y` to `NaN` if provide t.end(); }); -tape( 'the function returns `n` and stores `r` as two double-precision floating point numbers in `y` such that `x - nπ/2 = r` (positive)', opts, function test( t ) { +tape( 'the function returns `n` and stores `r` as two double-precision floating-point numbers in `y` such that `x - nπ/2 = r` (positive)', opts, function test( t ) { var x; var y; var z; @@ -100,7 +100,7 @@ tape( 'the function returns `n` and stores `r` as two double-precision floating t.end(); }); -tape( 'the function returns `n` and stores `r` as two double-precision floating point numbers in `y` such that `x - nπ/2 = r` (tiny positive)', opts, function test( t ) { +tape( 'the function returns `n` and stores `r` as two double-precision floating-point numbers in `y` such that `x - nπ/2 = r` (tiny positive)', opts, function test( t ) { var x; var y; var z; @@ -122,7 +122,7 @@ tape( 'the function returns `n` and stores `r` as two double-precision floating t.end(); }); -tape( 'the function returns `n` and stores `r` as two double-precision floating point numbers in `y` such that `x - nπ/2 = r` (negative)', opts, function test( t ) { +tape( 'the function returns `n` and stores `r` as two double-precision floating-point numbers in `y` such that `x - nπ/2 = r` (negative)', opts, function test( t ) { var x; var y; var z; @@ -144,7 +144,7 @@ tape( 'the function returns `n` and stores `r` as two double-precision floating t.end(); }); -tape( 'the function returns `n` and stores `r` as two double-precision floating point numbers in `y` such that `x - nπ/2 = r` (tiny negative)', opts, function test( t ) { +tape( 'the function returns `n` and stores `r` as two double-precision floating-point numbers in `y` such that `x - nπ/2 = r` (tiny negative)', opts, function test( t ) { var x; var y; var z; @@ -166,7 +166,7 @@ tape( 'the function returns `n` and stores `r` as two double-precision floating t.end(); }); -tape( 'the function returns `n` and stores `r` as two double-precision floating point numbers in `y` such that `x - nπ/2 = r` (multiples of π/4)', opts, function test( t ) { +tape( 'the function returns `n` and stores `r` as two double-precision floating-point numbers in `y` such that `x - nπ/2 = r` (multiples of π/4)', opts, function test( t ) { var x; var y; var z; @@ -188,7 +188,7 @@ tape( 'the function returns `n` and stores `r` as two double-precision floating t.end(); }); -tape( 'for large positive input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating point numbers in `y`', opts, function test( t ) { +tape( 'for large positive input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating-point numbers in `y`', opts, function test( t ) { var x; var y; var n; @@ -206,7 +206,7 @@ tape( 'for large positive input values, the function returns the last three bina t.end(); }); -tape( 'for large negative input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating point numbers in `y`', opts, function test( t ) { +tape( 'for large negative input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating-point numbers in `y`', opts, function test( t ) { var x; var y; var n; @@ -224,7 +224,7 @@ tape( 'for large negative input values, the function returns the last three bina t.end(); }); -tape( 'for huge positive input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating point numbers in `y`', opts, function test( t ) { +tape( 'for huge positive input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating-point numbers in `y`', opts, function test( t ) { var x; var y; var n; @@ -242,7 +242,7 @@ tape( 'for huge positive input values, the function returns the last three binar t.end(); }); -tape( 'for huge negative input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating point numbers in `y`', opts, function test( t ) { +tape( 'for huge negative input values, the function returns the last three binary digits of `n` and stores `r` as two double-precision floating-point numbers in `y`', opts, function test( t ) { var x; var y; var n; diff --git a/lib/node_modules/@stdlib/math/base/special/rempio2f/test/test.js b/lib/node_modules/@stdlib/math/base/special/rempio2f/test/test.js index d24be5505a86..a08daab47e7d 100644 --- a/lib/node_modules/@stdlib/math/base/special/rempio2f/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/rempio2f/test/test.js @@ -66,7 +66,7 @@ tape( 'the function returns `0` and sets `y[0]` to `NaN` if provided positive or t.end(); }); -tape( 'the function returns `n` and stores `r` as a double-precision floating point number in `y` such that `x - nπ/2 = r` (positive)', function test( t ) { +tape( 'the function returns `n` and stores `r` as a double-precision floating-point number in `y` such that `x - nπ/2 = r` (positive)', function test( t ) { var x; var y; var z; @@ -87,7 +87,7 @@ tape( 'the function returns `n` and stores `r` as a double-precision floating po t.end(); }); -tape( 'the function returns `n` and stores `r` as a double-precision floating point number in `y` such that `x - nπ/2 = r` (tiny positive)', function test( t ) { +tape( 'the function returns `n` and stores `r` as a double-precision floating-point number in `y` such that `x - nπ/2 = r` (tiny positive)', function test( t ) { var x; var y; var z; @@ -108,7 +108,7 @@ tape( 'the function returns `n` and stores `r` as a double-precision floating po t.end(); }); -tape( 'the function returns `n` and stores `r` as a double-precision floating point number in `y` such that `x - nπ/2 = r` (negative)', function test( t ) { +tape( 'the function returns `n` and stores `r` as a double-precision floating-point number in `y` such that `x - nπ/2 = r` (negative)', function test( t ) { var x; var y; var z; @@ -129,7 +129,7 @@ tape( 'the function returns `n` and stores `r` as a double-precision floating po t.end(); }); -tape( 'the function returns `n` and stores `r` as a double-precision floating point number in `y` such that `x - nπ/2 = r` (tiny negative)', function test( t ) { +tape( 'the function returns `n` and stores `r` as a double-precision floating-point number in `y` such that `x - nπ/2 = r` (tiny negative)', function test( t ) { var x; var y; var z; @@ -150,7 +150,7 @@ tape( 'the function returns `n` and stores `r` as a double-precision floating po t.end(); }); -tape( 'the function returns `n` and stores `r` as a double-precision floating point number in `y` such that `x - nπ/2 = r` (multiples of π/4)', function test( t ) { +tape( 'the function returns `n` and stores `r` as a double-precision floating-point number in `y` such that `x - nπ/2 = r` (multiples of π/4)', function test( t ) { var x; var y; var z; @@ -172,7 +172,7 @@ tape( 'the function returns `n` and stores `r` as a double-precision floating po t.end(); }); -tape( 'for large positive input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating point number in `y`', function test( t ) { +tape( 'for large positive input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating-point number in `y`', function test( t ) { var x; var y; var n; @@ -190,7 +190,7 @@ tape( 'for large positive input values, the function returns the last three bina t.end(); }); -tape( 'for large negative input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating point number in `y`', function test( t ) { +tape( 'for large negative input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating-point number in `y`', function test( t ) { var x; var y; var n; @@ -208,7 +208,7 @@ tape( 'for large negative input values, the function returns the last three bina t.end(); }); -tape( 'for huge positive input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating point number in `y`', function test( t ) { +tape( 'for huge positive input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating-point number in `y`', function test( t ) { var x; var y; var n; @@ -226,7 +226,7 @@ tape( 'for huge positive input values, the function returns the last three binar t.end(); }); -tape( 'for huge negative input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating point number in `y`', function test( t ) { +tape( 'for huge negative input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating-point number in `y`', function test( t ) { var x; var y; var n; diff --git a/lib/node_modules/@stdlib/math/base/special/rempio2f/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/rempio2f/test/test.native.js index c1d807e14314..bb5ee840428e 100644 --- a/lib/node_modules/@stdlib/math/base/special/rempio2f/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/rempio2f/test/test.native.js @@ -76,7 +76,7 @@ tape( 'the function returns `0` and sets `y[0]` to `NaN` if provided positive or t.end(); }); -tape( 'the function returns `n` and stores `r` as a double-precision floating point number in `y` such that `x - nπ/2 = r` (positive)', opts, function test( t ) { +tape( 'the function returns `n` and stores `r` as a double-precision floating-point number in `y` such that `x - nπ/2 = r` (positive)', opts, function test( t ) { var x; var y; var z; @@ -97,7 +97,7 @@ tape( 'the function returns `n` and stores `r` as a double-precision floating po t.end(); }); -tape( 'the function returns `n` and stores `r` as a double-precision floating point number in `y` such that `x - nπ/2 = r` (tiny positive)', opts, function test( t ) { +tape( 'the function returns `n` and stores `r` as a double-precision floating-point number in `y` such that `x - nπ/2 = r` (tiny positive)', opts, function test( t ) { var x; var y; var z; @@ -118,7 +118,7 @@ tape( 'the function returns `n` and stores `r` as a double-precision floating po t.end(); }); -tape( 'the function returns `n` and stores `r` as a double-precision floating point number in `y` such that `x - nπ/2 = r` (negative)', opts, function test( t ) { +tape( 'the function returns `n` and stores `r` as a double-precision floating-point number in `y` such that `x - nπ/2 = r` (negative)', opts, function test( t ) { var x; var y; var z; @@ -139,7 +139,7 @@ tape( 'the function returns `n` and stores `r` as a double-precision floating po t.end(); }); -tape( 'the function returns `n` and stores `r` as a double-precision floating point number in `y` such that `x - nπ/2 = r` (tiny negative)', opts, function test( t ) { +tape( 'the function returns `n` and stores `r` as a double-precision floating-point number in `y` such that `x - nπ/2 = r` (tiny negative)', opts, function test( t ) { var x; var y; var z; @@ -160,7 +160,7 @@ tape( 'the function returns `n` and stores `r` as a double-precision floating po t.end(); }); -tape( 'the function returns `n` and stores `r` as a double-precision floating point number in `y` such that `x - nπ/2 = r` (multiples of π/4)', opts, function test( t ) { +tape( 'the function returns `n` and stores `r` as a double-precision floating-point number in `y` such that `x - nπ/2 = r` (multiples of π/4)', opts, function test( t ) { var x; var y; var z; @@ -182,7 +182,7 @@ tape( 'the function returns `n` and stores `r` as a double-precision floating po t.end(); }); -tape( 'for large positive input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating point number in `y`', opts, function test( t ) { +tape( 'for large positive input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating-point number in `y`', opts, function test( t ) { var x; var y; var n; @@ -200,7 +200,7 @@ tape( 'for large positive input values, the function returns the last three bina t.end(); }); -tape( 'for large negative input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating point number in `y`', opts, function test( t ) { +tape( 'for large negative input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating-point number in `y`', opts, function test( t ) { var x; var y; var n; @@ -218,7 +218,7 @@ tape( 'for large negative input values, the function returns the last three bina t.end(); }); -tape( 'for huge positive input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating point number in `y`', opts, function test( t ) { +tape( 'for huge positive input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating-point number in `y`', opts, function test( t ) { var x; var y; var n; @@ -236,7 +236,7 @@ tape( 'for huge positive input values, the function returns the last three binar t.end(); }); -tape( 'for huge negative input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating point number in `y`', opts, function test( t ) { +tape( 'for huge negative input values, the function returns the last three binary digits of `n` and stores `r` as a double-precision floating-point number in `y`', opts, function test( t ) { var x; var y; var n; diff --git a/lib/node_modules/@stdlib/string/format/README.md b/lib/node_modules/@stdlib/string/format/README.md index 3c32738b9a75..21c562ee237f 100644 --- a/lib/node_modules/@stdlib/string/format/README.md +++ b/lib/node_modules/@stdlib/string/format/README.md @@ -180,7 +180,7 @@ out = format( str, 5, 2 ); The `precision` may be specified as a decimal integer or as an asterisk character (`*`), in which case the argument preceding the conversion specification is used as the precision value. The behavior of the `precision` differs depending on the conversion type: - For `s` specifiers, the `precision` specifies the maximum number of characters to be written to the output. -- For floating point specifiers (`f`, `F`, `e`, `E`), the `precision` specifies the number of digits after the decimal point to be written to the output (by default, this is `6`). +- For floating-point specifiers (`f`, `F`, `e`, `E`), the `precision` specifies the number of digits after the decimal point to be written to the output (by default, this is `6`). - For `g` and `G` specifiers, the `precision` specifies the maximum number of significant digits to be written to the output. - For integer specifiers (`d`, `i`, `u`, `b`, `o`, `x`, `X`), the `precision` specifies the minimum number of digits to be written to the output. If the value to be written is shorter than this number, the result is padded with zeros on the left. The value is not truncated even if the result is longer. From e69dd2a1f6462b41cebc6b05fea2b54776eeedf1 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 19 Aug 2026 13:29:59 +0000 Subject: [PATCH 4/5] chore: revert hyphenation edit in `string/format` README Touching `string/format/README.md` triggers doctest runs in CI which fail on pre-existing displayed-return-value mismatches unrelated to this propagation. The single prose edit is dropped to keep the pull request self-contained; the pre-existing doctest failures should be addressed separately. --- lib/node_modules/@stdlib/string/format/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/string/format/README.md b/lib/node_modules/@stdlib/string/format/README.md index 21c562ee237f..3c32738b9a75 100644 --- a/lib/node_modules/@stdlib/string/format/README.md +++ b/lib/node_modules/@stdlib/string/format/README.md @@ -180,7 +180,7 @@ out = format( str, 5, 2 ); The `precision` may be specified as a decimal integer or as an asterisk character (`*`), in which case the argument preceding the conversion specification is used as the precision value. The behavior of the `precision` differs depending on the conversion type: - For `s` specifiers, the `precision` specifies the maximum number of characters to be written to the output. -- For floating-point specifiers (`f`, `F`, `e`, `E`), the `precision` specifies the number of digits after the decimal point to be written to the output (by default, this is `6`). +- For floating point specifiers (`f`, `F`, `e`, `E`), the `precision` specifies the number of digits after the decimal point to be written to the output (by default, this is `6`). - For `g` and `G` specifiers, the `precision` specifies the maximum number of significant digits to be written to the output. - For integer specifiers (`d`, `i`, `u`, `b`, `o`, `x`, `X`), the `precision` specifies the minimum number of digits to be written to the output. If the value to be written is shorter than this number, the result is padded with zeros on the left. The value is not truncated even if the result is longer. From 1c0fe9ce8d4583f0bca91d798396cd8063438390 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 19 Aug 2026 13:43:18 +0000 Subject: [PATCH 5/5] chore: revert comment edits in `cbrt`, `log1p`, and log1p kernels Comment-only hyphenation edits to `lib/main.js` and `src/main.c` in `math/base/special/{cbrt,log1p,kernel-log1p,kernel-log1pf}` mark those packages as changed, and their combined dependent set (126+ packages) makes the affected-tests CI job fail with "Argument list too long" before any test runs. The edits are dropped to keep CI green; the remaining changed packages have a bounded dependent set. --- lib/node_modules/@stdlib/math/base/special/cbrt/lib/main.js | 2 +- lib/node_modules/@stdlib/math/base/special/cbrt/src/main.c | 2 +- .../@stdlib/math/base/special/kernel-log1p/lib/main.js | 2 +- .../@stdlib/math/base/special/kernel-log1p/src/main.c | 2 +- .../@stdlib/math/base/special/kernel-log1pf/lib/main.js | 2 +- .../@stdlib/math/base/special/kernel-log1pf/src/main.c | 2 +- lib/node_modules/@stdlib/math/base/special/log1p/lib/main.js | 2 +- lib/node_modules/@stdlib/math/base/special/log1p/src/main.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cbrt/lib/main.js b/lib/node_modules/@stdlib/math/base/special/cbrt/lib/main.js index b188c392fef4..60478edd5461 100644 --- a/lib/node_modules/@stdlib/math/base/special/cbrt/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/cbrt/lib/main.js @@ -97,7 +97,7 @@ var WORDS = [ 0>>>0, 0>>>0 ]; // asm type annotation * * Adding a bias of \\( -0.03306235651 \\) to the \\( (e \mathrm{mod} 3+ m )/ 3 \\) term reduces the error to about \\( 1 \\) in \\( 32 \\). * -* With the IEEE floating-point representation, for finite positive normal values, ordinary integer division of the value in bits magically gives almost exactly the RHS of the above provided we first subtract the exponent bias (\\( 1023 \\) for doubles) and later add it back. +* With the IEEE floating point representation, for finite positive normal values, ordinary integer division of the value in bits magically gives almost exactly the RHS of the above provided we first subtract the exponent bias (\\( 1023 \\) for doubles) and later add it back. * * We do the subtraction virtually to keep \\( e \geq 0 \\) so that ordinary integer division rounds toward \\( -\infty \\); this is also efficient. * diff --git a/lib/node_modules/@stdlib/math/base/special/cbrt/src/main.c b/lib/node_modules/@stdlib/math/base/special/cbrt/src/main.c index fb49b637cbac..8d9a9efab34d 100644 --- a/lib/node_modules/@stdlib/math/base/special/cbrt/src/main.c +++ b/lib/node_modules/@stdlib/math/base/special/cbrt/src/main.c @@ -84,7 +84,7 @@ static double polval( const double x ) { * * Adding a bias of \\( -0.03306235651 \\) to the \\( (e \mathrm{mod} 3+ m )/ 3 \\) term reduces the error to about \\( 1 \\) in \\( 32 \\). * -* With the IEEE floating-point representation, for finite positive normal values, ordinary integer division of the value in bits magically gives almost exactly the RHS of the above provided we first subtract the exponent bias (\\( 1023 \\) for doubles) and later add it back. +* With the IEEE floating point representation, for finite positive normal values, ordinary integer division of the value in bits magically gives almost exactly the RHS of the above provided we first subtract the exponent bias (\\( 1023 \\) for doubles) and later add it back. * * We do the subtraction virtually to keep \\( e \geq 0 \\) so that ordinary integer division rounds toward \\( -\infty \\); this is also efficient. * diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/lib/main.js b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/lib/main.js index 4b3d93297752..575b0d39599b 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/lib/main.js @@ -109,7 +109,7 @@ var polyvalQ = require( './polyval_q.js' ); * \end{align*} * ``` * -* Here, \\(\operatorname{ln2}\\) is split into two floating-point numbers: +* Here, \\(\operatorname{ln2}\\) is split into two floating point numbers: * * ```tex * \operatorname{ln2} = \operatorname{ln2}_{hi} + \operatorname{ln2}_{lo} diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/src/main.c b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/src/main.c index e4eab32a4675..fdd92f2a6da0 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/src/main.c +++ b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/src/main.c @@ -145,7 +145,7 @@ static double polyval_q( const double x ) { * \end{align*} * ``` * -* Here, \\(\operatorname{ln2}\\) is split into two floating-point numbers: +* Here, \\(\operatorname{ln2}\\) is split into two floating point numbers: * * ```tex * \operatorname{ln2} = \operatorname{ln2}_{hi} + \operatorname{ln2}_{lo} diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/lib/main.js b/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/lib/main.js index 15a3a1618b2a..d89192f99984 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/lib/main.js @@ -116,7 +116,7 @@ var TWO = f32( 2.0 ); * \end{align*} * ``` * -* Here, \\(\operatorname{ln2}\\) is split into two floating-point numbers: +* Here, \\(\operatorname{ln2}\\) is split into two floating point numbers: * * ```tex * \operatorname{ln2} = \operatorname{ln2}_{hi} + \operatorname{ln2}_{lo} diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/src/main.c b/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/src/main.c index 4bba1f9585c2..a3e50ed18c85 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/src/main.c +++ b/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/src/main.c @@ -145,7 +145,7 @@ static float polyval_q( const float x ) { * \end{align*} * ``` * -* Here, \\(\operatorname{ln2}\\) is split into two floating-point numbers: +* Here, \\(\operatorname{ln2}\\) is split into two floating point numbers: * * ```tex * \operatorname{ln2} = \operatorname{ln2}_{hi} + \operatorname{ln2}_{lo} diff --git a/lib/node_modules/@stdlib/math/base/special/log1p/lib/main.js b/lib/node_modules/@stdlib/math/base/special/log1p/lib/main.js index b21591b9f674..061d34bb5ba2 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1p/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/log1p/lib/main.js @@ -175,7 +175,7 @@ var TWO_THIRDS = 6.666666666666666666e-01; * \end{align*} * ``` * -* Here \\(\mathrm{ln2}\\) is split into two floating-point numbers: +* Here \\(\mathrm{ln2}\\) is split into two floating point numbers: * * ```tex * \mathrm{ln2}_{hi} + \mathrm{ln2}_{lo} diff --git a/lib/node_modules/@stdlib/math/base/special/log1p/src/main.c b/lib/node_modules/@stdlib/math/base/special/log1p/src/main.c index faa1ed8d34d7..628bba9e30c3 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1p/src/main.c +++ b/lib/node_modules/@stdlib/math/base/special/log1p/src/main.c @@ -191,7 +191,7 @@ static double polyval_lp( const double x ) { * \end{align*} * ``` * -* Here \\(\mathrm{ln2}\\) is split into two floating-point numbers: +* Here \\(\mathrm{ln2}\\) is split into two floating point numbers: * * ```tex * \mathrm{ln2}_{hi} + \mathrm{ln2}_{lo}