Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
135 changes: 134 additions & 1 deletion lib/node_modules/@stdlib/math/base/special/cceil/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,138 @@
"complex",
"cmplx",
"number"
]
],
"__stdlib__": {
"scaffold": {
"$schema": "math/[email protected]",
"base_alias": "ceil",
"alias": "cceil",
"pkg_desc": "round each component of a double-precision complex floating-point number toward positive infinity",
"desc": "rounds each component of a double-precision complex floating-point number toward positive infinity",
"short_desc": "complex ceil",
"parameters": [
{
"name": "z",
"desc": "input value",
"type": {
"javascript": "Complex128",
"jsdoc": "Complex128",
"c": "stdlib_complex128_t",
"dtype": "complex128"
},
"domain": [
{
"min": "-infinity",
"max": "infinity"
}
],
"rand": {
"prng": "random/base/uniform",
"parameters": [
-10,
10
]
},
Comment on lines +88 to +100
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These ones are a bit tricky, as we don't have a PRNG capable of generating complex numbers. This comes up enough that we should go ahead and do this. And once done, we should update this PR accordingly. random/base/uniform doesn't generate complex; only reals. Complex numbers don't have a single infinity. They have many. Etc. Accordingly, we'd likely need to specify the limits of each component individually, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, got it! Appreciate the review.

"example_values": [
{
"re": -3.14,
"im": -1.5
},
{
"re": 0,
"im": 0
},
{
"re": -1.5,
"im": 2.5
},
{
"re": 2.5,
"im": -1.5
},
{
"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": 2.45,
"im": -1.23
},
{
"re": 1.77,
"im": -3.14
},
{
"re": -7.5,
"im": 8.2
},
{
"re": 5.5,
"im": -12.3
},
{
"re": -15.8,
"im": 0.4
},
{
"re": 0.99,
"im": -0.99
}
]
}
],
"returns": {
"desc": "rounded complex value",
"type": {
"javascript": "Complex128",
"jsdoc": "Complex128",
"c": "stdlib_complex128_t",
"dtype": "complex128"
}
},
"keywords": [
"ceil",
"cceil",
"round",
"complex",
"complex128",
"positive infinity"
],
"extra_keywords": [
"math.ceil"
]
}
}
}