From fc27c3b8f8fedce6eb40c2d556b527815d5546af Mon Sep 17 00:00:00 2001 From: nakul-krishnakumar Date: Fri, 24 Oct 2025 01:01:16 +0530 Subject: [PATCH 1/5] chore: add structured package data for `math/base/special/cabsf` --- 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/cabsf/package.json | 144 +++++++++++++++++- 1 file changed, 143 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabsf/package.json b/lib/node_modules/@stdlib/math/base/special/cabsf/package.json index 178d7cfdf8bd..e1e540a41654 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabsf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabsf/package.json @@ -66,5 +66,147 @@ "complex", "cmplx", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "cabs", + "alias": "cabsf", + "pkg_desc": "compute the absolute value of a single-precision complex number", + "desc": "computes the absolute value of a single-precision complex number", + "short_desc": "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": [ + "abs", + "absolute", + "magnitude", + "modulus", + "distance", + "complex", + "cmplx", + "number" + ], + "extra_keywords": [ + "math.abs" + ] + } + } } + From 538e3434508e19fbd3fb625d20e9a0a9b14c173d Mon Sep 17 00:00:00 2001 From: Nakul Krishnakumar Date: Fri, 24 Oct 2025 18:07:12 +0530 Subject: [PATCH 2/5] chore: fix formatting in package.json for cabsf Signed-off-by: Nakul Krishnakumar --- lib/node_modules/@stdlib/math/base/special/cabsf/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabsf/package.json b/lib/node_modules/@stdlib/math/base/special/cabsf/package.json index e1e540a41654..54ba7c43697d 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabsf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabsf/package.json @@ -66,7 +66,7 @@ "complex", "cmplx", "number" - ], + ], "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", From 941ff40811b26a1ccb2fd7f96d0f7708d461ac03 Mon Sep 17 00:00:00 2001 From: Nakul Krishnakumar Date: Sat, 25 Oct 2025 20:06:31 +0530 Subject: [PATCH 3/5] chore: update according to code review Signed-off-by: Nakul Krishnakumar --- lib/node_modules/@stdlib/math/base/special/cabsf/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabsf/package.json b/lib/node_modules/@stdlib/math/base/special/cabsf/package.json index 54ba7c43697d..b6ab33a12004 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabsf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabsf/package.json @@ -70,7 +70,7 @@ "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", - "base_alias": "cabs", + "base_alias": "abs", "alias": "cabsf", "pkg_desc": "compute the absolute value of a single-precision complex number", "desc": "computes the absolute value of a single-precision complex number", @@ -209,4 +209,3 @@ } } } - From b7b66bf1143eca5a5640705766979f6c52ac7617 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 20:58:08 -0700 Subject: [PATCH 4/5] docs: update descriptions Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/cabsf/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabsf/package.json b/lib/node_modules/@stdlib/math/base/special/cabsf/package.json index b6ab33a12004..70803b443c34 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabsf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabsf/package.json @@ -72,8 +72,8 @@ "$schema": "math/base@v1.0", "base_alias": "abs", "alias": "cabsf", - "pkg_desc": "compute the absolute value of a single-precision complex number", - "desc": "computes the absolute value of a single-precision complex number", + "pkg_desc": "compute the absolute value of a single-precision complex floating-point number", + "desc": "computes the absolute value of a single-precision complex floating-point number", "short_desc": "absolute value", "parameters": [ { From cc48b903d48f8e8c98762ebe68f32a5634e44155 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 20:58:42 -0700 Subject: [PATCH 5/5] chore: update keywords Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/cabsf/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabsf/package.json b/lib/node_modules/@stdlib/math/base/special/cabsf/package.json index 70803b443c34..60c0a46ea36c 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabsf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabsf/package.json @@ -200,8 +200,7 @@ "modulus", "distance", "complex", - "cmplx", - "number" + "cmplx" ], "extra_keywords": [ "math.abs"