From 531a00a6569bb2e3e2f26f56578e71017e10e62b Mon Sep 17 00:00:00 2001 From: nakul-krishnakumar Date: Fri, 24 Oct 2025 00:42:40 +0530 Subject: [PATCH 1/4] chore: add structured package data for `math/base/special/cabs2` --- 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/cabs2/package.json | 143 +++++++++++++++++- 1 file changed, 142 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabs2/package.json b/lib/node_modules/@stdlib/math/base/special/cabs2/package.json index 6019d38e4bb3..e38aa646dedc 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabs2/package.json @@ -65,5 +65,146 @@ "complex", "cmplx", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "cabs2", + "alias": "abs", + "pkg_desc": "compute the squared absolute value of a complex number", + "desc": "computes the squared absolute value of a complex number", + "short_desc": "squared absolute value", + "parameters": [ + { + "name": "z", + "desc": "input value", + "type": { + "javascript": "Complex128", + "jsdoc": "Complex128", + "c": "stdlib_complex128_t", + "dtype": "complex128" + }, + "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": "double", + "dtype": "float64" + } + }, + "keywords": [ + "abs2", + "squared", + "absolute", + "magnitude", + "distance", + "complex", + "cmplx", + "number" + ], + "extra_keywords": [ + "math.abs" + ] + } + } } From 9320f6007cb658a5e29929a40392c667dc710ef7 Mon Sep 17 00:00:00 2001 From: nakul-krishnakumar Date: Fri, 24 Oct 2025 00:47:12 +0530 Subject: [PATCH 2/4] chore: update base_alias --- 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 --- --- lib/node_modules/@stdlib/math/base/special/cabs2/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabs2/package.json b/lib/node_modules/@stdlib/math/base/special/cabs2/package.json index e38aa646dedc..82246418de61 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabs2/package.json @@ -69,8 +69,8 @@ "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", - "base_alias": "cabs2", - "alias": "abs", + "base_alias": "abs", + "alias": "cabs2", "pkg_desc": "compute the squared absolute value of a complex number", "desc": "computes the squared absolute value of a complex number", "short_desc": "squared absolute value", From 5a24829449ee29396942a7657ffe339d2cc4bb3c Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 20:54:06 -0700 Subject: [PATCH 3/4] chore: update alias Co-authored-by: Gunj Joshi Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/cabs2/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabs2/package.json b/lib/node_modules/@stdlib/math/base/special/cabs2/package.json index 82246418de61..03a060ebc8f1 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabs2/package.json @@ -69,7 +69,7 @@ "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", - "base_alias": "abs", + "base_alias": "abs2", "alias": "cabs2", "pkg_desc": "compute the squared absolute value of a complex number", "desc": "computes the squared absolute value of a complex number", From 7029138a90ac791d5f9577be97973a3bd7d605c2 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 20:55:04 -0700 Subject: [PATCH 4/4] chore: update keywords Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/cabs2/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabs2/package.json b/lib/node_modules/@stdlib/math/base/special/cabs2/package.json index 03a060ebc8f1..dfcafdb46c7a 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabs2/package.json @@ -199,8 +199,7 @@ "magnitude", "distance", "complex", - "cmplx", - "number" + "cmplx" ], "extra_keywords": [ "math.abs"