Skip to content

Commit 47f726c

Browse files
committed
chore: resolve lint errors
--- 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: 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 8aad405 commit 47f726c

File tree

20 files changed

+177
-177
lines changed

20 files changed

+177
-177
lines changed

lib/node_modules/@stdlib/ndarray/base/assign/include/stdlib/ndarray/base/assign/macros/10d.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
* STDLIB_NDARRAY_ASSIGN_10D_LOOP_EPILOGUE
4141
*/
4242
#define STDLIB_NDARRAY_ASSIGN_10D_LOOP_PREAMBLE \
43-
struct ndarray *x1 = arrays[ 0 ]; \
44-
struct ndarray *x2 = arrays[ 1 ]; \
45-
int64_t *shape = stdlib_ndarray_shape( x1 ); \
46-
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
47-
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
43+
const struct ndarray *x1 = arrays[ 0 ]; \
44+
const struct ndarray *x2 = arrays[ 1 ]; \
45+
const int64_t *shape = stdlib_ndarray_shape( x1 ); \
46+
const int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
47+
const int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
4848
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
4949
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
5050
int64_t d0x1; \
@@ -185,13 +185,13 @@
185185
* STDLIB_NDARRAY_ASSIGN_10D_LOOP_EPILOGUE
186186
*/
187187
#define STDLIB_NDARRAY_ASSIGN_10D_LOOP_TWO_OUT_PREAMBLE \
188-
struct ndarray *x1 = arrays[ 0 ]; \
189-
struct ndarray *x2 = arrays[ 1 ]; \
190-
struct ndarray *x3 = arrays[ 2 ]; \
191-
int64_t *shape = stdlib_ndarray_shape( x1 ); \
192-
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
193-
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
194-
int64_t *sx3 = stdlib_ndarray_strides( x3 ); \
188+
const struct ndarray *x1 = arrays[ 0 ]; \
189+
const struct ndarray *x2 = arrays[ 1 ]; \
190+
const struct ndarray *x3 = arrays[ 2 ]; \
191+
const int64_t *shape = stdlib_ndarray_shape( x1 ); \
192+
const int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
193+
const int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
194+
const int64_t *sx3 = stdlib_ndarray_strides( x3 ); \
195195
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
196196
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
197197
uint8_t *px3 = stdlib_ndarray_data( x3 ); \

lib/node_modules/@stdlib/ndarray/base/assign/include/stdlib/ndarray/base/assign/macros/10d_blocked.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
* STDLIB_NDARRAY_ASSIGN_10D_BLOCKED_LOOP_EPILOGUE
4646
*/
4747
#define STDLIB_NDARRAY_ASSIGN_10D_BLOCKED_LOOP_PREAMBLE \
48-
struct ndarray *x1 = arrays[ 0 ]; \
49-
struct ndarray *x2 = arrays[ 1 ]; \
48+
const struct ndarray *x1 = arrays[ 0 ]; \
49+
const struct ndarray *x2 = arrays[ 1 ]; \
5050
int64_t shape[10]; \
5151
int64_t sx1[10]; \
5252
int64_t sx2[10]; \
@@ -309,9 +309,9 @@
309309
* STDLIB_NDARRAY_ASSIGN_10D_BLOCKED_LOOP_EPILOGUE
310310
*/
311311
#define STDLIB_NDARRAY_ASSIGN_10D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
312-
struct ndarray *x1 = arrays[ 0 ]; \
313-
struct ndarray *x2 = arrays[ 1 ]; \
314-
struct ndarray *x3 = arrays[ 2 ]; \
312+
const struct ndarray *x1 = arrays[ 0 ]; \
313+
const struct ndarray *x2 = arrays[ 1 ]; \
314+
const struct ndarray *x3 = arrays[ 2 ]; \
315315
int64_t shape[10]; \
316316
int64_t sx1[10]; \
317317
int64_t sx2[10]; \

lib/node_modules/@stdlib/ndarray/base/assign/include/stdlib/ndarray/base/assign/macros/1d.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
* STDLIB_NDARRAY_ASSIGN_1D_LOOP_EPILOGUE
4040
*/
4141
#define STDLIB_NDARRAY_ASSIGN_1D_LOOP_PREAMBLE \
42-
struct ndarray *x1 = arrays[ 0 ]; \
43-
struct ndarray *x2 = arrays[ 1 ]; \
44-
int64_t *shape = stdlib_ndarray_shape( x1 ); \
45-
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
46-
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
42+
const struct ndarray *x1 = arrays[ 0 ]; \
43+
const struct ndarray *x2 = arrays[ 1 ]; \
44+
const int64_t *shape = stdlib_ndarray_shape( x1 ); \
45+
const int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
46+
const int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
4747
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
4848
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
4949
int64_t d0x1; \
@@ -77,13 +77,13 @@
7777
* STDLIB_NDARRAY_ASSIGN_1D_LOOP_EPILOGUE
7878
*/
7979
#define STDLIB_NDARRAY_ASSIGN_1D_LOOP_TWO_OUT_PREAMBLE \
80-
struct ndarray *x1 = arrays[ 0 ]; \
81-
struct ndarray *x2 = arrays[ 1 ]; \
82-
struct ndarray *x3 = arrays[ 2 ]; \
83-
int64_t *shape = stdlib_ndarray_shape( x1 ); \
84-
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
85-
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
86-
int64_t *sx3 = stdlib_ndarray_strides( x3 ); \
80+
const struct ndarray *x1 = arrays[ 0 ]; \
81+
const struct ndarray *x2 = arrays[ 1 ]; \
82+
const struct ndarray *x3 = arrays[ 2 ]; \
83+
const int64_t *shape = stdlib_ndarray_shape( x1 ); \
84+
const int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
85+
const int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
86+
const int64_t *sx3 = stdlib_ndarray_strides( x3 ); \
8787
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
8888
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
8989
uint8_t *px3 = stdlib_ndarray_data( x3 ); \

lib/node_modules/@stdlib/ndarray/base/assign/include/stdlib/ndarray/base/assign/macros/2d.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
* STDLIB_NDARRAY_ASSIGN_2D_LOOP_EPILOGUE
4141
*/
4242
#define STDLIB_NDARRAY_ASSIGN_2D_LOOP_PREAMBLE \
43-
struct ndarray *x1 = arrays[ 0 ]; \
44-
struct ndarray *x2 = arrays[ 1 ]; \
45-
int64_t *shape = stdlib_ndarray_shape( x1 ); \
46-
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
47-
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
43+
const struct ndarray *x1 = arrays[ 0 ]; \
44+
const struct ndarray *x2 = arrays[ 1 ]; \
45+
const int64_t *shape = stdlib_ndarray_shape( x1 ); \
46+
const int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
47+
const int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
4848
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
4949
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
5050
int64_t d0x1; \
@@ -97,13 +97,13 @@
9797
* STDLIB_NDARRAY_ASSIGN_2D_LOOP_EPILOGUE
9898
*/
9999
#define STDLIB_NDARRAY_ASSIGN_2D_LOOP_TWO_OUT_PREAMBLE \
100-
struct ndarray *x1 = arrays[ 0 ]; \
101-
struct ndarray *x2 = arrays[ 1 ]; \
102-
struct ndarray *x3 = arrays[ 2 ]; \
103-
int64_t *shape = stdlib_ndarray_shape( x1 ); \
104-
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
105-
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
106-
int64_t *sx3 = stdlib_ndarray_strides( x3 ); \
100+
const struct ndarray *x1 = arrays[ 0 ]; \
101+
const struct ndarray *x2 = arrays[ 1 ]; \
102+
const struct ndarray *x3 = arrays[ 2 ]; \
103+
const int64_t *shape = stdlib_ndarray_shape( x1 ); \
104+
const int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
105+
const int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
106+
const int64_t *sx3 = stdlib_ndarray_strides( x3 ); \
107107
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
108108
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
109109
uint8_t *px3 = stdlib_ndarray_data( x3 ); \

lib/node_modules/@stdlib/ndarray/base/assign/include/stdlib/ndarray/base/assign/macros/2d_blocked.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
* STDLIB_NDARRAY_ASSIGN_2D_BLOCKED_LOOP_EPILOGUE
4646
*/
4747
#define STDLIB_NDARRAY_ASSIGN_2D_BLOCKED_LOOP_PREAMBLE \
48-
struct ndarray *x1 = arrays[ 0 ]; \
49-
struct ndarray *x2 = arrays[ 1 ]; \
48+
const struct ndarray *x1 = arrays[ 0 ]; \
49+
const struct ndarray *x2 = arrays[ 1 ]; \
5050
int64_t shape[2]; \
5151
int64_t sx1[2]; \
5252
int64_t sx2[2]; \
@@ -149,9 +149,9 @@
149149
* STDLIB_NDARRAY_ASSIGN_2D_BLOCKED_LOOP_EPILOGUE
150150
*/
151151
#define STDLIB_NDARRAY_ASSIGN_2D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
152-
struct ndarray *x1 = arrays[ 0 ]; \
153-
struct ndarray *x2 = arrays[ 1 ]; \
154-
struct ndarray *x3 = arrays[ 2 ]; \
152+
const struct ndarray *x1 = arrays[ 0 ]; \
153+
const struct ndarray *x2 = arrays[ 1 ]; \
154+
const struct ndarray *x3 = arrays[ 2 ]; \
155155
int64_t shape[2]; \
156156
int64_t sx1[2]; \
157157
int64_t sx2[2]; \

lib/node_modules/@stdlib/ndarray/base/assign/include/stdlib/ndarray/base/assign/macros/3d.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
* STDLIB_NDARRAY_ASSIGN_3D_LOOP_EPILOGUE
4141
*/
4242
#define STDLIB_NDARRAY_ASSIGN_3D_LOOP_PREAMBLE \
43-
struct ndarray *x1 = arrays[ 0 ]; \
44-
struct ndarray *x2 = arrays[ 1 ]; \
45-
int64_t *shape = stdlib_ndarray_shape( x1 ); \
46-
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
47-
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
43+
const struct ndarray *x1 = arrays[ 0 ]; \
44+
const struct ndarray *x2 = arrays[ 1 ]; \
45+
const int64_t *shape = stdlib_ndarray_shape( x1 ); \
46+
const int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
47+
const int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
4848
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
4949
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
5050
int64_t d0x1; \
@@ -108,13 +108,13 @@
108108
* STDLIB_NDARRAY_ASSIGN_3D_LOOP_EPILOGUE
109109
*/
110110
#define STDLIB_NDARRAY_ASSIGN_3D_LOOP_TWO_OUT_PREAMBLE \
111-
struct ndarray *x1 = arrays[ 0 ]; \
112-
struct ndarray *x2 = arrays[ 1 ]; \
113-
struct ndarray *x3 = arrays[ 2 ]; \
114-
int64_t *shape = stdlib_ndarray_shape( x1 ); \
115-
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
116-
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
117-
int64_t *sx3 = stdlib_ndarray_strides( x3 ); \
111+
const struct ndarray *x1 = arrays[ 0 ]; \
112+
const struct ndarray *x2 = arrays[ 1 ]; \
113+
const struct ndarray *x3 = arrays[ 2 ]; \
114+
const int64_t *shape = stdlib_ndarray_shape( x1 ); \
115+
const int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
116+
const int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
117+
const int64_t *sx3 = stdlib_ndarray_strides( x3 ); \
118118
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
119119
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
120120
uint8_t *px3 = stdlib_ndarray_data( x3 ); \

lib/node_modules/@stdlib/ndarray/base/assign/include/stdlib/ndarray/base/assign/macros/3d_blocked.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
* STDLIB_NDARRAY_ASSIGN_3D_BLOCKED_LOOP_EPILOGUE
4646
*/
4747
#define STDLIB_NDARRAY_ASSIGN_3D_BLOCKED_LOOP_PREAMBLE \
48-
struct ndarray *x1 = arrays[ 0 ]; \
49-
struct ndarray *x2 = arrays[ 1 ]; \
48+
const struct ndarray *x1 = arrays[ 0 ]; \
49+
const struct ndarray *x2 = arrays[ 1 ]; \
5050
int64_t shape[3]; \
5151
int64_t sx1[3]; \
5252
int64_t sx2[3]; \
@@ -169,9 +169,9 @@
169169
* STDLIB_NDARRAY_ASSIGN_3D_BLOCKED_LOOP_EPILOGUE
170170
*/
171171
#define STDLIB_NDARRAY_ASSIGN_3D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
172-
struct ndarray *x1 = arrays[ 0 ]; \
173-
struct ndarray *x2 = arrays[ 1 ]; \
174-
struct ndarray *x3 = arrays[ 2 ]; \
172+
const struct ndarray *x1 = arrays[ 0 ]; \
173+
const struct ndarray *x2 = arrays[ 1 ]; \
174+
const struct ndarray *x3 = arrays[ 2 ]; \
175175
int64_t shape[3]; \
176176
int64_t sx1[3]; \
177177
int64_t sx2[3]; \

lib/node_modules/@stdlib/ndarray/base/assign/include/stdlib/ndarray/base/assign/macros/4d.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
* STDLIB_NDARRAY_ASSIGN_4D_LOOP_EPILOGUE
4141
*/
4242
#define STDLIB_NDARRAY_ASSIGN_4D_LOOP_PREAMBLE \
43-
struct ndarray *x1 = arrays[ 0 ]; \
44-
struct ndarray *x2 = arrays[ 1 ]; \
45-
int64_t *shape = stdlib_ndarray_shape( x1 ); \
46-
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
47-
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
43+
const struct ndarray *x1 = arrays[ 0 ]; \
44+
const struct ndarray *x2 = arrays[ 1 ]; \
45+
const int64_t *shape = stdlib_ndarray_shape( x1 ); \
46+
const int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
47+
const int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
4848
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
4949
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
5050
int64_t d0x1; \
@@ -119,13 +119,13 @@
119119
* STDLIB_NDARRAY_ASSIGN_4D_LOOP_EPILOGUE
120120
*/
121121
#define STDLIB_NDARRAY_ASSIGN_4D_LOOP_TWO_OUT_PREAMBLE \
122-
struct ndarray *x1 = arrays[ 0 ]; \
123-
struct ndarray *x2 = arrays[ 1 ]; \
124-
struct ndarray *x3 = arrays[ 2 ]; \
125-
int64_t *shape = stdlib_ndarray_shape( x1 ); \
126-
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
127-
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
128-
int64_t *sx3 = stdlib_ndarray_strides( x3 ); \
122+
const struct ndarray *x1 = arrays[ 0 ]; \
123+
const struct ndarray *x2 = arrays[ 1 ]; \
124+
const struct ndarray *x3 = arrays[ 2 ]; \
125+
const int64_t *shape = stdlib_ndarray_shape( x1 ); \
126+
const int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
127+
const int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
128+
const int64_t *sx3 = stdlib_ndarray_strides( x3 ); \
129129
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
130130
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
131131
uint8_t *px3 = stdlib_ndarray_data( x3 ); \

lib/node_modules/@stdlib/ndarray/base/assign/include/stdlib/ndarray/base/assign/macros/4d_blocked.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
* STDLIB_NDARRAY_ASSIGN_4D_BLOCKED_LOOP_EPILOGUE
4646
*/
4747
#define STDLIB_NDARRAY_ASSIGN_4D_BLOCKED_LOOP_PREAMBLE \
48-
struct ndarray *x1 = arrays[ 0 ]; \
49-
struct ndarray *x2 = arrays[ 1 ]; \
48+
const struct ndarray *x1 = arrays[ 0 ]; \
49+
const struct ndarray *x2 = arrays[ 1 ]; \
5050
int64_t shape[4]; \
5151
int64_t sx1[4]; \
5252
int64_t sx2[4]; \
@@ -189,9 +189,9 @@
189189
* STDLIB_NDARRAY_ASSIGN_4D_BLOCKED_LOOP_EPILOGUE
190190
*/
191191
#define STDLIB_NDARRAY_ASSIGN_4D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
192-
struct ndarray *x1 = arrays[ 0 ]; \
193-
struct ndarray *x2 = arrays[ 1 ]; \
194-
struct ndarray *x3 = arrays[ 2 ]; \
192+
const struct ndarray *x1 = arrays[ 0 ]; \
193+
const struct ndarray *x2 = arrays[ 1 ]; \
194+
const struct ndarray *x3 = arrays[ 2 ]; \
195195
int64_t shape[4]; \
196196
int64_t sx1[4]; \
197197
int64_t sx2[4]; \

0 commit comments

Comments
 (0)