From a8fc98a859bafad3246874b35411ccf85f6c9b18 Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Thu, 30 Oct 2025 12:36:24 +0530 Subject: [PATCH 1/4] chore: add structured package data for math/base/special/sqrtf --- 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/sqrtf/package.json | 79 ++++++++++++++++++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json b/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json index 70c0cea65789..417512de14d5 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json @@ -63,5 +63,82 @@ "root", "power", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "sqrt", + "alias": "sqrtf", + "pkg_desc": "compute the principal square root of a single-precision floating-point number", + "desc": "computes the principal square root of a single-precision floating-point number", + "short_desc": "principal square root", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + }, + "domain": [ + { + "min": 0, + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + 0, + 100 + ] + }, + "example_values": [ + 0, + 0.01, + 0.25, + 0.5, + 1, + 2, + 3, + 4, + 9, + 16, + 25, + 36, + 49, + 64, + 81, + 100, + 0.1, + 10, + 50, + 99.99 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "square root", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + } + }, + "keywords": [ + "sqrtf", + "principal", + "square", + "root", + "power" + ], + "extra_keywords": [ + "math.sqrtf" + ] + } + } } From 5dcbc8d3fa3f7b54d626208e96d79c638e4a9056 Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 30 Oct 2025 12:50:48 -0700 Subject: [PATCH 2/4] chore: update keywords Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/sqrtf/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json b/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json index 417512de14d5..439ece189a8b 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json @@ -130,7 +130,7 @@ } }, "keywords": [ - "sqrtf", + "sqrt", "principal", "square", "root", From 7ce328ba1c94824137385cf2f82855af3b905310 Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 30 Oct 2025 12:51:03 -0700 Subject: [PATCH 3/4] chore: fix keyword Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/sqrtf/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json b/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json index 439ece189a8b..1b058dca29e1 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json @@ -137,7 +137,7 @@ "power" ], "extra_keywords": [ - "math.sqrtf" + "math.sqrt" ] } } From c71b1fc1ba4452082732ddf8a2b28353c636c7a4 Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 30 Oct 2025 12:51:35 -0700 Subject: [PATCH 4/4] chore: fix keyword Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/sqrtf/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json b/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json index 1b058dca29e1..fc6b116b22ed 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sqrtf/package.json @@ -56,7 +56,7 @@ "stdmath", "mathematics", "math", - "math.sqrtf", + "math.sqrt", "sqrtf", "principal", "square",