From 07ab6705ac44c36f8b4b11d7d2ca892b28b47feb Mon Sep 17 00:00:00 2001 From: nakul-krishnakumar Date: Wed, 22 Oct 2025 23:35:35 +0530 Subject: [PATCH 1/5] chore: add structured package data for `math/base/special/cabs` --- 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/cabs/package.json | 138 +++++++++++++++++- 1 file changed, 137 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabs/package.json b/lib/node_modules/@stdlib/math/base/special/cabs/package.json index f601f00a8c2e..f98436f7a739 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabs/package.json @@ -66,5 +66,141 @@ "complex", "cmplx", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "cabs", + "alias": "cabs", + "pkg_desc": "compute the absolute value of a complex number", + "desc": "computes the absolute value of a complex number", + "short_desc": "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 + } + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "absolute value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "abs", + "absolute", + "magnitude", + "modulus", + "complex", + "cmplx", + "number" + ], + "extra_keywords": [ + "math.abs" + ] + } + } } From 0edf6d10d8d9a684d4d211316ce7d0dc0f5e4192 Mon Sep 17 00:00:00 2001 From: nakul-krishnakumar Date: Thu, 23 Oct 2025 19:41:01 +0530 Subject: [PATCH 2/5] chore: updated according to code review --- 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 --- --- .../@stdlib/math/base/special/cabs/package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabs/package.json b/lib/node_modules/@stdlib/math/base/special/cabs/package.json index f98436f7a739..7b871797d388 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabs/package.json @@ -71,7 +71,7 @@ "scaffold": { "$schema": "math/base@v1.0", "base_alias": "cabs", - "alias": "cabs", + "alias": "abs", "pkg_desc": "compute the absolute value of a complex number", "desc": "computes the absolute value of a complex number", "short_desc": "absolute value", @@ -175,6 +175,10 @@ { "re": 0.99, "im": -0.99 + }, + { + "re": 0.43, + "im": 0.91 } ] } @@ -194,6 +198,7 @@ "absolute", "magnitude", "modulus", + "distance", "complex", "cmplx", "number" From dcff014ae978e34dc889d2375561d8ff608a2653 Mon Sep 17 00:00:00 2001 From: nakul-krishnakumar Date: Fri, 24 Oct 2025 00:52:59 +0530 Subject: [PATCH 3/5] chore: update according to code review --- 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/cabs/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabs/package.json b/lib/node_modules/@stdlib/math/base/special/cabs/package.json index 7b871797d388..0dcfc6d0a9ca 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabs/package.json @@ -70,8 +70,8 @@ "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", - "base_alias": "cabs", - "alias": "abs", + "base_alias": "abs", + "alias": "cabs", "pkg_desc": "compute the absolute value of a complex number", "desc": "computes the absolute value of a complex number", "short_desc": "absolute value", From 90295ae2fd77065a9a9b1e30ea61090ebb696a55 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 27 Oct 2025 19:20:53 -0700 Subject: [PATCH 4/5] docs: update descriptions Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/cabs/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabs/package.json b/lib/node_modules/@stdlib/math/base/special/cabs/package.json index 0dcfc6d0a9ca..9963a6427200 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabs/package.json @@ -72,8 +72,8 @@ "$schema": "math/base@v1.0", "base_alias": "abs", "alias": "cabs", - "pkg_desc": "compute the absolute value of a complex number", - "desc": "computes the absolute value of a complex number", + "pkg_desc": "compute the absolute value of a double-precision floating-point complex number", + "desc": "computes the absolute value of a double-precision floating-point complex number", "short_desc": "absolute value", "parameters": [ { From 6934cb3d3a5a8dbcbb52711879099f50ab25cec1 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 27 Oct 2025 19:21:36 -0700 Subject: [PATCH 5/5] docs: update descriptions Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/cabs/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cabs/package.json b/lib/node_modules/@stdlib/math/base/special/cabs/package.json index 9963a6427200..9f5f0c8e6df3 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cabs/package.json @@ -72,8 +72,8 @@ "$schema": "math/base@v1.0", "base_alias": "abs", "alias": "cabs", - "pkg_desc": "compute the absolute value of a double-precision floating-point complex number", - "desc": "computes the absolute value of a double-precision floating-point complex number", + "pkg_desc": "compute the absolute value of a double-precision complex floating-point number", + "desc": "computes the absolute value of a double-precision complex floating-point number", "short_desc": "absolute value", "parameters": [ {