From 3c32a23b82e80909cecb2d5199d66e68efd5f6ef Mon Sep 17 00:00:00 2001 From: Sachin Pangal Date: Sun, 2 Nov 2025 23:57:04 +0530 Subject: [PATCH 1/5] chore: add structured package data for math/base/special/round --- .../math/base/special/round/package.json | 78 ++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/round/package.json b/lib/node_modules/@stdlib/math/base/special/round/package.json index 60d9cd66b904..0202a9bffa40 100644 --- a/lib/node_modules/@stdlib/math/base/special/round/package.json +++ b/lib/node_modules/@stdlib/math/base/special/round/package.json @@ -61,5 +61,81 @@ "integer", "nearest", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "round", + "alias": "round", + "pkg_desc": "round a numeric value to the nearest integer", + "desc": "rounds a numeric value to the nearest integer", + "short_desc": "rounds to nearest integer", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -10, + 10 + ] + }, + "example_values": [ + 64, + 27, + 0, + 0.1, + -9, + 8, + -1, + 125, + -10.2, + 11.3, + -12.4, + 3.5, + -1.6, + 15.7, + -16, + 17.9, + -188, + 19.11, + -200, + 21.15 + ] + } + ], + "output_policy": "same", + "returns": { + "desc": "function value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "round", + "integer", + "nearest", + "number" + ], + "extra_keywords": [ + "math.round" + ] + } + } } From 9b9c234298f7dab07e61a7c27ea1a58bd19b3804 Mon Sep 17 00:00:00 2001 From: Sachin Pangal Date: Mon, 3 Nov 2025 00:20:01 +0530 Subject: [PATCH 2/5] Add structured data for math/base/special/round2 --- .../math/base/special/round2/package.json | 80 ++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/round2/package.json b/lib/node_modules/@stdlib/math/base/special/round2/package.json index ebf4f2e2c2fe..7676045073f6 100644 --- a/lib/node_modules/@stdlib/math/base/special/round2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/round2/package.json @@ -63,5 +63,83 @@ "prevpow2", "nearest", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "round2", + "alias": "round2", + "pkg_desc": "round a numeric value to the nearest power of two on a linear scale", + "desc": "rounds a numeric value to the nearest power of two on a linear scale", + "short_desc": "rounds to nearest power of two", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -10, + 10 + ] + }, + "example_values": [ + 64, + 27, + 0, + 0.1, + -9, + 8, + -1, + 125, + -10.2, + 11.3, + -12.4, + 3.5, + -1.6, + 15.7, + -16, + 17.9, + -188, + 19.11, + -200, + 21.15 + ] + } + ], + "output_policy": "same", + "returns": { + "desc": "function value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "round", + "round2", + "nextpow2", + "prevpow2", + "nearest", + "number" + ], + "extra_keywords": [ + "math.round" + ] + } + } } From 03e6055862a2c58ec44d57c369736cd9bec1050f Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 2 Nov 2025 16:48:19 -0800 Subject: [PATCH 3/5] Discard changes to lib/node_modules/@stdlib/math/base/special/round/package.json --- .../math/base/special/round/package.json | 78 +------------------ 1 file changed, 1 insertion(+), 77 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/round/package.json b/lib/node_modules/@stdlib/math/base/special/round/package.json index 0202a9bffa40..60d9cd66b904 100644 --- a/lib/node_modules/@stdlib/math/base/special/round/package.json +++ b/lib/node_modules/@stdlib/math/base/special/round/package.json @@ -61,81 +61,5 @@ "integer", "nearest", "number" - ], - "__stdlib__": { - "scaffold": { - "$schema": "math/base@v1.0", - "base_alias": "round", - "alias": "round", - "pkg_desc": "round a numeric value to the nearest integer", - "desc": "rounds a numeric value to the nearest integer", - "short_desc": "rounds to nearest integer", - "parameters": [ - { - "name": "x", - "desc": "input value", - "type": { - "javascript": "number", - "jsdoc": "number", - "c": "double", - "dtype": "float64" - }, - "domain": [ - { - "min": "-infinity", - "max": "infinity" - } - ], - "rand": { - "prng": "random/base/uniform", - "parameters": [ - -10, - 10 - ] - }, - "example_values": [ - 64, - 27, - 0, - 0.1, - -9, - 8, - -1, - 125, - -10.2, - 11.3, - -12.4, - 3.5, - -1.6, - 15.7, - -16, - 17.9, - -188, - 19.11, - -200, - 21.15 - ] - } - ], - "output_policy": "same", - "returns": { - "desc": "function value", - "type": { - "javascript": "number", - "jsdoc": "number", - "c": "double", - "dtype": "float64" - } - }, - "keywords": [ - "round", - "integer", - "nearest", - "number" - ], - "extra_keywords": [ - "math.round" - ] - } - } + ] } From 5e1c3dd19bd332dbffc0bf8908bfd200d456a76a Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 2 Nov 2025 16:49:00 -0800 Subject: [PATCH 4/5] docs: update desc Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/round2/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/round2/package.json b/lib/node_modules/@stdlib/math/base/special/round2/package.json index 7676045073f6..ce140d88bceb 100644 --- a/lib/node_modules/@stdlib/math/base/special/round2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/round2/package.json @@ -71,7 +71,7 @@ "alias": "round2", "pkg_desc": "round a numeric value to the nearest power of two on a linear scale", "desc": "rounds a numeric value to the nearest power of two on a linear scale", - "short_desc": "rounds to nearest power of two", + "short_desc": "", "parameters": [ { "name": "x", From 3c6bdd1c9ae2368617d8f86b76f906aaa9c55326 Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 2 Nov 2025 16:49:32 -0800 Subject: [PATCH 5/5] chore: update keywords Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/round2/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/round2/package.json b/lib/node_modules/@stdlib/math/base/special/round2/package.json index ce140d88bceb..8ffea4c90d7d 100644 --- a/lib/node_modules/@stdlib/math/base/special/round2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/round2/package.json @@ -134,8 +134,7 @@ "round2", "nextpow2", "prevpow2", - "nearest", - "number" + "nearest" ], "extra_keywords": [ "math.round"