From cd10022ce0009129be45e6feab5b27ffb22b436e Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Fri, 7 Nov 2025 18:17:16 +0530 Subject: [PATCH 1/2] chore: add structured package data for math/base/special/log1pexp --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: passed - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../math/base/special/log1pexp/package.json | 80 ++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/log1pexp/package.json b/lib/node_modules/@stdlib/math/base/special/log1pexp/package.json index 2c52734ac9c0..453919128b33 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1pexp/package.json +++ b/lib/node_modules/@stdlib/math/base/special/log1pexp/package.json @@ -66,5 +66,83 @@ "logarithm", "log", "function" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "log1pexp", + "alias": "log1pexp", + "pkg_desc": "evaluate the natural logarithm of 1+exp(x)", + "desc": "evaluate the natural logarithm of 1+exp(x)", + "short_desc": "natural logarithm of 1+exp(x)", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -100, + 100 + ] + }, + "example_values": [ + -100, + -10, + -5, + -2, + -1, + -0.5, + 0, + 0.5, + 1, + 2, + 3, + 4, + 5, + 10, + 20, + 50, + 75, + 90, + 99, + 100 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "natural logarithm of 1+exp(x)", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "ln", + "log1pexp", + "natural", + "logarithm", + "log" + ], + "extra_keywords": [ + "math.log", + "math.log1p" + ] + } + } } From b03856931fb91d0563971ba32d9f0ce77405cb8b Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 8 Nov 2025 14:01:58 -0800 Subject: [PATCH 2/2] chore: update example values Signed-off-by: Athan --- .../math/base/special/log1pexp/package.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/log1pexp/package.json b/lib/node_modules/@stdlib/math/base/special/log1pexp/package.json index 453919128b33..8243134c80fc 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1pexp/package.json +++ b/lib/node_modules/@stdlib/math/base/special/log1pexp/package.json @@ -100,24 +100,24 @@ }, "example_values": [ -100, + 4, + 5, + 10, -10, -5, + 3, + 20, + 50, -2, -1, + 90, + 99, -0.5, 0, 0.5, 1, 2, - 3, - 4, - 5, - 10, - 20, - 50, - 75, - 90, - 99, + -75, 100 ] }