Skip to content

Commit e2e60fd

Browse files
committed
Update artifacts
1 parent f29d85d commit e2e60fd

File tree

16 files changed

+1859
-116
lines changed

16 files changed

+1859
-116
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[116,116,100,13,13,100,1,1,100,116,116,100,"733ee4954b08c24007460390d688fe86bb1e8fae","2023-10-14 03:17:05 -0700"]
22
[116,116,100,13,13,100,1,1,100,116,116,100,"5d57761c446339e796d1add0c03b7febfa4253fd","2025-04-02 02:26:44 -0700"]
33
[116,116,100,13,13,100,1,1,100,116,116,100,"82ef59aadd8de578d9a57780108e3ff4cb440dfe","2025-06-28 23:49:06 -0700"]
4+
[123,123,100,13,13,100,1,1,100,123,123,100,"832da9fbeec39f4bb00ad8ca14d322a1bc399faa","2025-09-20 02:17:40 -0700"]

ndarray/base/assert/is-allowed-data-type-cast/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1><a href="../../../../../index.html">All files</a> ndarray/base/assert/is-all
2525
<div class='fl pad1y space-right2'>
2626
<span class="strong">100% </span>
2727
<span class="quiet">Statements</span>
28-
<span class='fraction'>116/116</span>
28+
<span class='fraction'>123/123</span>
2929
</div>
3030

3131

@@ -46,7 +46,7 @@ <h1><a href="../../../../../index.html">All files</a> ndarray/base/assert/is-all
4646
<div class='fl pad1y space-right2'>
4747
<span class="strong">100% </span>
4848
<span class="quiet">Lines</span>
49-
<span class='fraction'>116/116</span>
49+
<span class='fraction'>123/123</span>
5050
</div>
5151

5252

@@ -99,13 +99,13 @@ <h1><a href="../../../../../index.html">All files</a> ndarray/base/assert/is-all
9999
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
100100
</td>
101101
<td data-value="100" class="pct high">100%</td>
102-
<td data-value="73" class="abs high">73/73</td>
102+
<td data-value="80" class="abs high">80/80</td>
103103
<td data-value="100" class="pct high">100%</td>
104104
<td data-value="12" class="abs high">12/12</td>
105105
<td data-value="100" class="pct high">100%</td>
106106
<td data-value="1" class="abs high">1/1</td>
107107
<td data-value="100" class="pct high">100%</td>
108-
<td data-value="73" class="abs high">73/73</td>
108+
<td data-value="80" class="abs high">80/80</td>
109109
</tr>
110110

111111
</tbody>
@@ -116,7 +116,7 @@ <h1><a href="../../../../../index.html">All files</a> ndarray/base/assert/is-all
116116
<div class='footer quiet pad2 space-top1 center small'>
117117
Code coverage generated by
118118
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119-
at 2025-06-29T06:51:38.352Z
119+
at 2025-09-20T09:19:00.053Z
120120
</div>
121121
<script src="../../../../../prettify.js"></script>
122122
<script>

ndarray/base/assert/is-allowed-data-type-cast/index.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">nda
199199
<div class='footer quiet pad2 space-top1 center small'>
200200
Code coverage generated by
201201
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
202-
at 2025-06-29T06:51:38.352Z
202+
at 2025-09-20T09:19:00.053Z
203203
</div>
204204
<script src="../../../../../prettify.js"></script>
205205
<script>

ndarray/base/assert/is-allowed-data-type-cast/main.js.html

Lines changed: 52 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">nda
2525
<div class='fl pad1y space-right2'>
2626
<span class="strong">100% </span>
2727
<span class="quiet">Statements</span>
28-
<span class='fraction'>73/73</span>
28+
<span class='fraction'>80/80</span>
2929
</div>
3030

3131

@@ -46,7 +46,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">nda
4646
<div class='fl pad1y space-right2'>
4747
<span class="strong">100% </span>
4848
<span class="quiet">Lines</span>
49-
<span class='fraction'>73/73</span>
49+
<span class='fraction'>80/80</span>
5050
</div>
5151

5252

@@ -136,7 +136,14 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">nda
136136
<a name='L71'></a><a href='#L71'>71</a>
137137
<a name='L72'></a><a href='#L72'>72</a>
138138
<a name='L73'></a><a href='#L73'>73</a>
139-
<a name='L74'></a><a href='#L74'>74</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
139+
<a name='L74'></a><a href='#L74'>74</a>
140+
<a name='L75'></a><a href='#L75'>75</a>
141+
<a name='L76'></a><a href='#L76'>76</a>
142+
<a name='L77'></a><a href='#L77'>77</a>
143+
<a name='L78'></a><a href='#L78'>78</a>
144+
<a name='L79'></a><a href='#L79'>79</a>
145+
<a name='L80'></a><a href='#L80'>80</a>
146+
<a name='L81'></a><a href='#L81'>81</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
140147
<span class="cline-any cline-yes">1x</span>
141148
<span class="cline-any cline-yes">1x</span>
142149
<span class="cline-any cline-yes">1x</span>
@@ -180,30 +187,37 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">nda
180187
<span class="cline-any cline-yes">1x</span>
181188
<span class="cline-any cline-yes">1x</span>
182189
<span class="cline-any cline-yes">1x</span>
183-
<span class="cline-any cline-yes">1536x</span>
184-
<span class="cline-any cline-yes">1536x</span>
185-
<span class="cline-any cline-yes">1536x</span>
186-
<span class="cline-any cline-yes">256x</span>
187-
<span class="cline-any cline-yes">256x</span>
188-
<span class="cline-any cline-yes">1280x</span>
189-
<span class="cline-any cline-yes">1536x</span>
190-
<span class="cline-any cline-yes">80x</span>
191-
<span class="cline-any cline-yes">80x</span>
192-
<span class="cline-any cline-yes">1200x</span>
193-
<span class="cline-any cline-yes">1536x</span>
194-
<span class="cline-any cline-yes">480x</span>
195-
<span class="cline-any cline-yes">480x</span>
196-
<span class="cline-any cline-yes">720x</span>
197-
<span class="cline-any cline-yes">1536x</span>
198-
<span class="cline-any cline-yes">240x</span>
199-
<span class="cline-any cline-yes">240x</span>
200-
<span class="cline-any cline-yes">480x</span>
201-
<span class="cline-any cline-yes">1536x</span>
202-
<span class="cline-any cline-yes">240x</span>
203-
<span class="cline-any cline-yes">240x</span>
204-
<span class="cline-any cline-yes">240x</span>
205-
<span class="cline-any cline-yes">240x</span>
206-
<span class="cline-any cline-yes">1536x</span>
190+
<span class="cline-any cline-yes">1x</span>
191+
<span class="cline-any cline-yes">4644x</span>
192+
<span class="cline-any cline-yes">4644x</span>
193+
<span class="cline-any cline-yes">4644x</span>
194+
<span class="cline-any cline-yes">4644x</span>
195+
<span class="cline-any cline-yes">4644x</span>
196+
<span class="cline-any cline-yes">4644x</span>
197+
<span class="cline-any cline-yes">774x</span>
198+
<span class="cline-any cline-yes">774x</span>
199+
<span class="cline-any cline-yes">3870x</span>
200+
<span class="cline-any cline-yes">3870x</span>
201+
<span class="cline-any cline-yes">3870x</span>
202+
<span class="cline-any cline-yes">3870x</span>
203+
<span class="cline-any cline-yes">4644x</span>
204+
<span class="cline-any cline-yes">260x</span>
205+
<span class="cline-any cline-yes">260x</span>
206+
<span class="cline-any cline-yes">3610x</span>
207+
<span class="cline-any cline-yes">4644x</span>
208+
<span class="cline-any cline-yes">1444x</span>
209+
<span class="cline-any cline-yes">1444x</span>
210+
<span class="cline-any cline-yes">2166x</span>
211+
<span class="cline-any cline-yes">4644x</span>
212+
<span class="cline-any cline-yes">722x</span>
213+
<span class="cline-any cline-yes">722x</span>
214+
<span class="cline-any cline-yes">1444x</span>
215+
<span class="cline-any cline-yes">4644x</span>
216+
<span class="cline-any cline-yes">722x</span>
217+
<span class="cline-any cline-yes">722x</span>
218+
<span class="cline-any cline-yes">722x</span>
219+
<span class="cline-any cline-yes">722x</span>
220+
<span class="cline-any cline-yes">4644x</span>
207221
<span class="cline-any cline-yes">1x</span>
208222
<span class="cline-any cline-yes">1x</span>
209223
<span class="cline-any cline-yes">1x</span>
@@ -234,15 +248,16 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">nda
234248
var isSafeCast = require( '@stdlib/ndarray/base/assert/is-safe-data-type-cast' );
235249
var isMostlySafeCast = require( '@stdlib/ndarray/base/assert/is-mostly-safe-data-type-cast' );
236250
var isSameKindCast = require( '@stdlib/ndarray/base/assert/is-same-kind-data-type-cast' );
251+
var resolveStr = require( '@stdlib/ndarray/base/dtype-resolve-str' );
237252
&nbsp;
238253
&nbsp;
239254
// MAIN //
240255
&nbsp;
241256
/**
242257
* Returns a boolean indicating if a provided ndarray data type can be cast to another ndarray data type according to a specified casting mode.
243258
*
244-
* @param {string} from - ndarray data type
245-
* @param {string} to - ndarray data type
259+
* @param {*} from - ndarray data type
260+
* @param {*} to - ndarray data type
246261
* @param {string} casting - ndarray casting mode
247262
* @returns {boolean} boolean indicating if a data type can be cast to another data type
248263
*
@@ -254,12 +269,18 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">nda
254269
* // returns false
255270
*/
256271
function isAllowedCast( from, to, casting ) {
272+
var dt1;
273+
var dt2;
274+
&nbsp;
257275
// Anything goes for "unsafe" casting...
258276
if ( casting === 'unsafe' ) {
259277
return true;
260278
}
279+
dt1 = resolveStr( from );
280+
dt2 = resolveStr( to );
281+
&nbsp;
261282
// "Casting" to the same data type is always allowed, regardless of the casting mode...
262-
if ( from === to ) {
283+
if ( dt1 === dt2 ) {
263284
return true;
264285
}
265286
// No casts between different data types are allowed in "none" or "equiv" casting modes...
@@ -289,7 +310,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">nda
289310
<div class='footer quiet pad2 space-top1 center small'>
290311
Code coverage generated by
291312
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
292-
at 2025-06-29T06:51:38.352Z
313+
at 2025-09-20T09:19:00.053Z
293314
</div>
294315
<script src="../../../../../prettify.js"></script>
295316
<script>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
[279,279,100,28,28,100,8,8,100,279,279,100,"6e44b9608dbef8f4d1fe6a80fccf124ac7970cf3","2025-03-23 04:13:58 -0700"]
2+
[337,337,100,33,33,100,9,9,100,337,337,100,"832da9fbeec39f4bb00ad8ca14d322a1bc399faa","2025-09-20 02:17:40 -0700"]

ndarray/base/assert/is-scalar-mostly-safe-compatible/index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,28 @@ <h1><a href="../../../../../index.html">All files</a> ndarray/base/assert/is-sca
2525
<div class='fl pad1y space-right2'>
2626
<span class="strong">100% </span>
2727
<span class="quiet">Statements</span>
28-
<span class='fraction'>279/279</span>
28+
<span class='fraction'>337/337</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'>28/28</span>
35+
<span class='fraction'>33/33</span>
3636
</div>
3737

3838

3939
<div class='fl pad1y space-right2'>
4040
<span class="strong">100% </span>
4141
<span class="quiet">Functions</span>
42-
<span class='fraction'>8/8</span>
42+
<span class='fraction'>9/9</span>
4343
</div>
4444

4545

4646
<div class='fl pad1y space-right2'>
4747
<span class="strong">100% </span>
4848
<span class="quiet">Lines</span>
49-
<span class='fraction'>279/279</span>
49+
<span class='fraction'>337/337</span>
5050
</div>
5151

5252

@@ -99,13 +99,13 @@ <h1><a href="../../../../../index.html">All files</a> ndarray/base/assert/is-sca
9999
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
100100
</td>
101101
<td data-value="100" class="pct high">100%</td>
102-
<td data-value="233" class="abs high">233/233</td>
102+
<td data-value="291" class="abs high">291/291</td>
103103
<td data-value="100" class="pct high">100%</td>
104-
<td data-value="27" class="abs high">27/27</td>
104+
<td data-value="32" class="abs high">32/32</td>
105105
<td data-value="100" class="pct high">100%</td>
106-
<td data-value="8" class="abs high">8/8</td>
106+
<td data-value="9" class="abs high">9/9</td>
107107
<td data-value="100" class="pct high">100%</td>
108-
<td data-value="233" class="abs high">233/233</td>
108+
<td data-value="291" class="abs high">291/291</td>
109109
</tr>
110110

111111
</tbody>
@@ -116,7 +116,7 @@ <h1><a href="../../../../../index.html">All files</a> ndarray/base/assert/is-sca
116116
<div class='footer quiet pad2 space-top1 center small'>
117117
Code coverage generated by
118118
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119-
at 2025-03-23T11:15:48.687Z
119+
at 2025-09-20T09:19:02.842Z
120120
</div>
121121
<script src="../../../../../prettify.js"></script>
122122
<script>

ndarray/base/assert/is-scalar-mostly-safe-compatible/index.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">nda
208208
<div class='footer quiet pad2 space-top1 center small'>
209209
Code coverage generated by
210210
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
211-
at 2025-03-23T11:15:48.687Z
211+
at 2025-09-20T09:19:02.842Z
212212
</div>
213213
<script src="../../../../../prettify.js"></script>
214214
<script>

0 commit comments

Comments
 (0)