From 77b84cca6a07865bee399f5718023854e80d5ffa Mon Sep 17 00:00:00 2001 From: Lokeshranjan8 Date: Sat, 6 Sep 2025 22:41:08 +0530 Subject: [PATCH 1/6] chore: add structured package data for math/base/special/factorial2f --- 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/factorial2f/package.json | 74 ++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json b/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json index d0bb10defedb..84e478c42401 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json +++ b/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json @@ -67,5 +67,77 @@ "combinatorics", "double", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "factorial2f", + "alias": "factorial2f", + "pkg_desc": "compute the double factorial as a single-precision floating-point", + "desc": "computes the double factorial as a single-precision floating-point", + "short_desc": "factorial2f", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float32" + }, + "domain": [ + { + "min": 0, + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/discrete-uniform", + "parameters": [ + 0, + 100 + ] + }, + "example_values": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "factorial2f", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float32" + } + }, + "keywords": [ + "factorial2f", + "dfact" + ], + "extra_keywords": [] + } + } } From 1ef896749feaaa506aff7081a7b47ec5317ef242 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 6 Sep 2025 18:21:16 -0700 Subject: [PATCH 2/6] fix: use correct base alias Signed-off-by: Athan --- .../@stdlib/math/base/special/factorial2f/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json b/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json index 84e478c42401..f1b7f6d6acb1 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json +++ b/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json @@ -71,7 +71,7 @@ "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", - "base_alias": "factorial2f", + "base_alias": "factorial2", "alias": "factorial2f", "pkg_desc": "compute the double factorial as a single-precision floating-point", "desc": "computes the double factorial as a single-precision floating-point", From a9029e1e8d60768a1ed58a5fd45bab7aead55d65 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 6 Sep 2025 18:21:41 -0700 Subject: [PATCH 3/6] docs: fix descriptions Signed-off-by: Athan --- .../@stdlib/math/base/special/factorial2f/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json b/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json index f1b7f6d6acb1..810249743e28 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json +++ b/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json @@ -73,8 +73,8 @@ "$schema": "math/base@v1.0", "base_alias": "factorial2", "alias": "factorial2f", - "pkg_desc": "compute the double factorial as a single-precision floating-point", - "desc": "computes the double factorial as a single-precision floating-point", + "pkg_desc": "compute the double factorial", + "desc": "computes the double factorial", "short_desc": "factorial2f", "parameters": [ { From b6290248bd97212fbb9cc9cf43904545814d51e7 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 6 Sep 2025 18:22:02 -0700 Subject: [PATCH 4/6] docs: fix description Signed-off-by: Athan --- .../@stdlib/math/base/special/factorial2f/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json b/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json index 810249743e28..f79885e557f5 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json +++ b/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json @@ -75,7 +75,7 @@ "alias": "factorial2f", "pkg_desc": "compute the double factorial", "desc": "computes the double factorial", - "short_desc": "factorial2f", + "short_desc": "double factorial", "parameters": [ { "name": "x", From 556c7a59a933290ef2dd7b77972c5de5e61cc1a8 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 6 Sep 2025 18:22:20 -0700 Subject: [PATCH 5/6] fix: update C type Signed-off-by: Athan --- .../@stdlib/math/base/special/factorial2f/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json b/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json index f79885e557f5..eaeecbe1d6f4 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json +++ b/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json @@ -83,7 +83,7 @@ "type": { "javascript": "number", "jsdoc": "number", - "c": "double", + "c": "float", "dtype": "float32" }, "domain": [ From 41fcc20d91611bfb837de6d6f3d39d8303687034 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 6 Sep 2025 18:22:58 -0700 Subject: [PATCH 6/6] chore: clean-up Signed-off-by: Athan --- .../@stdlib/math/base/special/factorial2f/package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json b/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json index eaeecbe1d6f4..c18ba786f2c2 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json +++ b/lib/node_modules/@stdlib/math/base/special/factorial2f/package.json @@ -125,17 +125,19 @@ ], "output_policy": "real_floating_point_and_generic", "returns": { - "desc": "factorial2f", + "desc": "double factorial", "type": { "javascript": "number", "jsdoc": "number", - "c": "double", + "c": "float", "dtype": "float32" } }, "keywords": [ "factorial2f", - "dfact" + "dfact", + "factorial", + "combinatorics" ], "extra_keywords": [] }