Skip to content

Commit 3cd43b8

Browse files
manvith2003kgryte
andauthored
chore: add structured package data for math/base/special/signum
PR-URL: #8352 Ref: #7924 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]>
1 parent 4fc251b commit 3cd43b8

File tree

1 file changed

+75
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/signum

1 file changed

+75
-1
lines changed

lib/node_modules/@stdlib/math/base/special/signum/package.json

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,79 @@
6464
"special function",
6565
"special",
6666
"function"
67-
]
67+
],
68+
"__stdlib__": {
69+
"scaffold": {
70+
"$schema": "math/[email protected]",
71+
"base_alias": "signum",
72+
"alias": "signum",
73+
"pkg_desc": "evaluate the signum function for a double-precision floating-point number",
74+
"desc": "evaluates the signum function for a double-precision floating-point number",
75+
"short_desc": "signum",
76+
"parameters": [
77+
{
78+
"name": "x",
79+
"desc": "input value",
80+
"type": {
81+
"javascript": "number",
82+
"jsdoc": "number",
83+
"c": "double",
84+
"dtype": "float64"
85+
},
86+
"domain": [
87+
{
88+
"min": "-infinity",
89+
"max": "infinity"
90+
}
91+
],
92+
"rand": {
93+
"prng": "random/base/uniform",
94+
"parameters": [
95+
-100,
96+
100
97+
]
98+
},
99+
"example_values": [
100+
-100,
101+
0.1,
102+
0.5,
103+
-50,
104+
-10,
105+
10,
106+
25,
107+
-5,
108+
-3.5,
109+
-1,
110+
-0.5,
111+
-0.1,
112+
0,
113+
1,
114+
3.5,
115+
5,
116+
50,
117+
75,
118+
100,
119+
-75
120+
]
121+
}
122+
],
123+
"output_policy": "real_floating_point_and_generic",
124+
"returns": {
125+
"desc": "signum",
126+
"type": {
127+
"javascript": "number",
128+
"jsdoc": "number",
129+
"c": "double",
130+
"dtype": "float64"
131+
}
132+
},
133+
"keywords": [
134+
"signum",
135+
"sign"
136+
],
137+
"extra_keywords": [
138+
"math.sign"
139+
]
140+
}
141+
}
68142
}

0 commit comments

Comments
 (0)