You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Expected values when `x` has stride `2`, `y` has stride `-1`, and `z` has stride `1` (x0y1, x2y0):
240
240
expected_len_2_x2_ym1_z1=(
241
-
"${expected_values[1]}"
242
-
"${expected_values[12]}"
241
+
"${expected_values[1]}"
242
+
"${expected_values[12]}"
243
243
)
244
244
245
245
# Expected values when starting at 2nd element of `x` and the 3rd element of `y` and where `x` has stride `-2`, `y` has stride `1`, and `z` has stride `1` (x3y2, x1y3):
246
246
expected_len_2_xm2_y1_z1=(
247
-
"${expected_values[20]}"
248
-
"${expected_values[9]}"
247
+
"${expected_values[20]}"
248
+
"${expected_values[9]}"
249
249
)
250
250
251
251
# Expected values when `x` has stride `2`, `y` has stride `-1`, and `z` has stride `1` (x0y2, x2y1, x4y0):
252
252
expected_len_3_x2_ym1_z1=(
253
-
"${expected_values[2]}"
254
-
"${expected_values[13]}"
255
-
"${expected_values[24]}"
253
+
"${expected_values[2]}"
254
+
"${expected_values[13]}"
255
+
"${expected_values[24]}"
256
256
)
257
257
258
258
# Expected values when starting at 2nd element of `x` and the 4th element of `y` and where `x` has stride `-2`, `y` has stride `1`, and `z` has stride `1` (x5y3, x3y4, x1y5):
259
259
expected_len_3_xm2_y1_z1=(
260
-
"${expected_values[33]}"
261
-
"${expected_values[22]}"
262
-
"${expected_values[11]}"
260
+
"${expected_values[33]}"
261
+
"${expected_values[22]}"
262
+
"${expected_values[11]}"
263
263
)
264
264
265
265
266
266
## SCRIPT ##
267
267
268
268
# Define the list of scaffold directories:
269
269
dirs=(
270
-
"benchmark"
271
-
"docs"
272
-
"docs/types"
273
-
"examples"
274
-
"lib"
275
-
"test"
270
+
"benchmark"
271
+
"docs"
272
+
"docs/types"
273
+
"examples"
274
+
"lib"
275
+
"test"
276
276
)
277
277
278
278
# Define the list of scaffold files:
279
279
files=(
280
-
"benchmark/benchmark.js"
281
-
"benchmark/benchmark.ndarray.js"
282
-
"docs/types/index.d.ts"
283
-
"docs/types/test.ts"
284
-
"docs/repl.txt"
285
-
"examples/index.js"
286
-
"lib/index.js"
287
-
"lib/main.js"
288
-
"lib/ndarray.js"
289
-
"test/test.js"
290
-
"test/test.main.js"
291
-
"test/test.ndarray.js"
292
-
"package.json"
293
-
"README.md"
280
+
"benchmark/benchmark.js"
281
+
"benchmark/benchmark.ndarray.js"
282
+
"docs/types/index.d.ts"
283
+
"docs/types/test.ts"
284
+
"docs/repl.txt"
285
+
"examples/index.js"
286
+
"lib/index.js"
287
+
"lib/main.js"
288
+
"lib/ndarray.js"
289
+
"test/test.js"
290
+
"test/test.main.js"
291
+
"test/test.ndarray.js"
292
+
"package.json"
293
+
"README.md"
294
294
)
295
295
296
296
# Create the destination directories...
297
297
298
298
fordirin"${dirs[@]}";do
299
-
mkdir -p "${dest_dir}/${dir}"
299
+
mkdir -p "${dest_dir}/${dir}"
300
300
done
301
301
302
302
# Copy the scaffold files to the destination directory...
0 commit comments