Skip to content

Commit f2edc8d

Browse files
committed
chore: add generated files for sin and sqrt
--- 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: na - 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 eae79f4 commit f2edc8d

File tree

4 files changed

+106
-82
lines changed

4 files changed

+106
-82
lines changed

lib/node_modules/@stdlib/math/special/sin/lib/types.js

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,43 @@ var dtypes = require( '@stdlib/ndarray/dtypes' );
3030
// MAIN //
3131

3232
var types = [
33-
// float32 (2)
34-
dtypes.float32, dtypes.float32,
33+
// float32 (3)
3534
dtypes.float32, dtypes.float64,
35+
dtypes.float32, dtypes.float32,
36+
dtypes.float32, dtypes.generic,
3637

37-
// float64 (1)
38+
// float64 (3)
3839
dtypes.float64, dtypes.float64,
40+
dtypes.float64, dtypes.float32,
41+
dtypes.float64, dtypes.generic,
3942

40-
// int16 (2)
41-
dtypes.int16, dtypes.float32,
43+
// int16 (3)
4244
dtypes.int16, dtypes.float64,
45+
dtypes.int16, dtypes.float32,
46+
dtypes.int16, dtypes.generic,
4347

44-
// int32 (1)
48+
// int32 (2)
4549
dtypes.int32, dtypes.float64,
50+
dtypes.int32, dtypes.generic,
4651

47-
// int8 (2)
48-
dtypes.int8, dtypes.float32,
52+
// int8 (3)
4953
dtypes.int8, dtypes.float64,
54+
dtypes.int8, dtypes.float32,
55+
dtypes.int8, dtypes.generic,
5056

51-
// uint16 (2)
52-
dtypes.uint16, dtypes.float32,
57+
// uint16 (3)
5358
dtypes.uint16, dtypes.float64,
59+
dtypes.uint16, dtypes.float32,
60+
dtypes.uint16, dtypes.generic,
5461

55-
// uint32 (1)
62+
// uint32 (2)
5663
dtypes.uint32, dtypes.float64,
64+
dtypes.uint32, dtypes.generic,
5765

58-
// uint8 (2)
66+
// uint8 (3)
67+
dtypes.uint8, dtypes.float64,
5968
dtypes.uint8, dtypes.float32,
60-
dtypes.uint8, dtypes.float64
69+
dtypes.uint8, dtypes.generic
6170
];
6271

6372

lib/node_modules/@stdlib/math/special/sin/src/addon.c

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
*/
1818

1919
/* This is a generated file. Do not edit directly. */
20-
#include "stdlib/math/base/special/sinf.h"
2120
#include "stdlib/math/base/special/sin.h"
21+
#include "stdlib/math/base/special/sinf.h"
2222
#include "stdlib/ndarray/base/function_object.h"
2323
#include "stdlib/ndarray/base/napi/unary.h"
2424
#include "stdlib/ndarray/base/unary.h"
@@ -31,99 +31,102 @@ static const char name[] = "stdlib_ndarray_sin";
3131
// Define a list of ndarray functions:
3232
static ndarrayFcn functions[] = {
3333
// float32 (2)
34-
stdlib_ndarray_f_f,
3534
stdlib_ndarray_f_d_as_d_d,
35+
stdlib_ndarray_f_f,
3636

37-
// float64 (1)
37+
// float64 (2)
3838
stdlib_ndarray_d_d,
39+
stdlib_ndarray_d_f_as_d_d,
3940

4041
// int16 (2)
41-
stdlib_ndarray_k_f_as_f_f,
4242
stdlib_ndarray_k_d_as_d_d,
43+
stdlib_ndarray_k_f_as_f_f,
4344

4445
// int32 (1)
4546
stdlib_ndarray_i_d_as_d_d,
4647

4748
// int8 (2)
48-
stdlib_ndarray_s_f_as_f_f,
4949
stdlib_ndarray_s_d_as_d_d,
50+
stdlib_ndarray_s_f_as_f_f,
5051

5152
// uint16 (2)
52-
stdlib_ndarray_t_f_as_f_f,
5353
stdlib_ndarray_t_d_as_d_d,
54+
stdlib_ndarray_t_f_as_f_f,
5455

5556
// uint32 (1)
5657
stdlib_ndarray_u_d_as_d_d,
5758

5859
// uint8 (2)
59-
stdlib_ndarray_b_f_as_f_f,
6060
stdlib_ndarray_b_d_as_d_d,
61+
stdlib_ndarray_b_f_as_f_f,
6162

6263
};
6364

6465
// Define the array of input and output ndarray types:
6566
static int32_t types[] = {
6667
// float32 (2)
67-
STDLIB_NDARRAY_FLOAT32, STDLIB_NDARRAY_FLOAT32,
6868
STDLIB_NDARRAY_FLOAT32, STDLIB_NDARRAY_FLOAT64,
69+
STDLIB_NDARRAY_FLOAT32, STDLIB_NDARRAY_FLOAT32,
6970

70-
// float64 (1)
71+
// float64 (2)
7172
STDLIB_NDARRAY_FLOAT64, STDLIB_NDARRAY_FLOAT64,
73+
STDLIB_NDARRAY_FLOAT64, STDLIB_NDARRAY_FLOAT32,
7274

7375
// int16 (2)
74-
STDLIB_NDARRAY_INT16, STDLIB_NDARRAY_FLOAT32,
7576
STDLIB_NDARRAY_INT16, STDLIB_NDARRAY_FLOAT64,
77+
STDLIB_NDARRAY_INT16, STDLIB_NDARRAY_FLOAT32,
7678

7779
// int32 (1)
7880
STDLIB_NDARRAY_INT32, STDLIB_NDARRAY_FLOAT64,
7981

8082
// int8 (2)
81-
STDLIB_NDARRAY_INT8, STDLIB_NDARRAY_FLOAT32,
8283
STDLIB_NDARRAY_INT8, STDLIB_NDARRAY_FLOAT64,
84+
STDLIB_NDARRAY_INT8, STDLIB_NDARRAY_FLOAT32,
8385

8486
// uint16 (2)
85-
STDLIB_NDARRAY_UINT16, STDLIB_NDARRAY_FLOAT32,
8687
STDLIB_NDARRAY_UINT16, STDLIB_NDARRAY_FLOAT64,
88+
STDLIB_NDARRAY_UINT16, STDLIB_NDARRAY_FLOAT32,
8789

8890
// uint32 (1)
8991
STDLIB_NDARRAY_UINT32, STDLIB_NDARRAY_FLOAT64,
9092

9193
// uint8 (2)
92-
STDLIB_NDARRAY_UINT8, STDLIB_NDARRAY_FLOAT32,
9394
STDLIB_NDARRAY_UINT8, STDLIB_NDARRAY_FLOAT64,
95+
STDLIB_NDARRAY_UINT8, STDLIB_NDARRAY_FLOAT32,
9496

9597
};
9698

9799
// Define a list of ndarray function "data" (in this case, callbacks):
98100
static void *data[] = {
99101
// float32 (2)
100-
(void *)stdlib_base_sinf,
101-
(void *)stdlib_base_sin,
102+
(void *)stdlib_math_base_special_sin,
103+
(void *)stdlib_math_base_special_sinf,
102104

103-
// float64 (1)
104-
(void *)stdlib_base_sin,
105+
// float64 (2)
106+
(void *)stdlib_math_base_special_sin,
107+
(void *)stdlib_math_base_special_sin,
105108

106109
// int16 (2)
107-
(void *)stdlib_base_sinf,
108-
(void *)stdlib_base_sin,
110+
(void *)stdlib_math_base_special_sin,
111+
(void *)stdlib_math_base_special_sinf,
109112

110113
// int32 (1)
111-
(void *)stdlib_base_sin,
114+
(void *)stdlib_math_base_special_sin,
112115

113116
// int8 (2)
114-
(void *)stdlib_base_sinf,
115-
(void *)stdlib_base_sin,
117+
(void *)stdlib_math_base_special_sin,
118+
(void *)stdlib_math_base_special_sinf,
116119

117120
// uint16 (2)
118-
(void *)stdlib_base_sinf,
119-
(void *)stdlib_base_sin,
121+
(void *)stdlib_math_base_special_sin,
122+
(void *)stdlib_math_base_special_sinf,
120123

121124
// uint32 (1)
122-
(void *)stdlib_base_sin,
125+
(void *)stdlib_math_base_special_sin,
123126

124127
// uint8 (2)
125-
(void *)stdlib_base_sinf,
126-
(void *)stdlib_base_sin,
128+
(void *)stdlib_math_base_special_sin,
129+
(void *)stdlib_math_base_special_sinf,
127130

128131
};
129132

@@ -145,7 +148,7 @@ static const struct ndarrayFunctionObject obj = {
145148
functions,
146149

147150
// Number of ndarray functions:
148-
13,
151+
14,
149152

150153
// Array of type "numbers" (as enumerated elsewhere), where the total number of types equals `narrays * nfunctions` and where each set of `narrays` consecutive types (non-overlapping) corresponds to the set of ndarray argument types for a corresponding ndarray function:
151154
types,

lib/node_modules/@stdlib/math/special/sqrt/lib/types.js

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,43 @@ var dtypes = require( '@stdlib/ndarray/dtypes' );
3030
// MAIN //
3131

3232
var types = [
33-
// float32 (2)
34-
dtypes.float32, dtypes.float32,
33+
// float32 (3)
3534
dtypes.float32, dtypes.float64,
35+
dtypes.float32, dtypes.float32,
36+
dtypes.float32, dtypes.generic,
3637

37-
// float64 (1)
38+
// float64 (3)
3839
dtypes.float64, dtypes.float64,
40+
dtypes.float64, dtypes.float32,
41+
dtypes.float64, dtypes.generic,
3942

40-
// int16 (2)
41-
dtypes.int16, dtypes.float32,
43+
// int16 (3)
4244
dtypes.int16, dtypes.float64,
45+
dtypes.int16, dtypes.float32,
46+
dtypes.int16, dtypes.generic,
4347

44-
// int32 (1)
48+
// int32 (2)
4549
dtypes.int32, dtypes.float64,
50+
dtypes.int32, dtypes.generic,
4651

47-
// int8 (2)
48-
dtypes.int8, dtypes.float32,
52+
// int8 (3)
4953
dtypes.int8, dtypes.float64,
54+
dtypes.int8, dtypes.float32,
55+
dtypes.int8, dtypes.generic,
5056

51-
// uint16 (2)
52-
dtypes.uint16, dtypes.float32,
57+
// uint16 (3)
5358
dtypes.uint16, dtypes.float64,
59+
dtypes.uint16, dtypes.float32,
60+
dtypes.uint16, dtypes.generic,
5461

55-
// uint32 (1)
62+
// uint32 (2)
5663
dtypes.uint32, dtypes.float64,
64+
dtypes.uint32, dtypes.generic,
5765

58-
// uint8 (2)
66+
// uint8 (3)
67+
dtypes.uint8, dtypes.float64,
5968
dtypes.uint8, dtypes.float32,
60-
dtypes.uint8, dtypes.float64
69+
dtypes.uint8, dtypes.generic
6170
];
6271

6372

0 commit comments

Comments
 (0)