Skip to content

Commit 9c59b6c

Browse files
committed
chore: add structured package data for math/base/special/log2
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: passed - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 4dc4f6c commit 9c59b6c

File tree

1 file changed

+77
-1
lines changed

1 file changed

+77
-1
lines changed

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

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

0 commit comments

Comments
 (0)