Skip to content
Open
Changes from all 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
144 changes: 143 additions & 1 deletion lib/node_modules/@stdlib/math/base/special/cabs2f/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,147 @@
"complex",
"cmplx",
"number"
]
],
"__stdlib__": {
"scaffold": {
"$schema": "math/[email protected]",
"base_alias": "abs",
"alias": "cabs2f",
"pkg_desc": "compute the squared absolute value of a single-precision complex number",
"desc": "computes the squared absolute value of a single-precision complex number",
"short_desc": "squared absolute value",
"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": -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
},
{
"re": 0.43,
"im": 0.91
}
]
}
],
"output_policy": "real_floating_point_and_generic",
"returns": {
"desc": "absolute value",
"type": {
"javascript": "number",
"jsdoc": "number",
"c": "float",
"dtype": "float32"
}
},
"keywords": [
"abs2",
"abs2f",
"squared",
"absolute",
"magnitude",
"distance",
"complex",
"cmplx",
"number"
],
"extra_keywords": [
"math.abs"
]
}
}
}