From c4e3ddd770e895de10ea6ced36b1ffa5b62cc47a Mon Sep 17 00:00:00 2001 From: GUNJ JOSHI Date: Fri, 22 Aug 2025 21:15:43 +0530 Subject: [PATCH 1/3] chore: add structured package data for math/base/special/absgammalnf --- 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../base/special/absgammalnf/package.json | 84 ++++++++++++++++++- 1 file changed, 83 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/absgammalnf/package.json b/lib/node_modules/@stdlib/math/base/special/absgammalnf/package.json index 5a7329cd1565..b9e86a795831 100644 --- a/lib/node_modules/@stdlib/math/base/special/absgammalnf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/absgammalnf/package.json @@ -68,5 +68,87 @@ "lgamma", "lgammaf", "float" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "absgammaln", + "alias": "absgammalnf", + "pkg_desc": "evaluate the natural logarithm of the absolute value of the gamma function", + "desc": "evaluates the natural logarithm of the absolute value of the gamma function", + "short_desc": "natural logarithm of absolute gamma function", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -10, + 10 + ] + }, + "example_values": [ + 64, + 27, + 0, + 0.1, + -9, + 8, + -1, + 125, + -10.2, + 11.3, + -12.4, + 3.5, + -1.6, + 15.7, + -16, + 17.9, + -188, + 19.11, + -200, + 21.15 + ] + } + ], + "output_policy": "same", + "returns": { + "desc": "natural logarithm of absolute gamma function", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + } + }, + "keywords": [ + "absgammalnf", + "gamma", + "log", + "logarithm", + "natural", + "absolute", + "special", + "function", + "single", + "precision" + ], + "extra_keywords": [ + "math.lgamma" + ] + } + } } From 328c80447239702a068bd7196fa533658b8715e4 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 23 Aug 2025 03:21:08 -0700 Subject: [PATCH 2/3] Apply suggestions from code review Signed-off-by: Athan --- .../@stdlib/math/base/special/absgammalnf/package.json | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/absgammalnf/package.json b/lib/node_modules/@stdlib/math/base/special/absgammalnf/package.json index b9e86a795831..c5c9787164c3 100644 --- a/lib/node_modules/@stdlib/math/base/special/absgammalnf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/absgammalnf/package.json @@ -76,7 +76,7 @@ "alias": "absgammalnf", "pkg_desc": "evaluate the natural logarithm of the absolute value of the gamma function", "desc": "evaluates the natural logarithm of the absolute value of the gamma function", - "short_desc": "natural logarithm of absolute gamma function", + "short_desc": "natural logarithm of the absolute value of the gamma function", "parameters": [ { "name": "x", @@ -124,9 +124,9 @@ ] } ], - "output_policy": "same", + "output_policy": "real_floating_point_and_generic", "returns": { - "desc": "natural logarithm of absolute gamma function", + "desc": "natural logarithm of the absolute value of the gamma function", "type": { "javascript": "number", "jsdoc": "number", @@ -146,9 +146,7 @@ "single", "precision" ], - "extra_keywords": [ - "math.lgamma" - ] + "extra_keywords": [] } } } From c03c06f2923dd0fda2b006d5e8a80654620fd217 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 23 Aug 2025 03:23:16 -0700 Subject: [PATCH 3/3] chore: update keywords Signed-off-by: Athan --- .../@stdlib/math/base/special/absgammalnf/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/absgammalnf/package.json b/lib/node_modules/@stdlib/math/base/special/absgammalnf/package.json index c5c9787164c3..fb167a7e4a5d 100644 --- a/lib/node_modules/@stdlib/math/base/special/absgammalnf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/absgammalnf/package.json @@ -141,8 +141,8 @@ "logarithm", "natural", "absolute", - "special", - "function", + "lgamma", + "lgammaf", "single", "precision" ],