Skip to content

Commit 557c8fc

Browse files
committed
chore: generate files for sin
--- 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 6d25393 commit 557c8fc

File tree

10 files changed

+1227
-1
lines changed

10 files changed

+1227
-1
lines changed

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

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,78 @@
6363
"trigonometry",
6464
"radians",
6565
"angle"
66-
]
66+
],
67+
"__stdlib__": {
68+
"scaffold": {
69+
"$schema": "math/[email protected]",
70+
"base_alias": "sin",
71+
"alias": "sin",
72+
"pkg_desc": "compute the sine of a number",
73+
"desc": "computes the sine of a number",
74+
"short_desc": "sine 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": "sine 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+
}
139+
}
67140
}

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88
"float64": "@stdlib/math/base/special/sqrt",
99
"generic": "@stdlib/math/base/special/sqrt"
1010
}
11+
},
12+
"sin": {
13+
"input_dtypes": "real_and_generic",
14+
"output_dtypes": "real_floating_point",
15+
"output_policy": "real_floating_point",
16+
"scalar_kernels": {
17+
"float32": "@stdlib/math/base/special/sinf",
18+
"float64": "@stdlib/math/base/special/sin",
19+
"generic": "@stdlib/math/base/special/sin"
20+
}
1121
}
1222
}
1323

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
/* This is a generated file. Do not edit directly. */
20+
21+
/* eslint-disable array-element-newline */
22+
23+
'use strict';
24+
25+
// MODULES //
26+
27+
var dtypes = require( '@stdlib/ndarray/dtypes' );
28+
29+
30+
// MAIN //
31+
32+
var types = [
33+
// float32 (2)
34+
dtypes.float32, dtypes.float32,
35+
dtypes.float32, dtypes.float64,
36+
37+
// float64 (1)
38+
dtypes.float64, dtypes.float64,
39+
40+
// int16 (2)
41+
dtypes.int16, dtypes.float32,
42+
dtypes.int16, dtypes.float64,
43+
44+
// int32 (1)
45+
dtypes.int32, dtypes.float64,
46+
47+
// int8 (2)
48+
dtypes.int8, dtypes.float32,
49+
dtypes.int8, dtypes.float64,
50+
51+
// uint16 (2)
52+
dtypes.uint16, dtypes.float32,
53+
dtypes.uint16, dtypes.float64,
54+
55+
// uint32 (1)
56+
dtypes.uint32, dtypes.float64,
57+
58+
// uint8 (2)
59+
dtypes.uint8, dtypes.float32,
60+
dtypes.uint8, dtypes.float64
61+
];
62+
63+
64+
// EXPORTS //
65+
66+
module.exports = types;
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"name": "@stdlib/math/special/sin",
3+
"version": "0.0.0",
4+
"description": "Compute the sine of a number.",
5+
"license": "Apache-2.0",
6+
"author": {
7+
"name": "The Stdlib Authors",
8+
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
9+
},
10+
"contributors": [
11+
{
12+
"name": "The Stdlib Authors",
13+
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
14+
}
15+
],
16+
"main": "./lib",
17+
"browser": "./lib/main.js",
18+
"gypfile": true,
19+
"directories": {
20+
"benchmark": "./benchmark",
21+
"doc": "./docs",
22+
"example": "./examples",
23+
"lib": "./lib",
24+
"scripts": "./scripts",
25+
"src": "./src",
26+
"test": "./test"
27+
},
28+
"types": "./docs/types",
29+
"scripts": {},
30+
"homepage": "https://github.com/stdlib-js/stdlib",
31+
"repository": {
32+
"type": "git",
33+
"url": "git://github.com/stdlib-js/stdlib.git"
34+
},
35+
"bugs": {
36+
"url": "https://github.com/stdlib-js/stdlib/issues"
37+
},
38+
"dependencies": {},
39+
"devDependencies": {},
40+
"engines": {
41+
"node": ">=0.10.0",
42+
"npm": ">2.7.0"
43+
},
44+
"os": [
45+
"aix",
46+
"darwin",
47+
"freebsd",
48+
"linux",
49+
"macos",
50+
"openbsd",
51+
"sunos",
52+
"win32",
53+
"windows"
54+
],
55+
"keywords": [
56+
"stdlib",
57+
"stdmath",
58+
"mathematics",
59+
"math",
60+
"math.sin",
61+
"sin",
62+
"sine",
63+
"trig",
64+
"trigonometry",
65+
"radians",
66+
"angle"
67+
],
68+
"__stdlib__": {}
69+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
* Configuration object.
25+
*
26+
* @private
27+
* @type {Object}
28+
*/
29+
var config = {
30+
'input_dtypes': 'real_and_generic',
31+
'output_dtypes': 'real_floating_point',
32+
'excluded_dtypes': [ 'float16', 'uint8c' ]
33+
};
34+
35+
36+
// EXPORTS //
37+
38+
module.exports = config;

0 commit comments

Comments
 (0)