From a50c21d1558a8d791de642d819e8f9f8aca5836f Mon Sep 17 00:00:00 2001 From: nakul-krishnakumar Date: Tue, 4 Nov 2025 18:21:17 +0530 Subject: [PATCH 01/12] chore: add structured package data for `math/base/special/inv` --- 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/inv/package.json | 81 ++++++++++++++++++- 1 file changed, 80 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/inv/package.json b/lib/node_modules/@stdlib/math/base/special/inv/package.json index 51493b2b23cf..a1f7df39a1f7 100644 --- a/lib/node_modules/@stdlib/math/base/special/inv/package.json +++ b/lib/node_modules/@stdlib/math/base/special/inv/package.json @@ -65,5 +65,84 @@ "double", "dbl" ], - "__stdlib__": {} + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "inv", + "alias": "inv", + "pkg_desc": "compute the multiplicative inverse of a number", + "desc": "computes the multiplicative inverse of a number", + "short_desc": "multiplicative inverse", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "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": "multiplicative inverse", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "inv", + "multiplicative", + "inverse", + "reciprocal", + "number", + "double-precision", + "double", + "dbl" + ], + "extra_keywords": [ + "math.pow" + ] + } + } } From 4a8d6789afff6d74da22013f38c1206805a4e590 Mon Sep 17 00:00:00 2001 From: nakul-krishnakumar Date: Tue, 4 Nov 2025 18:24:12 +0530 Subject: [PATCH 02/12] chore: update domain value --- 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/inv/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/inv/package.json b/lib/node_modules/@stdlib/math/base/special/inv/package.json index a1f7df39a1f7..b8a97e17a1b4 100644 --- a/lib/node_modules/@stdlib/math/base/special/inv/package.json +++ b/lib/node_modules/@stdlib/math/base/special/inv/package.json @@ -85,7 +85,7 @@ }, "domain": [ { - "min": 0, + "min": "-infinity", "max": "infinity" } ], From 39b08d67c0de5938ac359f47ba099307abff4683 Mon Sep 17 00:00:00 2001 From: nakul-krishnakumar Date: Tue, 4 Nov 2025 18:25:52 +0530 Subject: [PATCH 03/12] chore: update prng parameters --- 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/inv/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/inv/package.json b/lib/node_modules/@stdlib/math/base/special/inv/package.json index b8a97e17a1b4..d8589cfa692e 100644 --- a/lib/node_modules/@stdlib/math/base/special/inv/package.json +++ b/lib/node_modules/@stdlib/math/base/special/inv/package.json @@ -92,8 +92,8 @@ "rand": { "prng": "random/base/uniform", "parameters": [ - 0, - 100 + -10, + 10 ] }, "example_values": [ From 0082266bc35019f73cb4f4e407c43410b7d1de94 Mon Sep 17 00:00:00 2001 From: nakul-krishnakumar Date: Tue, 4 Nov 2025 18:26:56 +0530 Subject: [PATCH 04/12] chore: add structured package data for `math/base/special/invf` --- 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/invf/package.json | 81 ++++++++++++++++++- 1 file changed, 80 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/invf/package.json b/lib/node_modules/@stdlib/math/base/special/invf/package.json index e91d428ff963..0545cbb8a5d8 100644 --- a/lib/node_modules/@stdlib/math/base/special/invf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/invf/package.json @@ -65,5 +65,84 @@ "float", "single" ], - "__stdlib__": {} + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "inv", + "alias": "invf", + "pkg_desc": "compute the multiplicative inverse of a number", + "desc": "computes the multiplicative inverse of a number", + "short_desc": "multiplicative inverse", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -10, + 10 + ] + }, + "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": "multiplicative inverse", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + } + }, + "keywords": [ + "invf", + "multiplicative", + "inverse", + "reciprocal", + "number", + "single-precision", + "float", + "single" + ], + "extra_keywords": [ + "math.pow" + ] + } + } } From 49d0bf3bd865c30bf767a19567c09482e384c1c5 Mon Sep 17 00:00:00 2001 From: nakul-krishnakumar Date: Tue, 4 Nov 2025 18:39:24 +0530 Subject: [PATCH 05/12] chore: update indentation --- 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/inv/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/inv/package.json b/lib/node_modules/@stdlib/math/base/special/inv/package.json index d8589cfa692e..445ee5622373 100644 --- a/lib/node_modules/@stdlib/math/base/special/inv/package.json +++ b/lib/node_modules/@stdlib/math/base/special/inv/package.json @@ -65,7 +65,7 @@ "double", "dbl" ], - "__stdlib__": { + "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", "base_alias": "inv", From 3fa9a068af5af2c19d6e136e989e65ae5fbb34b1 Mon Sep 17 00:00:00 2001 From: nakul-krishnakumar Date: Tue, 4 Nov 2025 18:40:19 +0530 Subject: [PATCH 06/12] chore: add structured package data for `math/base/special/labs` --- 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/labs/package.json | 85 ++++++++++++++++++- 1 file changed, 84 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/labs/package.json b/lib/node_modules/@stdlib/math/base/special/labs/package.json index af20366e7fd5..1e8257445f24 100644 --- a/lib/node_modules/@stdlib/math/base/special/labs/package.json +++ b/lib/node_modules/@stdlib/math/base/special/labs/package.json @@ -68,5 +68,88 @@ "32-bit", "32bit", "long" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "abs", + "alias": "labs", + "pkg_desc": "compute an absolute value of a signed 32-bit integer", + "desc": "computes an absolute value of a signed 32-bit integer", + "short_desc": "absolute value", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -10, + 10 + ] + }, + "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": "absolute value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + } + }, + "keywords": [ + "abs", + "labs", + "absolute", + "magnitude", + "value", + "integer", + "int", + "int32", + "32-bit", + "32bit", + "long" + ], + "extra_keywords": [ + "math.abs" + ] + } + } } From 96ccaf763c9e7e016aef40ec718c00df68eb56d8 Mon Sep 17 00:00:00 2001 From: Athan Date: Tue, 4 Nov 2025 19:27:29 -0800 Subject: [PATCH 07/12] chore: update keywords Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/inv/package.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/inv/package.json b/lib/node_modules/@stdlib/math/base/special/inv/package.json index 445ee5622373..b8e1d128112b 100644 --- a/lib/node_modules/@stdlib/math/base/special/inv/package.json +++ b/lib/node_modules/@stdlib/math/base/special/inv/package.json @@ -134,11 +134,7 @@ "inv", "multiplicative", "inverse", - "reciprocal", - "number", - "double-precision", - "double", - "dbl" + "reciprocal" ], "extra_keywords": [ "math.pow" From 56cd5062f70533173817d28c302116384d76b653 Mon Sep 17 00:00:00 2001 From: Athan Date: Tue, 4 Nov 2025 19:28:16 -0800 Subject: [PATCH 08/12] chore: update keywords Signed-off-by: Athan --- .../@stdlib/math/base/special/invf/package.json | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/invf/package.json b/lib/node_modules/@stdlib/math/base/special/invf/package.json index 0545cbb8a5d8..c09d6757e9c2 100644 --- a/lib/node_modules/@stdlib/math/base/special/invf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/invf/package.json @@ -56,7 +56,7 @@ "stdmath", "mathematics", "math", - "invf", + "inv", "multiplicative", "inverse", "reciprocal", @@ -131,14 +131,10 @@ } }, "keywords": [ - "invf", + "inv", "multiplicative", "inverse", - "reciprocal", - "number", - "single-precision", - "float", - "single" + "reciprocal" ], "extra_keywords": [ "math.pow" From 9762d4d158ab82ac3c4b0a403c37425a93fdeab4 Mon Sep 17 00:00:00 2001 From: Athan Date: Tue, 4 Nov 2025 19:29:34 -0800 Subject: [PATCH 09/12] docs: fix dtypes Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/labs/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/labs/package.json b/lib/node_modules/@stdlib/math/base/special/labs/package.json index 1e8257445f24..da9527c6ca36 100644 --- a/lib/node_modules/@stdlib/math/base/special/labs/package.json +++ b/lib/node_modules/@stdlib/math/base/special/labs/package.json @@ -84,8 +84,8 @@ "type": { "javascript": "number", "jsdoc": "number", - "c": "float", - "dtype": "float32" + "c": "int32_t", + "dtype": "int32" }, "domain": [ { From 585f68f0ff34200a0e16305bd01a3551afcebb98 Mon Sep 17 00:00:00 2001 From: Athan Date: Tue, 4 Nov 2025 19:29:54 -0800 Subject: [PATCH 10/12] docs: fix type Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/labs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/labs/package.json b/lib/node_modules/@stdlib/math/base/special/labs/package.json index da9527c6ca36..2bc09340a789 100644 --- a/lib/node_modules/@stdlib/math/base/special/labs/package.json +++ b/lib/node_modules/@stdlib/math/base/special/labs/package.json @@ -83,7 +83,7 @@ "desc": "input value", "type": { "javascript": "number", - "jsdoc": "number", + "jsdoc": "integer", "c": "int32_t", "dtype": "int32" }, From 42c062455a42f63141e606e733ae9bd0297fabbc Mon Sep 17 00:00:00 2001 From: Athan Date: Tue, 4 Nov 2025 19:30:20 -0800 Subject: [PATCH 11/12] chore: fix PRNG Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/labs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/labs/package.json b/lib/node_modules/@stdlib/math/base/special/labs/package.json index 2bc09340a789..9f06e76bb2cc 100644 --- a/lib/node_modules/@stdlib/math/base/special/labs/package.json +++ b/lib/node_modules/@stdlib/math/base/special/labs/package.json @@ -94,7 +94,7 @@ } ], "rand": { - "prng": "random/base/uniform", + "prng": "random/base/discrete-uniform", "parameters": [ -10, 10 From b4a5ec3fc4340b77dc18a349b265ff31781aa523 Mon Sep 17 00:00:00 2001 From: Athan Date: Tue, 4 Nov 2025 19:31:53 -0800 Subject: [PATCH 12/12] chore: update config Signed-off-by: Athan --- .../math/base/special/labs/package.json | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/labs/package.json b/lib/node_modules/@stdlib/math/base/special/labs/package.json index 9f06e76bb2cc..13b121cd0950 100644 --- a/lib/node_modules/@stdlib/math/base/special/labs/package.json +++ b/lib/node_modules/@stdlib/math/base/special/labs/package.json @@ -102,9 +102,9 @@ }, "example_values": [ 0, - -0.01, - 0.25, - 0.5, + -5, + 2, + -10, -1, 2, 3, @@ -117,10 +117,10 @@ 64, 81, 100, - 0.1, + -99, 10, -50, - 99.99 + 98 ] } ], @@ -129,23 +129,16 @@ "desc": "absolute value", "type": { "javascript": "number", - "jsdoc": "number", - "c": "float", - "dtype": "float32" + "jsdoc": "integer", + "c": "int32_t", + "dtype": "int32" } }, "keywords": [ "abs", "labs", "absolute", - "magnitude", - "value", - "integer", - "int", - "int32", - "32-bit", - "32bit", - "long" + "magnitude" ], "extra_keywords": [ "math.abs"