Skip to content

Commit 3419f20

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 47f726c commit 3419f20

File tree

20 files changed

+61
-61
lines changed

20 files changed

+61
-61
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* STDLIB_NDARRAY_NULLARY_10D_LOOP_EPILOGUE
4141
*/
4242
#define STDLIB_NDARRAY_NULLARY_10D_LOOP_PREAMBLE \
43-
struct ndarray *x1 = arrays[ 0 ]; \
43+
const struct ndarray *x1 = arrays[ 0 ]; \
4444
int64_t *shape = stdlib_ndarray_shape( x1 ); \
4545
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4646
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
@@ -151,8 +151,8 @@
151151
* STDLIB_NDARRAY_NULLARY_10D_LOOP_EPILOGUE
152152
*/
153153
#define STDLIB_NDARRAY_NULLARY_10D_LOOP_TWO_OUT_PREAMBLE \
154-
struct ndarray *x1 = arrays[ 0 ]; \
155-
struct ndarray *x2 = arrays[ 1 ]; \
154+
const struct ndarray *x1 = arrays[ 0 ]; \
155+
const struct ndarray *x2 = arrays[ 1 ]; \
156156
int64_t *shape = stdlib_ndarray_shape( x1 ); \
157157
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
158158
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* STDLIB_NDARRAY_NULLARY_10D_BLOCKED_LOOP_EPILOGUE
4646
*/
4747
#define STDLIB_NDARRAY_NULLARY_10D_BLOCKED_LOOP_PREAMBLE \
48-
struct ndarray *x1 = arrays[ 0 ]; \
48+
const struct ndarray *x1 = arrays[ 0 ]; \
4949
int64_t shape[10]; \
5050
int64_t sx1[10]; \
5151
int64_t idx[10]; \
@@ -257,8 +257,8 @@
257257
* STDLIB_NDARRAY_NULLARY_10D_BLOCKED_LOOP_EPILOGUE
258258
*/
259259
#define STDLIB_NDARRAY_NULLARY_10D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
260-
struct ndarray *x1 = arrays[ 0 ]; \
261-
struct ndarray *x2 = arrays[ 1 ]; \
260+
const struct ndarray *x1 = arrays[ 0 ]; \
261+
const struct ndarray *x2 = arrays[ 1 ]; \
262262
int64_t shape[10]; \
263263
int64_t sx1[10]; \
264264
int64_t sx2[10]; \

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* STDLIB_NDARRAY_NULLARY_1D_LOOP_EPILOGUE
4040
*/
4141
#define STDLIB_NDARRAY_NULLARY_1D_LOOP_PREAMBLE \
42-
struct ndarray *x1 = arrays[ 0 ]; \
42+
const struct ndarray *x1 = arrays[ 0 ]; \
4343
int64_t *shape = stdlib_ndarray_shape( x1 ); \
4444
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4545
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
@@ -71,8 +71,8 @@
7171
* STDLIB_NDARRAY_NULLARY_1D_LOOP_EPILOGUE
7272
*/
7373
#define STDLIB_NDARRAY_NULLARY_1D_LOOP_TWO_OUT_PREAMBLE \
74-
struct ndarray *x1 = arrays[ 0 ]; \
75-
struct ndarray *x2 = arrays[ 1 ]; \
74+
const struct ndarray *x1 = arrays[ 0 ]; \
75+
const struct ndarray *x2 = arrays[ 1 ]; \
7676
int64_t *shape = stdlib_ndarray_shape( x1 ); \
7777
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
7878
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
@@ -199,7 +199,7 @@
199199
* STDLIB_NDARRAY_NULLARY_1D_VIA_STRIDED( stdlib_strided_b )
200200
*/
201201
#define STDLIB_NDARRAY_NULLARY_1D_VIA_STRIDED( strided_array_fcn ) \
202-
struct ndarray *x1 = arrays[ 0 ]; \
202+
const struct ndarray *x1 = arrays[ 0 ]; \
203203
int64_t shape[] = { \
204204
stdlib_ndarray_dimension( x1, 0 ) \
205205
}; \

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* STDLIB_NDARRAY_NULLARY_2D_LOOP_EPILOGUE
4141
*/
4242
#define STDLIB_NDARRAY_NULLARY_2D_LOOP_PREAMBLE \
43-
struct ndarray *x1 = arrays[ 0 ]; \
43+
const struct ndarray *x1 = arrays[ 0 ]; \
4444
int64_t *shape = stdlib_ndarray_shape( x1 ); \
4545
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4646
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
@@ -87,8 +87,8 @@
8787
* STDLIB_NDARRAY_NULLARY_2D_LOOP_EPILOGUE
8888
*/
8989
#define STDLIB_NDARRAY_NULLARY_2D_LOOP_TWO_OUT_PREAMBLE \
90-
struct ndarray *x1 = arrays[ 0 ]; \
91-
struct ndarray *x2 = arrays[ 1 ]; \
90+
const struct ndarray *x1 = arrays[ 0 ]; \
91+
const struct ndarray *x2 = arrays[ 1 ]; \
9292
int64_t *shape = stdlib_ndarray_shape( x1 ); \
9393
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
9494
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* STDLIB_NDARRAY_NULLARY_2D_BLOCKED_LOOP_EPILOGUE
4646
*/
4747
#define STDLIB_NDARRAY_NULLARY_2D_BLOCKED_LOOP_PREAMBLE \
48-
struct ndarray *x1 = arrays[ 0 ]; \
48+
const struct ndarray *x1 = arrays[ 0 ]; \
4949
int64_t shape[2]; \
5050
int64_t sx1[2]; \
5151
int64_t idx[2]; \
@@ -129,8 +129,8 @@
129129
* STDLIB_NDARRAY_NULLARY_2D_BLOCKED_LOOP_EPILOGUE
130130
*/
131131
#define STDLIB_NDARRAY_NULLARY_2D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
132-
struct ndarray *x1 = arrays[ 0 ]; \
133-
struct ndarray *x2 = arrays[ 1 ]; \
132+
const struct ndarray *x1 = arrays[ 0 ]; \
133+
const struct ndarray *x2 = arrays[ 1 ]; \
134134
int64_t shape[2]; \
135135
int64_t sx1[2]; \
136136
int64_t sx2[2]; \

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* STDLIB_NDARRAY_NULLARY_3D_LOOP_EPILOGUE
4141
*/
4242
#define STDLIB_NDARRAY_NULLARY_3D_LOOP_PREAMBLE \
43-
struct ndarray *x1 = arrays[ 0 ]; \
43+
const struct ndarray *x1 = arrays[ 0 ]; \
4444
int64_t *shape = stdlib_ndarray_shape( x1 ); \
4545
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4646
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
@@ -95,8 +95,8 @@
9595
* STDLIB_NDARRAY_NULLARY_3D_LOOP_EPILOGUE
9696
*/
9797
#define STDLIB_NDARRAY_NULLARY_3D_LOOP_TWO_OUT_PREAMBLE \
98-
struct ndarray *x1 = arrays[ 0 ]; \
99-
struct ndarray *x2 = arrays[ 1 ]; \
98+
const struct ndarray *x1 = arrays[ 0 ]; \
99+
const struct ndarray *x2 = arrays[ 1 ]; \
100100
int64_t *shape = stdlib_ndarray_shape( x1 ); \
101101
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
102102
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* STDLIB_NDARRAY_NULLARY_3D_BLOCKED_LOOP_EPILOGUE
4646
*/
4747
#define STDLIB_NDARRAY_NULLARY_3D_BLOCKED_LOOP_PREAMBLE \
48-
struct ndarray *x1 = arrays[ 0 ]; \
48+
const struct ndarray *x1 = arrays[ 0 ]; \
4949
int64_t shape[3]; \
5050
int64_t sx1[3]; \
5151
int64_t idx[3]; \
@@ -145,8 +145,8 @@
145145
* STDLIB_NDARRAY_NULLARY_3D_BLOCKED_LOOP_EPILOGUE
146146
*/
147147
#define STDLIB_NDARRAY_NULLARY_3D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
148-
struct ndarray *x1 = arrays[ 0 ]; \
149-
struct ndarray *x2 = arrays[ 1 ]; \
148+
const struct ndarray *x1 = arrays[ 0 ]; \
149+
const struct ndarray *x2 = arrays[ 1 ]; \
150150
int64_t shape[3]; \
151151
int64_t sx1[3]; \
152152
int64_t sx2[3]; \

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* STDLIB_NDARRAY_NULLARY_4D_LOOP_EPILOGUE
4141
*/
4242
#define STDLIB_NDARRAY_NULLARY_4D_LOOP_PREAMBLE \
43-
struct ndarray *x1 = arrays[ 0 ]; \
43+
const struct ndarray *x1 = arrays[ 0 ]; \
4444
int64_t *shape = stdlib_ndarray_shape( x1 ); \
4545
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4646
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
@@ -103,8 +103,8 @@
103103
* STDLIB_NDARRAY_NULLARY_4D_LOOP_EPILOGUE
104104
*/
105105
#define STDLIB_NDARRAY_NULLARY_4D_LOOP_TWO_OUT_PREAMBLE \
106-
struct ndarray *x1 = arrays[ 0 ]; \
107-
struct ndarray *x2 = arrays[ 1 ]; \
106+
const struct ndarray *x1 = arrays[ 0 ]; \
107+
const struct ndarray *x2 = arrays[ 1 ]; \
108108
int64_t *shape = stdlib_ndarray_shape( x1 ); \
109109
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
110110
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* STDLIB_NDARRAY_NULLARY_4D_BLOCKED_LOOP_EPILOGUE
4646
*/
4747
#define STDLIB_NDARRAY_NULLARY_4D_BLOCKED_LOOP_PREAMBLE \
48-
struct ndarray *x1 = arrays[ 0 ]; \
48+
const struct ndarray *x1 = arrays[ 0 ]; \
4949
int64_t shape[4]; \
5050
int64_t sx1[4]; \
5151
int64_t idx[4]; \
@@ -161,8 +161,8 @@
161161
* STDLIB_NDARRAY_NULLARY_4D_BLOCKED_LOOP_EPILOGUE
162162
*/
163163
#define STDLIB_NDARRAY_NULLARY_4D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
164-
struct ndarray *x1 = arrays[ 0 ]; \
165-
struct ndarray *x2 = arrays[ 1 ]; \
164+
const struct ndarray *x1 = arrays[ 0 ]; \
165+
const struct ndarray *x2 = arrays[ 1 ]; \
166166
int64_t shape[4]; \
167167
int64_t sx1[4]; \
168168
int64_t sx2[4]; \

lib/node_modules/@stdlib/ndarray/base/nullary/include/stdlib/ndarray/base/nullary/macros/5d.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* STDLIB_NDARRAY_NULLARY_5D_LOOP_EPILOGUE
4141
*/
4242
#define STDLIB_NDARRAY_NULLARY_5D_LOOP_PREAMBLE \
43-
struct ndarray *x1 = arrays[ 0 ]; \
43+
const struct ndarray *x1 = arrays[ 0 ]; \
4444
int64_t *shape = stdlib_ndarray_shape( x1 ); \
4545
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4646
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
@@ -111,8 +111,8 @@
111111
* STDLIB_NDARRAY_NULLARY_5D_LOOP_EPILOGUE
112112
*/
113113
#define STDLIB_NDARRAY_NULLARY_5D_LOOP_TWO_OUT_PREAMBLE \
114-
struct ndarray *x1 = arrays[ 0 ]; \
115-
struct ndarray *x2 = arrays[ 1 ]; \
114+
const struct ndarray *x1 = arrays[ 0 ]; \
115+
const struct ndarray *x2 = arrays[ 1 ]; \
116116
int64_t *shape = stdlib_ndarray_shape( x1 ); \
117117
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
118118
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \

lib/node_modules/@stdlib/ndarray/base/nullary/include/stdlib/ndarray/base/nullary/macros/5d_blocked.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* STDLIB_NDARRAY_NULLARY_5D_BLOCKED_LOOP_EPILOGUE
4646
*/
4747
#define STDLIB_NDARRAY_NULLARY_5D_BLOCKED_LOOP_PREAMBLE \
48-
struct ndarray *x1 = arrays[ 0 ]; \
48+
const struct ndarray *x1 = arrays[ 0 ]; \
4949
int64_t shape[5]; \
5050
int64_t sx1[5]; \
5151
int64_t idx[5]; \
@@ -177,8 +177,8 @@
177177
* STDLIB_NDARRAY_NULLARY_5D_BLOCKED_LOOP_EPILOGUE
178178
*/
179179
#define STDLIB_NDARRAY_NULLARY_5D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
180-
struct ndarray *x1 = arrays[ 0 ]; \
181-
struct ndarray *x2 = arrays[ 1 ]; \
180+
const struct ndarray *x1 = arrays[ 0 ]; \
181+
const struct ndarray *x2 = arrays[ 1 ]; \
182182
int64_t shape[5]; \
183183
int64_t sx1[5]; \
184184
int64_t sx2[5]; \

lib/node_modules/@stdlib/ndarray/base/nullary/include/stdlib/ndarray/base/nullary/macros/6d.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* STDLIB_NDARRAY_NULLARY_6D_LOOP_EPILOGUE
4141
*/
4242
#define STDLIB_NDARRAY_NULLARY_6D_LOOP_PREAMBLE \
43-
struct ndarray *x1 = arrays[ 0 ]; \
43+
const struct ndarray *x1 = arrays[ 0 ]; \
4444
int64_t *shape = stdlib_ndarray_shape( x1 ); \
4545
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4646
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
@@ -119,8 +119,8 @@
119119
* STDLIB_NDARRAY_NULLARY_6D_LOOP_EPILOGUE
120120
*/
121121
#define STDLIB_NDARRAY_NULLARY_6D_LOOP_TWO_OUT_PREAMBLE \
122-
struct ndarray *x1 = arrays[ 0 ]; \
123-
struct ndarray *x2 = arrays[ 1 ]; \
122+
const struct ndarray *x1 = arrays[ 0 ]; \
123+
const struct ndarray *x2 = arrays[ 1 ]; \
124124
int64_t *shape = stdlib_ndarray_shape( x1 ); \
125125
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
126126
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \

lib/node_modules/@stdlib/ndarray/base/nullary/include/stdlib/ndarray/base/nullary/macros/6d_blocked.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* STDLIB_NDARRAY_NULLARY_6D_BLOCKED_LOOP_EPILOGUE
4646
*/
4747
#define STDLIB_NDARRAY_NULLARY_6D_BLOCKED_LOOP_PREAMBLE \
48-
struct ndarray *x1 = arrays[ 0 ]; \
48+
const struct ndarray *x1 = arrays[ 0 ]; \
4949
int64_t shape[6]; \
5050
int64_t sx1[6]; \
5151
int64_t idx[6]; \
@@ -193,8 +193,8 @@
193193
* STDLIB_NDARRAY_NULLARY_6D_BLOCKED_LOOP_EPILOGUE
194194
*/
195195
#define STDLIB_NDARRAY_NULLARY_6D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
196-
struct ndarray *x1 = arrays[ 0 ]; \
197-
struct ndarray *x2 = arrays[ 1 ]; \
196+
const struct ndarray *x1 = arrays[ 0 ]; \
197+
const struct ndarray *x2 = arrays[ 1 ]; \
198198
int64_t shape[6]; \
199199
int64_t sx1[6]; \
200200
int64_t sx2[6]; \

lib/node_modules/@stdlib/ndarray/base/nullary/include/stdlib/ndarray/base/nullary/macros/7d.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* STDLIB_NDARRAY_NULLARY_7D_LOOP_EPILOGUE
4141
*/
4242
#define STDLIB_NDARRAY_NULLARY_7D_LOOP_PREAMBLE \
43-
struct ndarray *x1 = arrays[ 0 ]; \
43+
const struct ndarray *x1 = arrays[ 0 ]; \
4444
int64_t *shape = stdlib_ndarray_shape( x1 ); \
4545
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4646
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
@@ -127,8 +127,8 @@
127127
* STDLIB_NDARRAY_NULLARY_7D_LOOP_EPILOGUE
128128
*/
129129
#define STDLIB_NDARRAY_NULLARY_7D_LOOP_TWO_OUT_PREAMBLE \
130-
struct ndarray *x1 = arrays[ 0 ]; \
131-
struct ndarray *x2 = arrays[ 1 ]; \
130+
const struct ndarray *x1 = arrays[ 0 ]; \
131+
const struct ndarray *x2 = arrays[ 1 ]; \
132132
int64_t *shape = stdlib_ndarray_shape( x1 ); \
133133
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
134134
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \

lib/node_modules/@stdlib/ndarray/base/nullary/include/stdlib/ndarray/base/nullary/macros/7d_blocked.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* STDLIB_NDARRAY_NULLARY_7D_BLOCKED_LOOP_EPILOGUE
4646
*/
4747
#define STDLIB_NDARRAY_NULLARY_7D_BLOCKED_LOOP_PREAMBLE \
48-
struct ndarray *x1 = arrays[ 0 ]; \
48+
const struct ndarray *x1 = arrays[ 0 ]; \
4949
int64_t shape[7]; \
5050
int64_t sx1[7]; \
5151
int64_t idx[7]; \
@@ -209,8 +209,8 @@
209209
* STDLIB_NDARRAY_NULLARY_7D_BLOCKED_LOOP_EPILOGUE
210210
*/
211211
#define STDLIB_NDARRAY_NULLARY_7D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
212-
struct ndarray *x1 = arrays[ 0 ]; \
213-
struct ndarray *x2 = arrays[ 1 ]; \
212+
const struct ndarray *x1 = arrays[ 0 ]; \
213+
const struct ndarray *x2 = arrays[ 1 ]; \
214214
int64_t shape[7]; \
215215
int64_t sx1[7]; \
216216
int64_t sx2[7]; \

0 commit comments

Comments
 (0)