From 33ed9bdf5e40f890a094b69d82a64760b95a1eda Mon Sep 17 00:00:00 2001 From: nakul-krishnakumar Date: Sat, 25 Oct 2025 21:01:46 +0530 Subject: [PATCH 1/4] chore: add structured package data for `math/base/special/cabs2f` --- 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/cabs2f/package.json | 144 +++++++++++++++++- 1 file changed, 143 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json b/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json index 2c268482d0c5..4e1ead18fb8b 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json @@ -67,5 +67,147 @@ "complex", "cmplx", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "abs", + "alias": "cabs2f", + "pkg_desc": "compute the squared absolute value of a single-precision complex number", + "desc": "computes the squared absolute value of a single-precision complex number", + "short_desc": "squared absolute value", + "parameters": [ + { + "name": "z", + "desc": "input value", + "type": { + "javascript": "Complex64", + "jsdoc": "Complex64", + "c": "stdlib_complex64_t", + "dtype": "complex64" + }, + "domain": null, + "rand": { + "prng": "random/base/uniform", + "parameters": [ + [ + -10, + 10 + ], + [ + -10, + 10 + ] + ] + }, + "example_values": [ + { + "re": -3.14, + "im": -1.5 + }, + { + "re": 0, + "im": 0 + }, + { + "re": -1.5, + "im": 2.5 + }, + { + "re": 2.5, + "im": -1.5 + }, + { + "re": 0, + "im": -3.7 + }, + { + "re": 4.2, + "im": 0 + }, + { + "re": 21.2, + "im": 3 + }, + { + "re": 11, + "im": -5 + }, + { + "re": 33, + "im": -14.67 + }, + { + "re": -42, + "im": 9.3 + }, + { + "re": -3, + "im": 3 + }, + { + "re": 73, + "im": 31 + }, + { + "re": -2.45, + "im": 1.23 + }, + { + "re": 2.45, + "im": -1.23 + }, + { + "re": 1.77, + "im": -3.14 + }, + { + "re": -7.5, + "im": 8.2 + }, + { + "re": 5.5, + "im": -12.3 + }, + { + "re": -15.8, + "im": 0.4 + }, + { + "re": 0.99, + "im": -0.99 + }, + { + "re": 0.43, + "im": 0.91 + } + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "absolute value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + } + }, + "keywords": [ + "abs2", + "abs2f", + "squared", + "absolute", + "magnitude", + "distance", + "complex", + "cmplx", + "number" + ], + "extra_keywords": [ + "math.abs" + ] + } + } } From 0079a773661ba1a819aab572a011613eda5c1404 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 20:55:51 -0700 Subject: [PATCH 2/4] chore: fix alias Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/cabs2f/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json b/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json index 4e1ead18fb8b..ee931f4fee77 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json @@ -71,7 +71,7 @@ "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", - "base_alias": "abs", + "base_alias": "abs2", "alias": "cabs2f", "pkg_desc": "compute the squared absolute value of a single-precision complex number", "desc": "computes the squared absolute value of a single-precision complex number", From c8c4ba8d6cfd4845ca894ac34371ae2bcf67a772 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 20:56:23 -0700 Subject: [PATCH 3/4] docs: update descriptions Signed-off-by: Athan --- .../@stdlib/math/base/special/cabs2f/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json b/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json index ee931f4fee77..2da673a5500d 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json @@ -73,8 +73,8 @@ "$schema": "math/base@v1.0", "base_alias": "abs2", "alias": "cabs2f", - "pkg_desc": "compute the squared absolute value of a single-precision complex number", - "desc": "computes the squared absolute value of a single-precision complex number", + "pkg_desc": "compute the squared absolute value of a single-precision complex floating-point number", + "desc": "computes the squared absolute value of a single-precision complex floating-point number", "short_desc": "squared absolute value", "parameters": [ { From d660b0e3180f126d2c8b0db584ed7e7889f9fd8a Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 20:57:07 -0700 Subject: [PATCH 4/4] chore: update keywords Signed-off-by: Athan --- .../@stdlib/math/base/special/cabs2f/package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json b/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json index 2da673a5500d..8372531f6218 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabs2f/package.json @@ -196,14 +196,12 @@ }, "keywords": [ "abs2", - "abs2f", "squared", "absolute", "magnitude", "distance", "complex", - "cmplx", - "number" + "cmplx" ], "extra_keywords": [ "math.abs"