Skip to content

Commit 34e1b68

Browse files
manvith2003kgryte
andauthored
chore: add structured package data for math/base/special/log1mexp
PR-URL: stdlib-js#8388 Ref: stdlib-js#7924 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]>
1 parent e56d5cb commit 34e1b68

File tree

1 file changed

+79
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/log1mexp

1 file changed

+79
-1
lines changed

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

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,83 @@
6666
"logarithm",
6767
"log",
6868
"function"
69-
]
69+
],
70+
"__stdlib__": {
71+
"scaffold": {
72+
"$schema": "math/[email protected]",
73+
"base_alias": "log1mexp",
74+
"alias": "log1mexp",
75+
"pkg_desc": "evaluate the natural logarithm of 1-exp(-|x|)",
76+
"desc": "evaluates the natural logarithm of 1-exp(-|x|)",
77+
"short_desc": "natural logarithm of of 1-exp(-|x|)",
78+
"parameters": [
79+
{
80+
"name": "x",
81+
"desc": "input value",
82+
"type": {
83+
"javascript": "number",
84+
"jsdoc": "number",
85+
"c": "double",
86+
"dtype": "float64"
87+
},
88+
"domain": [
89+
{
90+
"min": "-infinity",
91+
"max": "infinity"
92+
}
93+
],
94+
"rand": {
95+
"prng": "random/base/uniform",
96+
"parameters": [
97+
-100,
98+
100
99+
]
100+
},
101+
"example_values": [
102+
0,
103+
-0.01,
104+
0.25,
105+
-0.5,
106+
1,
107+
2,
108+
3,
109+
4,
110+
9,
111+
16,
112+
25,
113+
-36,
114+
49,
115+
-64,
116+
81,
117+
100,
118+
-0.1,
119+
10,
120+
-50,
121+
99.99
122+
]
123+
}
124+
],
125+
"output_policy": "real_floating_point_and_generic",
126+
"returns": {
127+
"desc": "natural logarithm",
128+
"type": {
129+
"javascript": "number",
130+
"jsdoc": "number",
131+
"c": "double",
132+
"dtype": "float64"
133+
}
134+
},
135+
"keywords": [
136+
"ln",
137+
"log1mexp",
138+
"natural",
139+
"logarithm",
140+
"log"
141+
],
142+
"extra_keywords": [
143+
"math.log",
144+
"math.log1p"
145+
]
146+
}
147+
}
70148
}

0 commit comments

Comments
 (0)