Skip to content

Commit 9e421ad

Browse files
committed
Update artifacts
1 parent c7222b2 commit 9e421ad

File tree

6 files changed

+62
-47
lines changed

6 files changed

+62
-47
lines changed

ndarray/concat/assign.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
523523
<div class='footer quiet pad2 space-top1 center small'>
524524
Code coverage generated by
525525
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
526-
at 2025-09-07T07:27:21.835Z
526+
at 2025-09-08T07:46:13.321Z
527527
</div>
528528
<script src="../../../prettify.js"></script>
529529
<script>

ndarray/concat/coverage.ndjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[271,467,58.03,4,4,100,0,4,0,271,467,58.03,"1539193879177ff83c91bf2a62e2e12703fa8b56","2025-09-07 07:25:34 +0000"]
1+
[272,472,57.6271,4,4,100,0,4,0,272,472,57.6271,"30c433ffb66b0fad37b2d554da402b22883bd7d1","2025-09-08 07:44:25 +0000"]

ndarray/concat/index.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ <h1><a href="../../../index.html">All files</a> ndarray/concat/lib</h1>
2323
<div class='clearfix'>
2424

2525
<div class='fl pad1y space-right2'>
26-
<span class="strong">58.02% </span>
26+
<span class="strong">57.62% </span>
2727
<span class="quiet">Statements</span>
28-
<span class='fraction'>271/467</span>
28+
<span class='fraction'>272/472</span>
2929
</div>
3030

3131

@@ -44,9 +44,9 @@ <h1><a href="../../../index.html">All files</a> ndarray/concat/lib</h1>
4444

4545

4646
<div class='fl pad1y space-right2'>
47-
<span class="strong">58.02% </span>
47+
<span class="strong">57.62% </span>
4848
<span class="quiet">Lines</span>
49-
<span class='fraction'>271/467</span>
49+
<span class='fraction'>272/472</span>
5050
</div>
5151

5252

@@ -110,32 +110,32 @@ <h1><a href="../../../index.html">All files</a> ndarray/concat/lib</h1>
110110

111111
<tr>
112112
<td class="file low" data-value="main.js"><a href="main.js.html">main.js</a></td>
113-
<td data-value="49.28" class="pic low">
114-
<div class="chart"><div class="cover-fill" style="width: 49%"></div><div class="cover-empty" style="width: 51%"></div></div>
113+
<td data-value="48.29" class="pic low">
114+
<div class="chart"><div class="cover-fill" style="width: 48%"></div><div class="cover-empty" style="width: 52%"></div></div>
115115
</td>
116-
<td data-value="49.28" class="pct low">49.28%</td>
117-
<td data-value="140" class="abs low">69/140</td>
116+
<td data-value="48.29" class="pct low">48.29%</td>
117+
<td data-value="147" class="abs low">71/147</td>
118118
<td data-value="100" class="pct high">100%</td>
119119
<td data-value="1" class="abs high">1/1</td>
120120
<td data-value="0" class="pct low">0%</td>
121121
<td data-value="1" class="abs low">0/1</td>
122-
<td data-value="49.28" class="pct low">49.28%</td>
123-
<td data-value="140" class="abs low">69/140</td>
122+
<td data-value="48.29" class="pct low">48.29%</td>
123+
<td data-value="147" class="abs low">71/147</td>
124124
</tr>
125125

126126
<tr>
127127
<td class="file medium" data-value="output.js"><a href="output.js.html">output.js</a></td>
128-
<td data-value="57.39" class="pic medium">
128+
<td data-value="57.52" class="pic medium">
129129
<div class="chart"><div class="cover-fill" style="width: 57%"></div><div class="cover-empty" style="width: 43%"></div></div>
130130
</td>
131-
<td data-value="57.39" class="pct medium">57.39%</td>
132-
<td data-value="115" class="abs medium">66/115</td>
131+
<td data-value="57.52" class="pct medium">57.52%</td>
132+
<td data-value="113" class="abs medium">65/113</td>
133133
<td data-value="100" class="pct high">100%</td>
134134
<td data-value="1" class="abs high">1/1</td>
135135
<td data-value="0" class="pct low">0%</td>
136136
<td data-value="2" class="abs low">0/2</td>
137-
<td data-value="57.39" class="pct medium">57.39%</td>
138-
<td data-value="115" class="abs medium">66/115</td>
137+
<td data-value="57.52" class="pct medium">57.52%</td>
138+
<td data-value="113" class="abs medium">65/113</td>
139139
</tr>
140140

141141
</tbody>
@@ -146,7 +146,7 @@ <h1><a href="../../../index.html">All files</a> ndarray/concat/lib</h1>
146146
<div class='footer quiet pad2 space-top1 center small'>
147147
Code coverage generated by
148148
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
149-
at 2025-09-07T07:27:21.835Z
149+
at 2025-09-08T07:46:13.321Z
150150
</div>
151151
<script src="../../../prettify.js"></script>
152152
<script>

ndarray/concat/index.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
253253
<div class='footer quiet pad2 space-top1 center small'>
254254
Code coverage generated by
255255
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
256-
at 2025-09-07T07:27:21.835Z
256+
at 2025-09-08T07:46:13.321Z
257257
</div>
258258
<script src="../../../prettify.js"></script>
259259
<script>

ndarray/concat/main.js.html

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
2323
<div class='clearfix'>
2424

2525
<div class='fl pad1y space-right2'>
26-
<span class="strong">49.28% </span>
26+
<span class="strong">48.29% </span>
2727
<span class="quiet">Statements</span>
28-
<span class='fraction'>69/140</span>
28+
<span class='fraction'>71/147</span>
2929
</div>
3030

3131

@@ -44,9 +44,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
4444

4545

4646
<div class='fl pad1y space-right2'>
47-
<span class="strong">49.28% </span>
47+
<span class="strong">48.29% </span>
4848
<span class="quiet">Lines</span>
49-
<span class='fraction'>69/140</span>
49+
<span class='fraction'>71/147</span>
5050
</div>
5151

5252

@@ -203,7 +203,14 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
203203
<a name='L138'></a><a href='#L138'>138</a>
204204
<a name='L139'></a><a href='#L139'>139</a>
205205
<a name='L140'></a><a href='#L140'>140</a>
206-
<a name='L141'></a><a href='#L141'>141</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
206+
<a name='L141'></a><a href='#L141'>141</a>
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>
210+
<a name='L145'></a><a href='#L145'>145</a>
211+
<a name='L146'></a><a href='#L146'>146</a>
212+
<a name='L147'></a><a href='#L147'>147</a>
213+
<a name='L148'></a><a href='#L148'>148</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
207214
<span class="cline-any cline-yes">1x</span>
208215
<span class="cline-any cline-yes">1x</span>
209216
<span class="cline-any cline-yes">1x</span>
@@ -267,6 +274,13 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
267274
<span class="cline-any cline-yes">1x</span>
268275
<span class="cline-any cline-yes">1x</span>
269276
<span class="cline-any cline-yes">1x</span>
277+
<span class="cline-any cline-yes">1x</span>
278+
<span class="cline-any cline-yes">1x</span>
279+
<span class="cline-any cline-no">&nbsp;</span>
280+
<span class="cline-any cline-no">&nbsp;</span>
281+
<span class="cline-any cline-no">&nbsp;</span>
282+
<span class="cline-any cline-no">&nbsp;</span>
283+
<span class="cline-any cline-no">&nbsp;</span>
270284
<span class="cline-any cline-no">&nbsp;</span>
271285
<span class="cline-any cline-no">&nbsp;</span>
272286
<span class="cline-any cline-no">&nbsp;</span>
@@ -370,6 +384,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
370384
var isndarrayLike = require( '@stdlib/assert/is-ndarray-like' );
371385
var indicesComplement = require( '@stdlib/array/base/indices-complement' );
372386
var nditerStacks = require( '@stdlib/ndarray/iter/stacks' );
387+
var isNonNegativeInteger = require( '@stdlib/assert/is-nonnegative-integer' );
373388
var getShape = require( '@stdlib/ndarray/shape' );
374389
var getStrides = require( '@stdlib/ndarray/strides' );
375390
var getDtype = require( '@stdlib/ndarray/dtype' );
@@ -385,9 +400,10 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
385400
* Concatenates a list of ndarrays along a specified ndarray dimension.
386401
*
387402
* @param {ArrayLikeObject&lt;Object&gt;} arrays - array-like object containing input ndarrays
388-
* @param {integer} dim - dimension along which the arrays are concatenated
403+
* @param {NegativeInteger} dim - dimension along which the arrays are concatenated
389404
* @throws {TypeError} first argument must be an array of ndarray-like objects
390-
* @throws {RangeError} first argument must have more than one ndarray
405+
* @throws {RangeError} first argument must have one or more ndarrays
406+
* @throws {TypeError} second argument must be a negative integer
391407
* @returns {ndarray} output ndarray
392408
*
393409
* @example
@@ -401,11 +417,11 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
401417
* var ybuf = new Float64Array( [ -5.0, 6.0, -7.0, 8.0, -9.0, 10.0 ] );
402418
* var y = new ndarray( 'float64', ybuf, [ 2, 3 ], [ 3, 1 ], 0, 'row-major' );
403419
*
404-
* var out = concat( [ x, y ] );
420+
* var out = concat( [ x, y ], -1 );
405421
* // returns &lt;ndarray&gt;
406422
*
407423
* var arr = ndarray2array( out );
408-
* // returns [ [ -1.0, 2.0, -5.0, 6.0, 7.0 ], [ -3.0, 4.0, 8.0, 9.0, 10.0 ] ]
424+
* // returns [ [ -1.0, 2.0, -5.0, 6.0, -7.0 ], [ -3.0, 4.0, 8.0, -9.0, 10.0 ] ]
409425
*/
410426
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >function concat( arrays, dim ) {</span></span>
411427
<span class="cstat-no" title="statement not covered" > var istacks;</span>
@@ -414,6 +430,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
414430
<span class="cstat-no" title="statement not covered" > var shapes;</span>
415431
<span class="cstat-no" title="statement not covered" > var dtypes;</span>
416432
<span class="cstat-no" title="statement not covered" > var orders;</span>
433+
<span class="cstat-no" title="statement not covered" > var nargs;</span>
417434
<span class="cstat-no" title="statement not covered" > var arrs;</span>
418435
<span class="cstat-no" title="statement not covered" > var out;</span>
419436
<span class="cstat-no" title="statement not covered" > var mi;</span>
@@ -422,10 +439,14 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
422439
<span class="cstat-no" title="statement not covered" > var s;</span>
423440
<span class="cstat-no" title="statement not covered" > var i;</span>
424441
<span class="cstat-no" title="statement not covered" ></span>
442+
<span class="cstat-no" title="statement not covered" > nargs = arguments.length;</span>
443+
<span class="cstat-no" title="statement not covered" > if ( nargs === 2 &amp;&amp; isNonNegativeInteger( dim ) ) {</span>
444+
<span class="cstat-no" title="statement not covered" > throw new TypeError( format( 'invalid argument. Second argument must be a negative integer. Value: `%s`.', dim ) );</span>
445+
<span class="cstat-no" title="statement not covered" > }</span>
425446
<span class="cstat-no" title="statement not covered" > N = arrays.length;</span>
426447
<span class="cstat-no" title="statement not covered" > arrs = [];</span>
427448
<span class="cstat-no" title="statement not covered" > if ( N &lt; 1 ) {</span>
428-
<span class="cstat-no" title="statement not covered" > throw new RangeError( format( 'invalid argument. First argument must have more than one ndarray. Value: `%s`.', N ) );</span>
449+
<span class="cstat-no" title="statement not covered" > throw new RangeError( format( 'invalid argument. First argument must have one or more ndarrays. Value: `%s`.', N ) );</span>
429450
<span class="cstat-no" title="statement not covered" > }</span>
430451
<span class="cstat-no" title="statement not covered" > // Unpack the ndarrays and standardize ndarray meta data:</span>
431452
<span class="cstat-no" title="statement not covered" > shapes = [];</span>
@@ -434,7 +455,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
434455
<span class="cstat-no" title="statement not covered" > orders = [];</span>
435456
<span class="cstat-no" title="statement not covered" > for ( i = 0; i &lt; N; i++ ) {</span>
436457
<span class="cstat-no" title="statement not covered" > if ( !isndarrayLike( arrays[ i ] ) ) {</span>
437-
<span class="cstat-no" title="statement not covered" > throw new TypeError( format( 'invalid argument. First argument must be an array of ndarray-like objects. Value: `%s`.', arrays[ i ] ) );</span>
458+
<span class="cstat-no" title="statement not covered" > throw new TypeError( format( 'invalid argument. First argument must be an array of ndarrays. Value: `%s`.', arrays[ i ] ) );</span>
438459
<span class="cstat-no" title="statement not covered" > }</span>
439460
<span class="cstat-no" title="statement not covered" > arrs[ i ] = arrays[ i ];</span>
440461
<span class="cstat-no" title="statement not covered" > shapes.push( getShape( arrs[ i ] ) );</span>
@@ -490,7 +511,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
490511
<div class='footer quiet pad2 space-top1 center small'>
491512
Code coverage generated by
492513
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
493-
at 2025-09-07T07:27:21.835Z
514+
at 2025-09-08T07:46:13.321Z
494515
</div>
495516
<script src="../../../prettify.js"></script>
496517
<script>

ndarray/concat/output.js.html

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
2323
<div class='clearfix'>
2424

2525
<div class='fl pad1y space-right2'>
26-
<span class="strong">57.39% </span>
26+
<span class="strong">57.52% </span>
2727
<span class="quiet">Statements</span>
28-
<span class='fraction'>66/115</span>
28+
<span class='fraction'>65/113</span>
2929
</div>
3030

3131

@@ -44,9 +44,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
4444

4545

4646
<div class='fl pad1y space-right2'>
47-
<span class="strong">57.39% </span>
47+
<span class="strong">57.52% </span>
4848
<span class="quiet">Lines</span>
49-
<span class='fraction'>66/115</span>
49+
<span class='fraction'>65/113</span>
5050
</div>
5151

5252

@@ -176,10 +176,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
176176
<a name='L111'></a><a href='#L111'>111</a>
177177
<a name='L112'></a><a href='#L112'>112</a>
178178
<a name='L113'></a><a href='#L113'>113</a>
179-
<a name='L114'></a><a href='#L114'>114</a>
180-
<a name='L115'></a><a href='#L115'>115</a>
181-
<a name='L116'></a><a href='#L116'>116</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
182-
<span class="cline-any cline-yes">1x</span>
179+
<a name='L114'></a><a href='#L114'>114</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
183180
<span class="cline-any cline-yes">1x</span>
184181
<span class="cline-any cline-yes">1x</span>
185182
<span class="cline-any cline-yes">1x</span>
@@ -287,7 +284,6 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
287284
<span class="cline-any cline-no">&nbsp;</span>
288285
<span class="cline-any cline-no">&nbsp;</span>
289286
<span class="cline-any cline-no">&nbsp;</span>
290-
<span class="cline-any cline-no">&nbsp;</span>
291287
<span class="cline-any cline-yes">1x</span>
292288
<span class="cline-any cline-yes">1x</span>
293289
<span class="cline-any cline-yes">1x</span>
@@ -321,7 +317,6 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
321317
var slice = require( '@stdlib/array/slice' );
322318
var getShape = require( '@stdlib/ndarray/shape' );
323319
var getDtype = require( '@stdlib/ndarray/dtype' );
324-
var getOrder = require( '@stdlib/ndarray/order' );
325320
var format = require( '@stdlib/string/format' );
326321
&nbsp;
327322
&nbsp;
@@ -368,6 +363,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
368363
*/
369364
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >function output( shapes, dtypes, orders, dim, out ) {</span></span>
370365
<span class="cstat-no" title="statement not covered" > var ord;</span>
366+
<span class="cstat-no" title="statement not covered" > var osh;</span>
371367
<span class="cstat-no" title="statement not covered" > var sh;</span>
372368
<span class="cstat-no" title="statement not covered" > var dt;</span>
373369
<span class="cstat-no" title="statement not covered" > var s;</span>
@@ -384,14 +380,12 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
384380
<span class="cstat-no" title="statement not covered" > if ( getDtype( out ) !== dt ) {</span>
385381
<span class="cstat-no" title="statement not covered" > throw new TypeError( format( 'invalid argument. Output ndarray must have a dtype of `%s`. Value: `%s`.', dt, getDtype( out ) ) );</span>
386382
<span class="cstat-no" title="statement not covered" > }</span>
387-
<span class="cstat-no" title="statement not covered" > if ( getOrder( out ) !== ord ) {</span>
388-
<span class="cstat-no" title="statement not covered" > throw new TypeError( format( 'invalid argument. Output ndarray must have an order of `%s`. Value: `%s`.', ord, getOrder( out ) ) );</span>
389-
<span class="cstat-no" title="statement not covered" > }</span>
390-
<span class="cstat-no" title="statement not covered" > if ( getShape( out ).length !== sh.length ) {</span>
383+
<span class="cstat-no" title="statement not covered" > osh = getShape( out );</span>
384+
<span class="cstat-no" title="statement not covered" > if ( osh.length !== sh.length ) {</span>
391385
<span class="cstat-no" title="statement not covered" > throw new RangeError( format( 'invalid argument. Output ndarray must have %d dimensions. Value: %d.', sh.length, getShape( out ).length ) );</span>
392386
<span class="cstat-no" title="statement not covered" > }</span>
393387
<span class="cstat-no" title="statement not covered" > for ( i = 0; i &lt; sh.length; i++ ) {</span>
394-
<span class="cstat-no" title="statement not covered" > if ( getShape( out )[ i ] !== sh[ i ] ) {</span>
388+
<span class="cstat-no" title="statement not covered" > if ( osh[ i ] !== sh[ i ] ) {</span>
395389
<span class="cstat-no" title="statement not covered" > throw new RangeError( format( 'invalid argument. Output ndarray dimension %d must have size %d. Value: %d.', i, sh[ i ], getShape( out )[ i ] ) );</span>
396390
<span class="cstat-no" title="statement not covered" > }</span>
397391
<span class="cstat-no" title="statement not covered" > }</span>
@@ -415,7 +409,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/c
415409
<div class='footer quiet pad2 space-top1 center small'>
416410
Code coverage generated by
417411
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
418-
at 2025-09-07T07:27:21.835Z
412+
at 2025-09-08T07:46:13.321Z
419413
</div>
420414
<script src="../../../prettify.js"></script>
421415
<script>

0 commit comments

Comments
 (0)