Skip to content

Commit 0ddf2f3

Browse files
committed
refactor: try newer approach
--- 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: passed - 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: passed - 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 34f340e commit 0ddf2f3

File tree

15 files changed

+927
-609
lines changed

15 files changed

+927
-609
lines changed

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

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,80 @@
6363
"root",
6464
"power",
6565
"number"
66-
]
66+
],
67+
"__stdlib__": {
68+
"scaffold": {
69+
"$schema": "math/[email protected]",
70+
"base_alias": "sqrt",
71+
"alias": "sqrt",
72+
"pkg_desc": "round toward positive infinity",
73+
"desc": "rounds toward positive infinity",
74+
"short_desc": "ceil value",
75+
"parameters": [
76+
{
77+
"name": "x",
78+
"desc": "input value",
79+
"type": {
80+
"javascript": "number",
81+
"jsdoc": "number",
82+
"c": "double",
83+
"dtype": "float64"
84+
},
85+
"domain": [
86+
{
87+
"min": "-infinity",
88+
"max": "infinity"
89+
}
90+
],
91+
"rand": {
92+
"prng": "random/base/uniform",
93+
"parameters": [
94+
-10,
95+
10
96+
]
97+
},
98+
"example_values": [
99+
64,
100+
27,
101+
0,
102+
0.1,
103+
-9,
104+
8,
105+
-1,
106+
125,
107+
-10.2,
108+
11.3,
109+
-12.4,
110+
3.5,
111+
-1.6,
112+
15.7,
113+
-16,
114+
17.9,
115+
-188,
116+
19.11,
117+
-200,
118+
21.15
119+
]
120+
}
121+
],
122+
"output_policy": "same",
123+
"returns": {
124+
"desc": "absolute value",
125+
"type": {
126+
"javascript": "number",
127+
"jsdoc": "number",
128+
"c": "double",
129+
"dtype": "float64"
130+
}
131+
},
132+
"keywords": [
133+
"abs",
134+
"absolute",
135+
"magnitude"
136+
],
137+
"extra_keywords": [
138+
"math.abs"
139+
]
140+
}
141+
}
67142
}

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

Lines changed: 87 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@stdlib/math/base/special/sqrtf",
2+
"name": "@stdlib/math/base/special/cceil",
33
"version": "0.0.0",
4-
"description": "Compute the principal square root of a single-precision floating-point number.",
4+
"description": "Round each component of a double-precision complex floating-point number toward positive infinity.",
55
"license": "Apache-2.0",
66
"author": {
77
"name": "The Stdlib Authors",
@@ -56,12 +56,90 @@
5656
"stdmath",
5757
"mathematics",
5858
"math",
59-
"math.sqrtf",
60-
"sqrtf",
61-
"principal",
62-
"square",
63-
"root",
64-
"power",
59+
"math.ceil",
60+
"ceil",
61+
"cceil",
62+
"round",
63+
"integer",
64+
"nearest",
65+
"value",
66+
"complex",
67+
"cmplx",
6568
"number"
66-
]
69+
],
70+
"__stdlib__": {
71+
"scaffold": {
72+
"$schema": "math/[email protected]",
73+
"base_alias": "sqrtf",
74+
"alias": "sqrtf",
75+
"pkg_desc": "round toward positive infinity",
76+
"desc": "rounds toward positive infinity",
77+
"short_desc": "ceil value",
78+
"parameters": [
79+
{
80+
"name": "x",
81+
"desc": "input value",
82+
"type": {
83+
"javascript": "number",
84+
"jsdoc": "number",
85+
"c": "double",
86+
"dtype": "float32"
87+
},
88+
"domain": [
89+
{
90+
"min": "-infinity",
91+
"max": "infinity"
92+
}
93+
],
94+
"rand": {
95+
"prng": "random/base/uniform",
96+
"parameters": [
97+
-10,
98+
10
99+
]
100+
},
101+
"example_values": [
102+
64,
103+
27,
104+
0,
105+
0.1,
106+
-9,
107+
8,
108+
-1,
109+
125,
110+
-10.2,
111+
11.3,
112+
-12.4,
113+
3.5,
114+
-1.6,
115+
15.7,
116+
-16,
117+
17.9,
118+
-188,
119+
19.11,
120+
-200,
121+
21.15
122+
]
123+
}
124+
],
125+
"output_policy": "same",
126+
"returns": {
127+
"desc": "absolute value",
128+
"type": {
129+
"javascript": "number",
130+
"jsdoc": "number",
131+
"c": "double",
132+
"dtype": "float32"
133+
}
134+
},
135+
"keywords": [
136+
"abs",
137+
"absolute",
138+
"magnitude"
139+
],
140+
"extra_keywords": [
141+
"math.abs"
142+
]
143+
}
144+
}
67145
}

lib/node_modules/@stdlib/math/special/notes.txt

Lines changed: 0 additions & 127 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
// MAIN //
22+
23+
/**
24+
* Dtype precision hierarchy.
25+
*
26+
* @type {Object}
27+
*/
28+
var DTYPE_HIERARCHY = {
29+
'int8': 1,
30+
'uint8': 1,
31+
'int16': 2,
32+
'uint16': 2,
33+
'int32': 3,
34+
'uint32': 3,
35+
'float32': 4,
36+
'float64': 5,
37+
'generic': 6
38+
};
39+
40+
41+
// EXPORTS //
42+
43+
module.exports = DTYPE_HIERARCHY;

lib/node_modules/@stdlib/math/special/scripts/function_database.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"output_dtypes": "real_floating_point",
55
"output_policy": "real_floating_point",
66
"scalar_kernels": {
7+
"float32": "@stdlib/math/base/special/sqrtf",
78
"float64": "@stdlib/math/base/special/sqrt",
8-
"float32": "@stdlib/math/base/special/sqrtf"
9+
"generic": "@stdlib/math/base/special/sqrt"
910
}
1011
}
1112
}

0 commit comments

Comments
 (0)