From 184e82ca4c913a01159b1c13e6f3e064a02b02d2 Mon Sep 17 00:00:00 2001 From: Aman Singh Date: Thu, 4 Dec 2025 15:38:58 +0530 Subject: [PATCH] Add structured package data for croundf --- .../math/base/special/croundf/package.json | 139 +++++++++++++++++- 1 file changed, 138 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/croundf/package.json b/lib/node_modules/@stdlib/math/base/special/croundf/package.json index c0409c0a8bce..384dae1a8739 100644 --- a/lib/node_modules/@stdlib/math/base/special/croundf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/croundf/package.json @@ -67,5 +67,142 @@ "complex", "cmplx", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "cround", + "alias": "croundf", + "pkg_desc": "round each component of a single-precision complex floating-point number to the nearest integer", + "desc": "rounds each component of a single-precision complex floating-point number to the nearest integer", + "short_desc": "round each component of a complex number to the nearest integer", + "parameters": [ + { + "name": "z", + "desc": "input value", + "type": { + "javascript": "Complex64", + "jsdoc": "Complex64", + "c": "stdlib_complex64_t", + "dtype": "complex64" + }, + "domain": null, + "rand": { + "prng": "random/base/uniform", + "parameters": [ + [ + -10, + 10 + ], + [ + -10, + 10 + ] + ] + }, + "example_values": [ + { + "re": 5.5, + "im": 3.3 + }, + { + "re": -4.2, + "im": 1.7 + }, + { + "re": 0.8, + "im": -0.4 + }, + { + "re": -1.5, + "im": 2.9 + }, + { + "re": 3.1, + "im": -3.7 + }, + { + "re": -2.6, + "im": 0.5 + }, + { + "re": 1.9, + "im": -1.1 + }, + { + "re": -0.3, + "im": 4.8 + }, + { + "re": 2.4, + "im": 2.6 + }, + { + "re": -3.9, + "im": -2.2 + }, + { + "re": 0.1, + "im": 1.5 + }, + { + "re": -1.7, + "im": -0.9 + }, + { + "re": 4.6, + "im": 3.5 + }, + { + "re": -5.1, + "im": 0.2 + }, + { + "re": 1.3, + "im": -4.4 + }, + { + "re": -0.6, + "im": 2.1 + }, + { + "re": 3.7, + "im": -1.8 + }, + { + "re": -2.3, + "im": 3.9 + }, + { + "re": 0.5, + "im": -0.7 + }, + { + "re": -4.8, + "im": 1.2 + } + ] + } + ], + "returns": { + "desc": "result", + "type": { + "javascript": "Complex64", + "jsdoc": "Complex64", + "c": "stdlib_complex64_t", + "dtype": "complex64" + } + }, + "keywords": [ + "cround", + "round", + "floor", + "ceil", + "integer", + "complex", + "cmplx" + ], + "extra_keywords": [] + } + } }