@@ -25,14 +25,14 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
25
25
< div class ='fl pad1y space-right2 '>
26
26
< span class ="strong "> 100% </ span >
27
27
< span class ="quiet "> Statements</ span >
28
- < span class ='fraction '> 143/143 </ span >
28
+ < span class ='fraction '> 142/142 </ span >
29
29
</ div >
30
30
31
31
32
32
< div class ='fl pad1y space-right2 '>
33
33
< span class ="strong "> 100% </ span >
34
34
< span class ="quiet "> Branches</ span >
35
- < span class ='fraction '> 16/16 </ span >
35
+ < span class ='fraction '> 14/14 </ span >
36
36
</ div >
37
37
38
38
@@ -46,7 +46,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
46
46
< div class ='fl pad1y space-right2 '>
47
47
< span class ="strong "> 100% </ span >
48
48
< span class ="quiet "> Lines</ span >
49
- < span class ='fraction '> 143/143 </ span >
49
+ < span class ='fraction '> 142/142 </ span >
50
50
</ div >
51
51
52
52
@@ -205,8 +205,8 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
205
205
< a name ='L140 '> </ a > < a href ='#L140 '> 140</ a >
206
206
< a name ='L141 '> </ a > < a href ='#L141 '> 141</ a >
207
207
< a name ='L142 '> </ a > < a href ='#L142 '> 142</ a >
208
- < a name ='L143 '> </ a > < a href ='#L143 '> 143</ a >
209
- < a name =' L144 ' > </ a > < a href =' #L144 ' > 144 </ a > </ td > < td class =" line-coverage quiet " > < span class ="cline-any cline-yes "> 1x</ span >
208
+ < a name ='L143 '> </ a > < a href ='#L143 '> 143</ a > </ td > < td class =" line-coverage quiet " > < span class =" cline-any cline-yes " > 1x </ span >
209
+ < span class ="cline-any cline-yes "> 1x</ span >
210
210
< span class ="cline-any cline-yes "> 1x</ span >
211
211
< span class ="cline-any cline-yes "> 1x</ span >
212
212
< span class ="cline-any cline-yes "> 1x</ span >
@@ -316,9 +316,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
316
316
< span class ="cline-any cline-yes "> 10x</ span >
317
317
< span class ="cline-any cline-yes "> 20x</ span >
318
318
< span class ="cline-any cline-yes "> 20x</ span >
319
- < span class ="cline-any cline-yes "> 30x</ span >
320
- < span class ="cline-any cline-yes "> 60x</ span >
321
- < span class ="cline-any cline-yes "> 60x</ span >
319
+ < span class ="cline-any cline-yes "> 20x</ span >
322
320
< span class ="cline-any cline-yes "> 20x</ span >
323
321
< span class ="cline-any cline-yes "> 20x</ span >
324
322
< span class ="cline-any cline-yes "> 30x</ span >
@@ -379,6 +377,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
379
377
var getOrder = require( '@stdlib/ndarray/base/order' );
380
378
var getDType = require( '@stdlib/ndarray/base/dtype' );
381
379
var getData = require( '@stdlib/ndarray/base/data-buffer' );
380
+ var zeros = require( '@stdlib/array/base/zeros' );
382
381
var format = require( '@stdlib/string/format' );
383
382
384
383
@@ -457,11 +456,9 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
457
456
if ( N < M ) {
458
457
throw new Error( 'invalid argument. Cannot broadcast an array to a shape having fewer dimensions. Arrays can only be broadcasted to shapes having the same or more dimensions.' );
459
458
}
460
- // Initialize a strides array...
461
- strides = [];
462
- for ( i = 0; i < N; i++ ) {
463
- strides.push( 0 );
464
- }
459
+ // Initialize a strides array:
460
+ strides = zeros( N );
461
+
465
462
// Determine the output array strides...
466
463
st = getStrides( arr, false );
467
464
for ( i = N-1; i >= 0; i-- ) {
@@ -499,7 +496,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
499
496
< div class ='footer quiet pad2 space-top1 center small '>
500
497
Code coverage generated by
501
498
< a href ="https://istanbul.js.org/ " target ="_blank " rel ="noopener noreferrer "> istanbul</ a >
502
- at 2024-09-28T21:10:39.298Z
499
+ at 2025-08-29T12:13:06.927Z
503
500
</ div >
504
501
< script src ="../../../../prettify.js "> </ script >
505
502
< script >
0 commit comments