Skip to content

Commit

Permalink
Update artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Sep 30, 2023
1 parent fc7a2ed commit 07c9200
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 43 deletions.
1 change: 1 addition & 0 deletions ndarray/base/slice/coverage.ndjson
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
[430,430,100,29,29,100,5,5,100,430,430,100,"976d69a7c27bad4d43cfaf8bdd0d2838363a6d91","2023-09-27 01:14:43 -0700"]
[430,430,100,29,29,100,5,5,100,430,430,100,"70088a43e057dc3227ecd7180491e165ffd31c51","2023-09-27 01:32:43 -0700"]
[399,399,100,27,27,100,4,4,100,399,399,100,"96076ff03dd2a72f44e9b0d623ce2dfc88dd2b11","2023-09-29 19:38:19 -0700"]
[399,399,100,27,27,100,4,4,100,399,399,100,"3aa8ff7bab4bc2837509e30f494de310c2e7f676","2023-09-30 03:06:17 -0700"]
2 changes: 1 addition & 1 deletion ndarray/base/slice/empty.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-09-30T02:43:23.295Z
at 2023-09-30T10:43:11.086Z
</div>
<script src="../../../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion ndarray/base/slice/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h1><a href="../../../../index.html">All files</a> ndarray/base/slice/lib</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-09-30T02:43:23.295Z
at 2023-09-30T10:43:11.086Z
</div>
<script src="../../../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion ndarray/base/slice/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-09-30T02:43:23.295Z
at 2023-09-30T10:43:11.086Z
</div>
<script src="../../../../prettify.js"></script>
<script>
Expand Down
14 changes: 7 additions & 7 deletions ndarray/base/slice/main.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
* @param {ndarray} x - input array
* @param {MultiSlice} s - multi-slice object
* @param {boolean} strict - boolean indicating whether to enforce strict bounds checking
* @param {boolean} mutable - boolean indicating whether a returned array should be mutable
* @param {boolean} writable - boolean indicating whether a returned array should be writable
* @throws {RangeError} number of slice dimensions must match the number of array dimensions
* @throws {RangeError} slice exceeds array bounds
* @returns {ndarray} ndarray view
Expand Down Expand Up @@ -474,7 +474,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
* arr = ndarray2array( y );
* // returns [ [ 6.0, 5.0 ], [ 2.0, 1.0 ] ]
*/
function slice( x, s, strict, mutable ) {
function slice( x, s, strict, writable ) {
var strides;
var offset;
var dtype;
Expand Down Expand Up @@ -504,7 +504,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
// If provided a zero-dimensional input array, return a zero-dimensional array view...
if ( ndims === 0 ) {
return new ctor( dtype, x.data, shape, strides, offset, order, {
'readonly': !mutable
'readonly': !writable
});
}
// Resolve the indices of the non-reduced dimensions:
Expand Down Expand Up @@ -534,7 +534,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
}
// If the slice does not contain any elements, return an empty array...
if ( numel( sh ) === 0 ) {
return empty( ctor, dtype, take( sh, sdims ), order, !mutable );
return empty( ctor, dtype, take( sh, sdims ), order, !writable );
}
// Resolve the index offset of the first element indexed by the slice:
offset = sliceStart( ns, strides, offset ); // TODO: @stdlib/ndarray/base/sind2bind
Expand All @@ -545,15 +545,15 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
// If all dimensions were reduced, return a zero-dimensional array...
if ( sh.length === 0 ) {
return new ctor( dtype, x.data, [], [ 0 ], offset, order, {
'readonly': !mutable
'readonly': !writable
});
}
// Update strides according to slice steps:
strides = slice2strides( ns, strides, sdims ); // TODO: @stdlib/ndarray/base/slice2strides???
&nbsp;
// Return a slice view:
return new ctor( dtype, x.data, sh, strides, offset, order, {
'readonly': !mutable
'readonly': !writable
});
}
&nbsp;
Expand All @@ -568,7 +568,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-09-30T02:43:23.295Z
at 2023-09-30T10:43:11.086Z
</div>
<script src="../../../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion ndarray/base/slice/slice_start.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-09-30T02:43:23.295Z
at 2023-09-30T10:43:11.086Z
</div>
<script src="../../../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion ndarray/base/slice/slice_strides.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-09-30T02:43:23.295Z
at 2023-09-30T10:43:11.086Z
</div>
<script src="../../../../prettify.js"></script>
<script>
Expand Down
1 change: 1 addition & 0 deletions ndarray/slice-assign/coverage.ndjson
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
[247,247,100,27,27,100,1,1,100,247,247,100,"882f4e16d33cd7ab3a4dc900374df631aeec6cf8","2023-09-30 02:45:22 -0700"]
[252,252,100,29,29,100,1,1,100,252,252,100,"3aa8ff7bab4bc2837509e30f494de310c2e7f676","2023-09-30 03:06:17 -0700"]
14 changes: 7 additions & 7 deletions ndarray/slice-assign/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ <h1><a href="../../../index.html">All files</a> ndarray/slice-assign/lib</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>247/247</span>
<span class='fraction'>252/252</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>27/27</span>
<span class='fraction'>29/29</span>
</div>


Expand All @@ -46,7 +46,7 @@ <h1><a href="../../../index.html">All files</a> ndarray/slice-assign/lib</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>247/247</span>
<span class='fraction'>252/252</span>
</div>


Expand Down Expand Up @@ -99,13 +99,13 @@ <h1><a href="../../../index.html">All files</a> ndarray/slice-assign/lib</h1>
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="168" class="abs high">168/168</td>
<td data-value="173" class="abs high">173/173</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="26" class="abs high">26/26</td>
<td data-value="28" class="abs high">28/28</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1" class="abs high">1/1</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="168" class="abs high">168/168</td>
<td data-value="173" class="abs high">173/173</td>
</tr>

</tbody>
Expand All @@ -116,7 +116,7 @@ <h1><a href="../../../index.html">All files</a> ndarray/slice-assign/lib</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-09-30T09:55:10.166Z
at 2023-09-30T10:43:15.146Z
</div>
<script src="../../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion ndarray/slice-assign/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/s
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-09-30T09:55:10.166Z
at 2023-09-30T10:43:15.146Z
</div>
<script src="../../../prettify.js"></script>
<script>
Expand Down
61 changes: 38 additions & 23 deletions ndarray/slice-assign/main.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/s
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>168/168</span>
<span class='fraction'>173/173</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>26/26</span>
<span class='fraction'>28/28</span>
</div>


Expand All @@ -46,7 +46,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/s
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>168/168</span>
<span class='fraction'>173/173</span>
</div>


Expand Down Expand Up @@ -231,7 +231,12 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/s
<a name='L166'></a><a href='#L166'>166</a>
<a name='L167'></a><a href='#L167'>167</a>
<a name='L168'></a><a href='#L168'>168</a>
<a name='L169'></a><a href='#L169'>169</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
<a name='L169'></a><a href='#L169'>169</a>
<a name='L170'></a><a href='#L170'>170</a>
<a name='L171'></a><a href='#L171'>171</a>
<a name='L172'></a><a href='#L172'>172</a>
<a name='L173'></a><a href='#L173'>173</a>
<a name='L174'></a><a href='#L174'>174</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
Expand Down Expand Up @@ -331,25 +336,30 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/s
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">63x</span>
<span class="cline-any cline-yes">63x</span>
<span class="cline-any cline-yes">63x</span>
Expand All @@ -362,12 +372,12 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/s
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">63x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">92x</span>
<span class="cline-any cline-yes">92x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">75x</span>
<span class="cline-any cline-yes">29x</span>
<span class="cline-any cline-yes">29x</span>
Expand All @@ -393,7 +403,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/s
<span class="cline-any cline-yes">26x</span>
<span class="cline-any cline-yes">75x</span>
<span class="cline-any cline-yes">123x</span>
<span class="cline-any cline-yes">266x</span>
<span class="cline-any cline-yes">269x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
Expand Down Expand Up @@ -426,6 +436,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/s
var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' );
var isPlainObject = require( '@stdlib/assert/is-plain-object' );
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
var isReadOnly = require( '@stdlib/ndarray/base/assert/is-read-only' );
var hasOwnProp = require( '@stdlib/assert/has-own-property' );
var MultiSlice = require( '@stdlib/slice/multi' );
var base = require( '@stdlib/ndarray/base/slice-assign' );
Expand Down Expand Up @@ -453,6 +464,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/s
* @throws {RangeError} slice exceeds array bounds
* @throws {Error} input array must be broadcast compatible with an output array view
* @throws {TypeError} input array cannot be safely cast to the output array data type
* @throws {Error} cannot write to a read-only ndarray
* @returns {ndarray} output array
*
* @example
Expand Down Expand Up @@ -517,6 +529,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/s
if ( !isndarrayLike( y ) ) {
throw new TypeError( format( 'invalid argument. Second argument must be an ndarray. Value: `%s`.', y ) );
}
if ( isReadOnly( y ) ) {
throw new Error( 'invalid argument. Cannot write to a read-only array.' );
}
if ( isPlainObject( arguments[ nargs-1 ] ) ) {
nargs -= 1;
options = arguments[ nargs ];
Expand Down Expand Up @@ -574,7 +589,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">ndarray/s
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-09-30T09:55:10.166Z
at 2023-09-30T10:43:15.146Z
</div>
<script src="../../../prettify.js"></script>
<script>
Expand Down

0 comments on commit 07c9200

Please sign in to comment.