Skip to content

Commit 17e89e8

Browse files
committed
feat: generate loops for mostly safe casts
--- 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: passed - 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 dcfeda4 commit 17e89e8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+143725
-1269
lines changed

lib/node_modules/@stdlib/ndarray/base/unary/README.md

Lines changed: 6582 additions & 1262 deletions
Large diffs are not rendered by default.

lib/node_modules/@stdlib/ndarray/base/unary/include/stdlib/ndarray/base/unary.h

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
// BEGIN LOOPS
3535
#include "unary/b_b.h"
3636
#include "unary/b_b_as_u_u.h"
37+
#include "unary/b_b_as_v_v.h"
3738
#include "unary/b_c.h"
3839
#include "unary/b_c_as_b_c.h"
3940
#include "unary/b_c_as_c_c.h"
@@ -52,26 +53,44 @@
5253
#include "unary/b_k_as_b_k.h"
5354
#include "unary/b_k_as_i_i.h"
5455
#include "unary/b_k_as_k_k.h"
56+
#include "unary/b_k_as_l_l.h"
57+
#include "unary/b_l.h"
58+
#include "unary/b_l_as_b_l.h"
59+
#include "unary/b_l_as_l_l.h"
5560
#include "unary/b_t.h"
5661
#include "unary/b_t_as_b_t.h"
5762
#include "unary/b_t_as_t_t.h"
5863
#include "unary/b_t_as_u_u.h"
64+
#include "unary/b_t_as_v_v.h"
5965
#include "unary/b_u.h"
6066
#include "unary/b_u_as_b_u.h"
6167
#include "unary/b_u_as_u_u.h"
68+
#include "unary/b_v.h"
69+
#include "unary/b_v_as_b_v.h"
70+
#include "unary/b_v_as_v_v.h"
6271
#include "unary/b_z.h"
6372
#include "unary/b_z_as_b_z.h"
6473
#include "unary/b_z_as_z_z.h"
6574

6675
#include "unary/c_c.h"
6776
#include "unary/c_c_as_z_z.h"
77+
#include "unary/c_d_as_z_d.h"
6878
#include "unary/c_f_as_c_f.h"
6979
#include "unary/c_z.h"
7080
#include "unary/c_z_as_c_z.h"
7181
#include "unary/c_z_as_z_z.h"
7282

83+
#include "unary/d_c.h"
84+
#include "unary/d_c_as_c_c.h"
85+
#include "unary/d_c_as_d_c.h"
86+
#include "unary/d_c_as_z_z.h"
7387
#include "unary/d_d.h"
88+
#include "unary/d_f.h"
89+
#include "unary/d_f_as_d_d.h"
90+
#include "unary/d_f_as_d_f.h"
91+
#include "unary/d_f_as_f_f.h"
7492
#include "unary/d_i_as_d_i.h"
93+
#include "unary/d_l_as_d_l.h"
7594
#include "unary/d_z.h"
7695
#include "unary/d_z_as_d_z.h"
7796
#include "unary/d_z_as_z_z.h"
@@ -86,6 +105,7 @@
86105
#include "unary/f_f.h"
87106
#include "unary/f_f_as_d_d.h"
88107
#include "unary/f_i_as_f_i.h"
108+
#include "unary/f_l_as_f_l.h"
89109
#include "unary/f_z.h"
90110
#include "unary/f_z_as_f_z.h"
91111
#include "unary/f_z_as_z_z.h"
@@ -94,7 +114,11 @@
94114
#include "unary/i_d_as_d_d.h"
95115
#include "unary/i_d_as_i_d.h"
96116
#include "unary/i_i.h"
117+
#include "unary/i_l.h"
118+
#include "unary/i_l_as_i_l.h"
119+
#include "unary/i_l_as_l_l.h"
97120
#include "unary/i_u.h"
121+
#include "unary/i_v.h"
98122
#include "unary/i_z.h"
99123
#include "unary/i_z_as_i_z.h"
100124
#include "unary/i_z_as_z_z.h"
@@ -115,10 +139,17 @@
115139
#include "unary/k_i_as_k_i.h"
116140
#include "unary/k_k.h"
117141
#include "unary/k_k_as_i_i.h"
142+
#include "unary/k_k_as_l_l.h"
143+
#include "unary/k_l.h"
144+
#include "unary/k_l_as_k_l.h"
145+
#include "unary/k_l_as_l_l.h"
118146
#include "unary/k_t.h"
119147
#include "unary/k_t_as_i_i.h"
148+
#include "unary/k_t_as_l_l.h"
120149
#include "unary/k_u.h"
121150
#include "unary/k_u_as_i_i.h"
151+
#include "unary/k_u_as_l_l.h"
152+
#include "unary/k_v.h"
122153
#include "unary/k_z.h"
123154
#include "unary/k_z_as_k_z.h"
124155
#include "unary/k_z_as_z_z.h"
@@ -141,13 +172,23 @@
141172
#include "unary/s_k.h"
142173
#include "unary/s_k_as_i_i.h"
143174
#include "unary/s_k_as_k_k.h"
175+
#include "unary/s_k_as_l_l.h"
144176
#include "unary/s_k_as_s_k.h"
177+
#include "unary/s_l.h"
178+
#include "unary/s_l_as_l_l.h"
179+
#include "unary/s_l_as_s_l.h"
145180
#include "unary/s_s.h"
146181
#include "unary/s_s_as_i_i.h"
182+
#include "unary/s_s_as_l_l.h"
147183
#include "unary/s_t.h"
148184
#include "unary/s_t_as_i_i.h"
185+
#include "unary/s_t_as_l_l.h"
149186
#include "unary/s_u.h"
150187
#include "unary/s_u_as_i_i.h"
188+
#include "unary/s_u_as_l_l.h"
189+
#include "unary/s_v.h"
190+
#include "unary/s_v_as_i_i.h"
191+
#include "unary/s_v_as_l_l.h"
151192
#include "unary/s_z.h"
152193
#include "unary/s_z_as_s_z.h"
153194
#include "unary/s_z_as_z_z.h"
@@ -166,26 +207,44 @@
166207
#include "unary/t_i.h"
167208
#include "unary/t_i_as_i_i.h"
168209
#include "unary/t_i_as_t_i.h"
210+
#include "unary/t_l.h"
211+
#include "unary/t_l_as_l_l.h"
212+
#include "unary/t_l_as_t_l.h"
169213
#include "unary/t_t.h"
170214
#include "unary/t_t_as_u_u.h"
215+
#include "unary/t_t_as_v_v.h"
171216
#include "unary/t_u.h"
172217
#include "unary/t_u_as_t_u.h"
173218
#include "unary/t_u_as_u_u.h"
219+
#include "unary/t_v.h"
220+
#include "unary/t_v_as_t_v.h"
221+
#include "unary/t_v_as_v_v.h"
174222
#include "unary/t_z.h"
175223
#include "unary/t_z_as_t_z.h"
176224
#include "unary/t_z_as_z_z.h"
177225

178226
#include "unary/u_d.h"
179227
#include "unary/u_d_as_d_d.h"
180228
#include "unary/u_d_as_u_d.h"
229+
#include "unary/u_l.h"
230+
#include "unary/u_l_as_l_l.h"
231+
#include "unary/u_l_as_u_l.h"
181232
#include "unary/u_u.h"
233+
#include "unary/u_v.h"
234+
#include "unary/u_v_as_u_v.h"
235+
#include "unary/u_v_as_v_v.h"
182236
#include "unary/u_z.h"
183237
#include "unary/u_z_as_u_z.h"
184238
#include "unary/u_z_as_z_z.h"
185239

186240
#include "unary/x_x.h"
187241

242+
#include "unary/z_c.h"
243+
#include "unary/z_c_as_c_c.h"
244+
#include "unary/z_c_as_z_c.h"
245+
#include "unary/z_c_as_z_z.h"
188246
#include "unary/z_d_as_z_d.h"
247+
#include "unary/z_f_as_z_d.h"
189248
#include "unary/z_z.h"
190249
// END LOOPS
191250

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
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+
/*
20+
* The following is auto-generated. Do not manually edit. See scripts/loops.js.
21+
*/
22+
23+
#ifndef STDLIB_NDARRAY_BASE_UNARY_B_B_AS_V_V_H
24+
#define STDLIB_NDARRAY_BASE_UNARY_B_B_AS_V_V_H
25+
26+
#include "stdlib/ndarray/ctor.h"
27+
#include <stdint.h>
28+
29+
/*
30+
* If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler.
31+
*/
32+
#ifdef __cplusplus
33+
extern "C" {
34+
#endif
35+
36+
/**
37+
* Applies a unary callback to an input ndarray and assigns results to elements in an output ndarray.
38+
*/
39+
int8_t stdlib_ndarray_b_b_as_v_v( struct ndarray *arrays[], void *fcn );
40+
41+
/**
42+
* Applies a unary callback to a zero-dimensional input ndarray and assigns results to elements in a zero-dimensional output ndarray.
43+
*/
44+
int8_t stdlib_ndarray_b_b_as_v_v_0d( struct ndarray *arrays[], void *fcn );
45+
46+
/**
47+
* Applies a unary callback to a one-dimensional input ndarray and assigns results to elements in a one-dimensional output ndarray.
48+
*/
49+
int8_t stdlib_ndarray_b_b_as_v_v_1d( struct ndarray *arrays[], void *fcn );
50+
51+
/**
52+
* Applies a unary callback to a two-dimensional input ndarray and assigns results to elements in a two-dimensional output ndarray.
53+
*/
54+
int8_t stdlib_ndarray_b_b_as_v_v_2d( struct ndarray *arrays[], void *fcn );
55+
56+
/**
57+
* Applies a unary callback to a two-dimensional input ndarray and assigns results to elements in a two-dimensional output ndarray.
58+
*/
59+
int8_t stdlib_ndarray_b_b_as_v_v_2d_blocked( struct ndarray *arrays[], void *fcn );
60+
61+
/**
62+
* Applies a unary callback to a three-dimensional input ndarray and assigns results to elements in a three-dimensional output ndarray.
63+
*/
64+
int8_t stdlib_ndarray_b_b_as_v_v_3d( struct ndarray *arrays[], void *fcn );
65+
66+
/**
67+
* Applies a unary callback to a three-dimensional input ndarray and assigns results to elements in a three-dimensional output ndarray.
68+
*/
69+
int8_t stdlib_ndarray_b_b_as_v_v_3d_blocked( struct ndarray *arrays[], void *fcn );
70+
71+
/**
72+
* Applies a unary callback to a four-dimensional input ndarray and assigns results to elements in a four-dimensional output ndarray.
73+
*/
74+
int8_t stdlib_ndarray_b_b_as_v_v_4d( struct ndarray *arrays[], void *fcn );
75+
76+
/**
77+
* Applies a unary callback to a four-dimensional input ndarray and assigns results to elements in a four-dimensional output ndarray.
78+
*/
79+
int8_t stdlib_ndarray_b_b_as_v_v_4d_blocked( struct ndarray *arrays[], void *fcn );
80+
81+
/**
82+
* Applies a unary callback to a five-dimensional input ndarray and assigns results to elements in a five-dimensional output ndarray.
83+
*/
84+
int8_t stdlib_ndarray_b_b_as_v_v_5d( struct ndarray *arrays[], void *fcn );
85+
86+
/**
87+
* Applies a unary callback to a five-dimensional input ndarray and assigns results to elements in a five-dimensional output ndarray.
88+
*/
89+
int8_t stdlib_ndarray_b_b_as_v_v_5d_blocked( struct ndarray *arrays[], void *fcn );
90+
91+
/**
92+
* Applies a unary callback to a six-dimensional input ndarray and assigns results to elements in a six-dimensional output ndarray.
93+
*/
94+
int8_t stdlib_ndarray_b_b_as_v_v_6d( struct ndarray *arrays[], void *fcn );
95+
96+
/**
97+
* Applies a unary callback to a six-dimensional input ndarray and assigns results to elements in a six-dimensional output ndarray.
98+
*/
99+
int8_t stdlib_ndarray_b_b_as_v_v_6d_blocked( struct ndarray *arrays[], void *fcn );
100+
101+
/**
102+
* Applies a unary callback to a seven-dimensional input ndarray and assigns results to elements in a seven-dimensional output ndarray.
103+
*/
104+
int8_t stdlib_ndarray_b_b_as_v_v_7d( struct ndarray *arrays[], void *fcn );
105+
106+
/**
107+
* Applies a unary callback to a seven-dimensional input ndarray and assigns results to elements in a seven-dimensional output ndarray.
108+
*/
109+
int8_t stdlib_ndarray_b_b_as_v_v_7d_blocked( struct ndarray *arrays[], void *fcn );
110+
111+
/**
112+
* Applies a unary callback to an eight-dimensional input ndarray and assigns results to elements in an eight-dimensional output ndarray.
113+
*/
114+
int8_t stdlib_ndarray_b_b_as_v_v_8d( struct ndarray *arrays[], void *fcn );
115+
116+
/**
117+
* Applies a unary callback to an eight-dimensional input ndarray and assigns results to elements in an eight-dimensional output ndarray.
118+
*/
119+
int8_t stdlib_ndarray_b_b_as_v_v_8d_blocked( struct ndarray *arrays[], void *fcn );
120+
121+
/**
122+
* Applies a unary callback to a nine-dimensional input ndarray and assigns results to elements in a nine-dimensional output ndarray.
123+
*/
124+
int8_t stdlib_ndarray_b_b_as_v_v_9d( struct ndarray *arrays[], void *fcn );
125+
126+
/**
127+
* Applies a unary callback to a nine-dimensional input ndarray and assigns results to elements in a nine-dimensional output ndarray.
128+
*/
129+
int8_t stdlib_ndarray_b_b_as_v_v_9d_blocked( struct ndarray *arrays[], void *fcn );
130+
131+
/**
132+
* Applies a unary callback to a ten-dimensional input ndarray and assigns results to elements in a ten-dimensional output ndarray.
133+
*/
134+
int8_t stdlib_ndarray_b_b_as_v_v_10d( struct ndarray *arrays[], void *fcn );
135+
136+
/**
137+
* Applies a unary callback to a ten-dimensional input ndarray and assigns results to elements in a ten-dimensional output ndarray.
138+
*/
139+
int8_t stdlib_ndarray_b_b_as_v_v_10d_blocked( struct ndarray *arrays[], void *fcn );
140+
141+
/**
142+
* Applies a unary callback to an n-dimensional input ndarray and assigns results to elements in an n-dimensional output ndarray.
143+
*/
144+
int8_t stdlib_ndarray_b_b_as_v_v_nd( struct ndarray *arrays[], void *fcn );
145+
146+
#ifdef __cplusplus
147+
}
148+
#endif
149+
150+
#endif // !STDLIB_NDARRAY_BASE_UNARY_B_B_AS_V_V_H

0 commit comments

Comments
 (0)