From cd0ab575cfb85657e118606d3c179909697f057d Mon Sep 17 00:00:00 2001 From: kgryte <2643044+kgryte@users.noreply.github.com> Date: Thu, 4 Dec 2025 10:43:19 +0000 Subject: [PATCH] feat: update math scaffold databases Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> --- .../@stdlib/math/special/data/unary.json | 272 +++++++++++++++++- 1 file changed, 270 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/special/data/unary.json b/lib/node_modules/@stdlib/math/special/data/unary.json index 42e5e54ae427..e6ad41a1c2f9 100644 --- a/lib/node_modules/@stdlib/math/special/data/unary.json +++ b/lib/node_modules/@stdlib/math/special/data/unary.json @@ -14215,8 +14215,276 @@ "math.round" ] }, - "@stdlib/math/base/special/croundf": {}, - "@stdlib/math/base/special/cround": {}, + "@stdlib/math/base/special/croundf": { + "$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": [] + }, + "@stdlib/math/base/special/cround": { + "$schema": "math/base@v1.0", + "base_alias": "cround", + "alias": "cround", + "pkg_desc": "round each component of a double-precision complex floating-point number to the nearest integer", + "desc": "rounds each component of a double-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": "Complex128", + "jsdoc": "Complex128", + "c": "stdlib_complex128_t", + "dtype": "complex128" + }, + "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": "Complex128", + "jsdoc": "Complex128", + "c": "stdlib_complex128_t", + "dtype": "complex128" + } + }, + "keywords": [ + "cround", + "round", + "floor", + "ceil", + "integer", + "complex", + "cmplx" + ], + "extra_keywords": [] + }, "@stdlib/math/base/special/round-nearest-even": { "$schema": "math/base@v1.0", "base_alias": "roundNearestEven",