From 3ce6cdea83cade9ec0a18f4d24c7efa419ad02c0 Mon Sep 17 00:00:00 2001 From: kaustubh Date: Sun, 23 Nov 2025 00:53:01 +0530 Subject: [PATCH 1/3] chore : add structured package data for math/base/special/cfloor --- .../math/base/special/cfloor/package.json | 99 ++++++++++++++++++- 1 file changed, 98 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cfloor/package.json b/lib/node_modules/@stdlib/math/base/special/cfloor/package.json index 9f551d2f90ca..d7c6cc5fe9b5 100644 --- a/lib/node_modules/@stdlib/math/base/special/cfloor/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cfloor/package.json @@ -66,5 +66,102 @@ "complex", "cmplx", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "cfloor", + "alias": "cfloor", + "pkg_desc": "round a double-precision complex floating-point number toward negative infinity", + "desc": "rounds a double-precision complex floating-point number toward negative infinity", + "short_desc": "round a complex number toward negative infinity", + "parameters": [ + { + "name": "z", + "desc": "input value", + "type": { + "javascript": "Complex128", + "jsdoc": "Complex128", + "c": "double complex", + "dtype": "complex128" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -10, + 10 + ] + }, + "example_values": [ + { + "re": -4.2, + "im": 5.5 + }, + { + "re": 9.99999, + "im": 0.1 + }, + { + "re": 0.0, + "im": 0.0 + }, + { + "re": -1.5, + "im": 2.8 + }, + { + "re": 3.7, + "im": -6.4 + }, + { + "re": -8.1, + "im": -3.9 + }, + { + "re": 12.6, + "im": 7.3 + }, + { + "re": -5.5, + "im": 1.1 + }, + { + "re": 2.2, + "im": -4.7 + }, + { + "re": -7.8, + "im": 9.2 + } + ] + } + ], + "returns": { + "desc": "result", + "type": { + "javascript": "Complex128", + "jsdoc": "Complex128", + "c": "double complex", + "dtype": "complex128" + } + }, + "keywords": [ + "floor", + "round", + "complex", + "cmplx", + "number" + ], + "extra_keywords": [ + "math.floor", + "cfloor" + ] + } + } } From 487e04885665b9af76cd284bb8555c2b810a51d6 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 26 Nov 2025 01:37:15 -0800 Subject: [PATCH 2/3] chore: update meta data Signed-off-by: Athan --- .../math/base/special/cfloor/package.json | 113 ++++++++++++------ 1 file changed, 74 insertions(+), 39 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cfloor/package.json b/lib/node_modules/@stdlib/math/base/special/cfloor/package.json index d7c6cc5fe9b5..00ae6c411d77 100644 --- a/lib/node_modules/@stdlib/math/base/special/cfloor/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cfloor/package.json @@ -1,7 +1,7 @@ { "name": "@stdlib/math/base/special/cfloor", "version": "0.0.0", - "description": "Round a double-precision complex floating-point number toward negative infinity.", + "description": "Round each component of a double-precision complex floating-point number toward negative infinity.", "license": "Apache-2.0", "author": { "name": "The Stdlib Authors", @@ -72,9 +72,9 @@ "$schema": "math/base@v1.0", "base_alias": "cfloor", "alias": "cfloor", - "pkg_desc": "round a double-precision complex floating-point number toward negative infinity", - "desc": "rounds a double-precision complex floating-point number toward negative infinity", - "short_desc": "round a complex number toward negative infinity", + "pkg_desc": "round each component of a double-precision complex floating-point number toward negative infinity", + "desc": "rounds each component a double-precision complex floating-point number toward negative infinity", + "short_desc": "", "parameters": [ { "name": "z", @@ -82,62 +82,98 @@ "type": { "javascript": "Complex128", "jsdoc": "Complex128", - "c": "double complex", + "c": "stdlib_complex128_t", "dtype": "complex128" }, - "domain": [ - { - "min": "-infinity", - "max": "infinity" - } - ], + "domain": null, "rand": { "prng": "random/base/uniform", "parameters": [ - -10, - 10 - ] + [ + -10, + 10 + ], + [ + -10, + 10 + ] }, "example_values": [ { - "re": -4.2, - "im": 5.5 + "re": -3.14, + "im": -1.5 + }, + { + "re": 0, + "im": 0 }, { - "re": 9.99999, - "im": 0.1 + "re": -1.5, + "im": 2.5 }, { - "re": 0.0, - "im": 0.0 + "re": 2.5, + "im": -1.5 }, { - "re": -1.5, - "im": 2.8 + "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": 3.7, - "im": -6.4 + "re": 2.45, + "im": -1.23 }, { - "re": -8.1, - "im": -3.9 + "re": 1.77, + "im": -3.14 }, { - "re": 12.6, - "im": 7.3 + "re": -7.5, + "im": 8.2 }, { - "re": -5.5, - "im": 1.1 + "re": 5.5, + "im": -12.3 }, { - "re": 2.2, - "im": -4.7 + "re": -15.8, + "im": 0.4 }, { - "re": -7.8, - "im": 9.2 + "re": 0.99, + "im": -0.99 } ] } @@ -147,20 +183,19 @@ "type": { "javascript": "Complex128", "jsdoc": "Complex128", - "c": "double complex", + "c": "stdlib_complex128_t", "dtype": "complex128" } }, "keywords": [ "floor", + "cfloor", "round", "complex", - "cmplx", - "number" + "cmplx" ], "extra_keywords": [ - "math.floor", - "cfloor" + "math.floor" ] } } From 87bda3c419041b0d2322c148b679e65d854198b5 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 26 Nov 2025 01:38:17 -0800 Subject: [PATCH 3/3] fix: add missing brace Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/cfloor/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/node_modules/@stdlib/math/base/special/cfloor/package.json b/lib/node_modules/@stdlib/math/base/special/cfloor/package.json index 00ae6c411d77..e6c055cc3ddc 100644 --- a/lib/node_modules/@stdlib/math/base/special/cfloor/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cfloor/package.json @@ -97,6 +97,7 @@ -10, 10 ] + ] }, "example_values": [ {