From edf231456e40453ac4c404d4cfbb06bebf19fdb3 Mon Sep 17 00:00:00 2001 From: iampratik13 Date: Fri, 7 Nov 2025 23:25:29 +0530 Subject: [PATCH 1/2] add structured package data gammasgnf --- .../math/base/special/gammasgnf/package.json | 80 ++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/gammasgnf/package.json b/lib/node_modules/@stdlib/math/base/special/gammasgnf/package.json index 6b96f7efa96e..f72cbaf267a0 100644 --- a/lib/node_modules/@stdlib/math/base/special/gammasgnf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/gammasgnf/package.json @@ -63,5 +63,83 @@ "float32", "sign", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "gammasgn", + "alias": "gammasgnf", + "pkg_desc": "compute the sign of the gamma function for a single-precision floating-point number", + "desc": "computes the sign of the gamma function for a single-precision floating-point number", + "short_desc": "sign of the gamma function (float32)", + "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": [ + 1, + 2, + 3, + 4, + 5, + 0.5, + 1.5, + 2.5, + -0.5, + -1.5, + -2.5, + -3.5, + 0, + -1, + -2, + -3, + 10, + -10.5, + 0.1, + -0.1 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "sign of the gamma function", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + } + }, + "keywords": [ + "gamma", + "sign", + "gammasgn", + "special", + "function" + ], + "extra_keywords": [ + "float32", + "single-precision" + ] + } + } } From 1821bb4f6d09487c6c44ea06d8de2ef1631b003d Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 8 Nov 2025 13:37:39 -0800 Subject: [PATCH 2/2] chore: clean-up Signed-off-by: Athan --- .../math/base/special/gammasgnf/package.json | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/gammasgnf/package.json b/lib/node_modules/@stdlib/math/base/special/gammasgnf/package.json index f72cbaf267a0..5a6f87dcefae 100644 --- a/lib/node_modules/@stdlib/math/base/special/gammasgnf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/gammasgnf/package.json @@ -71,7 +71,7 @@ "alias": "gammasgnf", "pkg_desc": "compute the sign of the gamma function for a single-precision floating-point number", "desc": "computes the sign of the gamma function for a single-precision floating-point number", - "short_desc": "sign of the gamma function (float32)", + "short_desc": "sign of the gamma function", "parameters": [ { "name": "x", @@ -97,20 +97,20 @@ }, "example_values": [ 1, + -0.5, + -1.5, + 1.5, 2, + -2, 3, 4, 5, 0.5, - 1.5, 2.5, - -0.5, - -1.5, -2.5, -3.5, 0, -1, - -2, -3, 10, -10.5, @@ -132,14 +132,9 @@ "keywords": [ "gamma", "sign", - "gammasgn", - "special", - "function" + "gammasgn" ], - "extra_keywords": [ - "float32", - "single-precision" - ] + "extra_keywords": [] } } }