@@ -25,14 +25,14 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
2525 < div class ='fl pad1y space-right2 '>
2626 < span class ="strong "> 100% </ span >
2727 < span class ="quiet "> Statements</ span >
28- < span class ='fraction '> 143/143 </ span >
28+ < span class ='fraction '> 142/142 </ span >
2929 </ div >
3030
3131
3232 < div class ='fl pad1y space-right2 '>
3333 < span class ="strong "> 100% </ span >
3434 < span class ="quiet "> Branches</ span >
35- < span class ='fraction '> 16/16 </ span >
35+ < span class ='fraction '> 14/14 </ span >
3636 </ div >
3737
3838
@@ -46,7 +46,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
4646 < div class ='fl pad1y space-right2 '>
4747 < span class ="strong "> 100% </ span >
4848 < span class ="quiet "> Lines</ span >
49- < span class ='fraction '> 143/143 </ span >
49+ < span class ='fraction '> 142/142 </ span >
5050 </ div >
5151
5252
@@ -205,8 +205,8 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
205205< a name ='L140 '> </ a > < a href ='#L140 '> 140</ a >
206206< a name ='L141 '> </ a > < a href ='#L141 '> 141</ a >
207207< 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 >
210210< span class ="cline-any cline-yes "> 1x</ span >
211211< span class ="cline-any cline-yes "> 1x</ span >
212212< 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
316316< span class ="cline-any cline-yes "> 10x</ span >
317317< span class ="cline-any cline-yes "> 20x</ span >
318318< 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 >
322320< span class ="cline-any cline-yes "> 20x</ span >
323321< span class ="cline-any cline-yes "> 20x</ span >
324322< 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
379377var getOrder = require( '@stdlib/ndarray/base/order' );
380378var getDType = require( '@stdlib/ndarray/base/dtype' );
381379var getData = require( '@stdlib/ndarray/base/data-buffer' );
380+ var zeros = require( '@stdlib/array/base/zeros' );
382381var format = require( '@stdlib/string/format' );
383382
384383
@@ -457,11 +456,9 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
457456 if ( N < M ) {
458457 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.' );
459458 }
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+
465462 // Determine the output array strides...
466463 st = getStrides( arr, false );
467464 for ( i = N-1; i >= 0; i-- ) {
@@ -499,7 +496,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
499496 < div class ='footer quiet pad2 space-top1 center small '>
500497 Code coverage generated by
501498 < 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
503500 </ div >
504501 < script src ="../../../../prettify.js "> </ script >
505502 < script >
0 commit comments