From 3bef8263ef531587b860e1d3a1642132e80f8460 Mon Sep 17 00:00:00 2001 From: iampratik13 Date: Fri, 7 Nov 2025 21:43:55 +0530 Subject: [PATCH 1/4] add structured package data kernel log1p --- .../base/special/kernel-log1p/package.json | 81 ++++++++++++++++++- 1 file changed, 80 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json index 199475aea1be..f1b5c6dca3a3 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json +++ b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json @@ -60,5 +60,84 @@ "log", "kernel", "logarithm" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "kernelLog1p", + "alias": "kernelLog1p", + "pkg_desc": "evaluate a correction term for double-precision base-2 and base-10 logarithms when 1+f is in [√2/2, √2]", + "desc": "evaluates a correction term for double-precision base-2 and base-10 logarithms when 1+f is in [√2/2, √2]", + "short_desc": "logarithm correction term", + "parameters": [ + { + "name": "f", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": 0.7071067811865476, + "max": 1.4142135623730951 + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + 0.7071067811865476, + 1.4142135623730951 + ] + }, + "example_values": [ + 0.7071067811865476, + 0.7856742013183861, + 0.8642135623730951, + 0.9427529234278040, + 1.0212922844825130, + 1.0998316455372220, + 1.1783710065919310, + 1.2569103676466400, + 1.3354497287013490, + 1.4142135623730951, + 0.75, + 0.85, + 0.95, + 1.05, + 1.15, + 1.25, + 1.35, + 1.0, + 0.8, + 1.2 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "correction term", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "log", + "kernel", + "logarithm", + "correction", + "helper" + ], + "extra_keywords": [ + "log1p", + "log2", + "log10" + ] + } + } } From add33a0ba2a232c2f52e3b52f4e553b8254777e3 Mon Sep 17 00:00:00 2001 From: iampratik13 Date: Fri, 7 Nov 2025 22:41:57 +0530 Subject: [PATCH 2/4] fix: remove trailing zeros in numeric values in kernel-log1p package.json --- .../math/base/special/kernel-log1p/package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json index f1b5c6dca3a3..1fc11bfb47d3 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json +++ b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json @@ -96,12 +96,12 @@ 0.7071067811865476, 0.7856742013183861, 0.8642135623730951, - 0.9427529234278040, - 1.0212922844825130, - 1.0998316455372220, - 1.1783710065919310, - 1.2569103676466400, - 1.3354497287013490, + 0.942752923427804, + 1.021292284482513, + 1.099831645537222, + 1.178371006591931, + 1.25691036764664, + 1.335449728701349, 1.4142135623730951, 0.75, 0.85, @@ -110,7 +110,7 @@ 1.15, 1.25, 1.35, - 1.0, + 1, 0.8, 1.2 ] From 9665e4456205a6c06203a6544087a3e53a6bd7cb Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 8 Nov 2025 17:44:23 -0800 Subject: [PATCH 3/4] docs: update desc Signed-off-by: Athan --- .../@stdlib/math/base/special/kernel-log1p/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json index 1fc11bfb47d3..c92df27ea001 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json +++ b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json @@ -68,7 +68,7 @@ "alias": "kernelLog1p", "pkg_desc": "evaluate a correction term for double-precision base-2 and base-10 logarithms when 1+f is in [√2/2, √2]", "desc": "evaluates a correction term for double-precision base-2 and base-10 logarithms when 1+f is in [√2/2, √2]", - "short_desc": "logarithm correction term", + "short_desc": "correction term for base-2 and base-10 logarithms", "parameters": [ { "name": "f", From 33829527822bff2994e394202e8b56a2df55fdc0 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 8 Nov 2025 17:45:44 -0800 Subject: [PATCH 4/4] chore: clean-up Signed-off-by: Athan --- .../math/base/special/kernel-log1p/package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json index c92df27ea001..2aea75f1b82c 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json +++ b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/package.json @@ -128,15 +128,15 @@ }, "keywords": [ "log", + "log1p", "kernel", "logarithm", - "correction", - "helper" + "correction" ], "extra_keywords": [ - "log1p", - "log2", - "log10" + "math.log1p", + "math.log2", + "math.log10" ] } }