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
<spanclass="cstat-no" title="statement not covered" > var i8;</span>
1029
1040
<spanclass="cstat-no" title="statement not covered" > var i9;</span>
1030
1041
<spanclass="cstat-no" title="statement not covered" > var y;</span>
1042
+
<spanclass="cstat-no" title="statement not covered" > var v;</span>
1031
1043
<spanclass="cstat-no" title="statement not covered" > var i;</span>
1032
1044
<spanclass="cstat-no" title="statement not covered" ></span>
1033
1045
<spanclass="cstat-no" title="statement not covered" > // Note on variable naming convention: S#, dv#, i# where # corresponds to the loop number, with `0` being the innermost loop...</span>
<spanclass="cstat-no" title="statement not covered" > // Resolve a list of pointers to the first indexed elements in the respective ndarrays:</span>
1171
1183
<spanclass="cstat-no" title="statement not covered" > iv = offsets( arrays );</span>
1172
1184
<spanclass="cstat-no" title="statement not covered" ></span>
1185
+
<spanclass="cstat-no" title="statement not covered" > // Shallow copy the list of views to an internal array so that we can update with reshaped views without impacting the original list of views:</span>
1186
+
<spanclass="cstat-no" title="statement not covered" > v = copyIndexed( views );</span>
1187
+
<spanclass="cstat-no" title="statement not covered" ></span>
1173
1188
<spanclass="cstat-no" title="statement not covered" > // Iterate over the loop dimensions...</span>
1174
1189
<spanclass="cstat-no" title="statement not covered" > for ( i9 = 0; i9 < S9; i9++ ) {</span>
1175
1190
<spanclass="cstat-no" title="statement not covered" > for ( i8 = 0; i8 < S8; i8++ ) {</span>
<spanclass="cstat-no" title="statement not covered" > dv9 = zeros( N );</span>
1232
1244
<spanclass="cstat-no" title="statement not covered" > iv = zeros( N );</span>
1233
1245
<spanclass="cstat-no" title="statement not covered" ></span>
1246
+
<spanclass="cstat-no" title="statement not covered" > // Shallow copy the list of views to an internal array so that we can update with reshaped views without impacting the original list of views:</span>
1247
+
<spanclass="cstat-no" title="statement not covered" > v = copyIndexed( views );</span>
1248
+
<spanclass="cstat-no" title="statement not covered" ></span>
1234
1249
<spanclass="cstat-no" title="statement not covered" > // Iterate over blocks...</span>
1235
1250
<spanclass="cstat-no" title="statement not covered" > for ( j9 = sh[9]; j9 > 0; ) {</span>
1236
1251
<spanclass="cstat-no" title="statement not covered" > if ( j9 < bsize ) {</span>
<spanclass="cstat-no" title="statement not covered" > var S0;</span>
635
638
<spanclass="cstat-no" title="statement not covered" > var iv;</span>
636
639
<spanclass="cstat-no" title="statement not covered" > var i0;</span>
637
-
<spanclass="cstat-no" title="statement not covered" > var y;</span>
640
+
<spanclass="cstat-no" title="statement not covered" > var v;</span>
638
641
<spanclass="cstat-no" title="statement not covered" > var i;</span>
639
642
<spanclass="cstat-no" title="statement not covered" ></span>
640
643
<spanclass="cstat-no" title="statement not covered" > // Note on variable naming convention: S#, dv#, i# where # corresponds to the loop number, with `0` being the innermost loop...</span>
641
644
<spanclass="cstat-no" title="statement not covered" ></span>
642
-
<spanclass="cstat-no" title="statement not covered" > // Resolve the output ndarray:</span>
643
-
<spanclass="cstat-no" title="statement not covered" > y = arrays[ 1 ];</span>
644
-
<spanclass="cstat-no" title="statement not covered" ></span>
645
645
<spanclass="cstat-no" title="statement not covered" > // Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...</span>
646
646
<spanclass="cstat-no" title="statement not covered" > S0 = shape[ 0 ];</span>
647
647
<spanclass="cstat-no" title="statement not covered" > dv0 = [</span>
<spanclass="cstat-no" title="statement not covered" > // Resolve a list of pointers to the first indexed elements in the respective ndarrays:</span>
655
655
<spanclass="cstat-no" title="statement not covered" > iv = offsets( arrays );</span>
656
656
<spanclass="cstat-no" title="statement not covered" ></span>
657
+
<spanclass="cstat-no" title="statement not covered" > // Shallow copy the list of views to an internal array so that we can update with reshaped views without impacting the original list of views:</span>
658
+
<spanclass="cstat-no" title="statement not covered" > v = copyIndexed( views );</span>
659
+
<spanclass="cstat-no" title="statement not covered" ></span>
657
660
<spanclass="cstat-no" title="statement not covered" > // Iterate over the loop dimensions...</span>
658
661
<spanclass="cstat-no" title="statement not covered" > for ( i0 = 0; i0 < S0; i0++ ) {</span>
659
662
<spanclass="cstat-no" title="statement not covered" > setViewOffsets( views, iv );</span>
0 commit comments