From 5a66c4423243578eb4b456418edd890f0c493b3f Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Sun, 2 Nov 2025 12:13:25 +0530 Subject: [PATCH 1/2] chore: add structured package data for math/base/special/signumf --- 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/signumf/package.json | 86 ++++++++++++++++++- 1 file changed, 85 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/signumf/package.json b/lib/node_modules/@stdlib/math/base/special/signumf/package.json index fc5519cd62e8..8788d60e05df 100644 --- a/lib/node_modules/@stdlib/math/base/special/signumf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/signumf/package.json @@ -69,5 +69,89 @@ "single-precision", "f32", "flt" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "signum", + "alias": "signumf", + "pkg_desc": "evaluate the signum function for a single-precision floating-point number", + "desc": "evaluates the signum function for a single-precision floating-point number", + "short_desc": "signum", + "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": [ + -100, + 100 + ] + }, + "example_values": [ + -100, + -50, + -10, + -5, + -3.5, + -1, + -0.5, + -0.1, + 0, + 0.1, + 0.5, + 1, + 3.5, + 5, + 10, + 25, + 50, + 75, + 100, + -75 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "signum", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + } + }, + "keywords": [ + "signum", + "sign", + "value", + "number", + "special function", + "special", + "function", + "float32", + "float", + "single-precision", + "f32", + "flt" + ], + "extra_keywords": [ + "math.sign" + ] + } + } } From f65feb735c109288863d3e9c8c7ef7f6948a3052 Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 2 Nov 2025 16:28:00 -0800 Subject: [PATCH 2/2] chore: clean-up Signed-off-by: Athan --- .../math/base/special/signumf/package.json | 22 +++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/signumf/package.json b/lib/node_modules/@stdlib/math/base/special/signumf/package.json index 8788d60e05df..b1d23bd2d5fc 100644 --- a/lib/node_modules/@stdlib/math/base/special/signumf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/signumf/package.json @@ -103,21 +103,21 @@ }, "example_values": [ -100, + 0.1, + 0.5, + 1, -50, -10, + 10, + 25, -5, -3.5, -1, -0.5, -0.1, 0, - 0.1, - 0.5, - 1, 3.5, 5, - 10, - 25, 50, 75, 100, @@ -137,17 +137,7 @@ }, "keywords": [ "signum", - "sign", - "value", - "number", - "special function", - "special", - "function", - "float32", - "float", - "single-precision", - "f32", - "flt" + "sign" ], "extra_keywords": [ "math.sign"