Skip to content

Commit 8ee084f

Browse files
committed
fix: noncontiguous strides
--- 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: passed - 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 1dd55b5 commit 8ee084f

File tree

9 files changed

+165
-165
lines changed

9 files changed

+165
-165
lines changed

lib/node_modules/@stdlib/ndarray/base/every/test/test.10d.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ tape( 'the function tests whether every element in a 10-dimensional ndarray is t
164164
dt = 'float64';
165165
ord = 'row-major';
166166
sh = [ 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
167-
st = [ 16, 16, 16, 16, 16, 16, 8, 4, 2, 1 ];
167+
st = [ 16, 16, 16, 16, 16, 16, 8, 4, 4, 2 ];
168168
o = strides2offset( sh, st );
169169

170170
x = ndarray( dt, zeros( 16, dt ), sh, st, o, ord );
@@ -192,7 +192,7 @@ tape( 'the function tests whether every element in a 10-dimensional ndarray is t
192192
dt = 'float64';
193193
ord = 'row-major';
194194
sh = [ 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
195-
st = [ 16, 16, 16, 16, 16, 16, -8, -4, -2, 1 ];
195+
st = [ 16, 16, 16, 16, 16, 16, -8, -4, -4, 2 ];
196196
o = strides2offset( sh, st );
197197

198198
x = ndarray( dt, zeros( 16, dt ), sh, st, o, ord );
@@ -630,7 +630,7 @@ tape( 'the function tests whether every element in a 10-dimensional ndarray is t
630630
dt = 'complex128';
631631
ord = 'row-major';
632632
sh = [ 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
633-
st = [ 16, 16, 16, 16, 16, 16, 8, 4, 2, 1 ];
633+
st = [ 16, 16, 16, 16, 16, 16, 8, 4, 4, 2 ];
634634
o = strides2offset( sh, st );
635635

636636
x = ndarray( dt, zeros( 16, dt ), sh, st, o, ord );
@@ -1096,7 +1096,7 @@ tape( 'the function tests whether every element in a 10-dimensional ndarray is t
10961096
dt = 'float64';
10971097
ord = 'row-major';
10981098
sh = [ 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
1099-
st = [ 16, 16, 16, 16, 16, 16, 8, 4, 2, 1 ];
1099+
st = [ 16, 16, 16, 16, 16, 16, 8, 4, 4, 2 ];
11001100
o = strides2offset( sh, st );
11011101

11021102
x = ndarray( dt, toAccessorArray( zeros( 16, dt ) ), sh, st, o, ord );
@@ -1124,7 +1124,7 @@ tape( 'the function tests whether every element in a 10-dimensional ndarray is t
11241124
dt = 'float64';
11251125
ord = 'row-major';
11261126
sh = [ 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
1127-
st = [ 16, 16, 16, 16, -16, 16, -8, -4, -2, 1 ];
1127+
st = [ 16, 16, 16, 16, -16, 16, -8, -4, -4, 2 ];
11281128
o = strides2offset( sh, st );
11291129

11301130
x = ndarray( dt, toAccessorArray( zeros( 16, dt ) ), sh, st, o, ord );
@@ -1618,7 +1618,7 @@ tape( 'the function tests whether every element in a 10-dimensional ndarray is t
16181618
dt = 'float64';
16191619
ord = 'column-major';
16201620
sh = [ 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
1621-
st = [ 1, 1, 1, 1, 1, 1, 1, 4, 8, 8 ];
1621+
st = [ 2, 2, 2, 2, 2, 2, 2, 4, 8, 8 ];
16221622
o = strides2offset( sh, st );
16231623

16241624
x = ndarray( dt, zeros( 16, dt ), sh, st, o, ord );
@@ -1646,7 +1646,7 @@ tape( 'the function tests whether every element in a 10-dimensional ndarray is t
16461646
dt = 'float64';
16471647
ord = 'column-major';
16481648
sh = [ 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
1649-
st = [ 1, 1, 1, 1, 1, 1, -1, -4, 8, -8 ];
1649+
st = [ 2, 2, 2, 2, 2, 2, -2, -4, 8, -8 ];
16501650
o = strides2offset( sh, st );
16511651

16521652
x = ndarray( dt, zeros( 16, dt ), sh, st, o, ord );
@@ -2084,7 +2084,7 @@ tape( 'the function tests whether every element in a 10-dimensional ndarray is t
20842084
dt = 'complex128';
20852085
ord = 'column-major';
20862086
sh = [ 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
2087-
st = [ 1, 1, 1, 1, 1, 1, 1, 4, 8, 8 ];
2087+
st = [ 2, 2, 2, 2, 2, 2, 2, 4, 8, 8 ];
20882088
o = strides2offset( sh, st );
20892089

20902090
x = ndarray( dt, zeros( 16, dt ), sh, st, o, ord );
@@ -2112,7 +2112,7 @@ tape( 'the function tests whether every element in a 10-dimensional ndarray is t
21122112
dt = 'complex128';
21132113
ord = 'column-major';
21142114
sh = [ 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
2115-
st = [ 1, 1, -1, 1, -1, 1, 1, -4, -8, 8 ];
2115+
st = [ 2, 2, -2, 2, -2, 2, 2, -4, -8, 8 ];
21162116
o = strides2offset( sh, st );
21172117

21182118
x = ndarray( dt, zeros( 16, dt ), sh, st, o, ord );
@@ -2550,7 +2550,7 @@ tape( 'the function tests whether every element in a 10-dimensional ndarray is t
25502550
dt = 'float64';
25512551
ord = 'column-major';
25522552
sh = [ 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
2553-
st = [ 1, 1, 1, 1, 1, 1, 1, 4, 8, 8 ];
2553+
st = [ 2, 2, 2, 2, 2, 2, 2, 4, 8, 8 ];
25542554
o = strides2offset( sh, st );
25552555

25562556
x = ndarray( dt, toAccessorArray( zeros( 16, dt ) ), sh, st, o, ord );
@@ -2578,7 +2578,7 @@ tape( 'the function tests whether every element in a 10-dimensional ndarray is t
25782578
dt = 'float64';
25792579
ord = 'column-major';
25802580
sh = [ 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
2581-
st = [ 1, 1, -1, 1, -1, 1, 1, -4, -8, 8 ];
2581+
st = [ 2, 2, -2, 2, -2, 2, 2, -4, -8, 8 ];
25822582
o = strides2offset( sh, st );
25832583

25842584
x = ndarray( dt, toAccessorArray( zeros( 16, dt ) ), sh, st, o, ord );

lib/node_modules/@stdlib/ndarray/base/every/test/test.2d.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ tape( 'the function tests whether every element in a 2-dimensional ndarray is tr
164164
dt = 'float64';
165165
ord = 'row-major';
166166
sh = [ 2, 2 ];
167-
st = [ 4, 1 ];
167+
st = [ 4, 2 ];
168168
o = strides2offset( sh, st );
169169

170170
x = ndarray( dt, zeros( 8, dt ), sh, st, o, ord );
@@ -192,7 +192,7 @@ tape( 'the function tests whether every element in a 2-dimensional ndarray is tr
192192
dt = 'float64';
193193
ord = 'row-major';
194194
sh = [ 2, 2 ];
195-
st = [ 4, -1 ];
195+
st = [ 4, -2 ];
196196
o = strides2offset( sh, st );
197197

198198
x = ndarray( dt, zeros( 8, dt ), sh, st, o, ord );
@@ -338,7 +338,7 @@ tape( 'the function tests whether every element in a 2-dimensional ndarray is tr
338338
dt = 'complex128';
339339
ord = 'row-major';
340340
sh = [ 2, 2 ];
341-
st = [ 4, 1 ];
341+
st = [ 4, 2 ];
342342
o = strides2offset( sh, st );
343343

344344
x = ndarray( dt, zeros( 8, dt ), sh, st, o, ord );
@@ -366,7 +366,7 @@ tape( 'the function tests whether every element in a 2-dimensional ndarray is tr
366366
dt = 'complex128';
367367
ord = 'row-major';
368368
sh = [ 2, 2 ];
369-
st = [ 4, -1 ];
369+
st = [ 4, -2 ];
370370
o = strides2offset( sh, st );
371371

372372
x = ndarray( dt, zeros( 8, dt ), sh, st, o, ord );
@@ -512,7 +512,7 @@ tape( 'the function tests whether every element in a 2-dimensional ndarray is tr
512512
dt = 'float64';
513513
ord = 'row-major';
514514
sh = [ 2, 2 ];
515-
st = [ 4, 1 ];
515+
st = [ 4, 2 ];
516516
o = strides2offset( sh, st );
517517

518518
x = ndarray( dt, toAccessorArray( zeros( 8, dt ) ), sh, st, o, ord );
@@ -540,7 +540,7 @@ tape( 'the function tests whether every element in a 2-dimensional ndarray is tr
540540
dt = 'float64';
541541
ord = 'row-major';
542542
sh = [ 2, 2 ];
543-
st = [ 4, -1 ];
543+
st = [ 4, -2 ];
544544
o = strides2offset( sh, st );
545545

546546
x = ndarray( dt, toAccessorArray( zeros( 8, dt ) ), sh, st, o, ord );
@@ -742,7 +742,7 @@ tape( 'the function tests whether every element in a 2-dimensional ndarray is tr
742742
dt = 'float64';
743743
ord = 'column-major';
744744
sh = [ 2, 2 ];
745-
st = [ 1, 4 ];
745+
st = [ 2, 4 ];
746746
o = strides2offset( sh, st );
747747

748748
x = ndarray( dt, zeros( 8, dt ), sh, st, o, ord );
@@ -770,7 +770,7 @@ tape( 'the function tests whether every element in a 2-dimensional ndarray is tr
770770
dt = 'float64';
771771
ord = 'column-major';
772772
sh = [ 2, 2 ];
773-
st = [ -1, 4 ];
773+
st = [ -2, 4 ];
774774
o = strides2offset( sh, st );
775775

776776
x = ndarray( dt, zeros( 8, dt ), sh, st, o, ord );
@@ -916,7 +916,7 @@ tape( 'the function tests whether every element in a 2-dimensional ndarray is tr
916916
dt = 'complex128';
917917
ord = 'column-major';
918918
sh = [ 2, 2 ];
919-
st = [ 1, 4 ];
919+
st = [ 2, 4 ];
920920
o = strides2offset( sh, st );
921921

922922
x = ndarray( dt, zeros( 8, dt ), sh, st, o, ord );
@@ -944,7 +944,7 @@ tape( 'the function tests whether every element in a 2-dimensional ndarray is tr
944944
dt = 'complex128';
945945
ord = 'column-major';
946946
sh = [ 2, 2 ];
947-
st = [ -1, 4 ];
947+
st = [ -2, 4 ];
948948
o = strides2offset( sh, st );
949949

950950
x = ndarray( dt, zeros( 8, dt ), sh, st, o, ord );
@@ -1090,7 +1090,7 @@ tape( 'the function tests whether every element in a 2-dimensional ndarray is tr
10901090
dt = 'float64';
10911091
ord = 'column-major';
10921092
sh = [ 2, 2 ];
1093-
st = [ 1, 4 ];
1093+
st = [ 2, 4 ];
10941094
o = strides2offset( sh, st );
10951095

10961096
x = ndarray( dt, toAccessorArray( zeros( 8, dt ) ), sh, st, o, ord );
@@ -1118,7 +1118,7 @@ tape( 'the function tests whether every element in a 2-dimensional ndarray is tr
11181118
dt = 'float64';
11191119
ord = 'column-major';
11201120
sh = [ 2, 2 ];
1121-
st = [ -1, 4 ];
1121+
st = [ -2, 4 ];
11221122
o = strides2offset( sh, st );
11231123

11241124
x = ndarray( dt, toAccessorArray( zeros( 8, dt ) ), sh, st, o, ord );

0 commit comments

Comments
 (0)