@@ -23,9 +23,9 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
23
23
< div class ='clearfix '>
24
24
25
25
< div class ='fl pad1y space-right2 '>
26
- < span class ="strong "> 63.03 % </ span >
26
+ < span class ="strong "> 64.73 % </ span >
27
27
< span class ="quiet "> Statements</ span >
28
- < span class ='fraction '> 104/165 </ span >
28
+ < span class ='fraction '> 112/173 </ span >
29
29
</ div >
30
30
31
31
@@ -44,9 +44,9 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
44
44
45
45
46
46
< div class ='fl pad1y space-right2 '>
47
- < span class ="strong "> 63.03 % </ span >
47
+ < span class ="strong "> 64.73 % </ span >
48
48
< span class ="quiet "> Lines</ span >
49
- < span class ='fraction '> 104/165 </ span >
49
+ < span class ='fraction '> 112/173 </ span >
50
50
</ div >
51
51
52
52
@@ -228,7 +228,23 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
228
228
< a name ='L163 '> </ a > < a href ='#L163 '> 163</ a >
229
229
< a name ='L164 '> </ a > < a href ='#L164 '> 164</ a >
230
230
< a name ='L165 '> </ a > < a href ='#L165 '> 165</ a >
231
- < a name ='L166 '> </ a > < a href ='#L166 '> 166</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 1x</ span >
231
+ < a name ='L166 '> </ a > < a href ='#L166 '> 166</ a >
232
+ < a name ='L167 '> </ a > < a href ='#L167 '> 167</ a >
233
+ < a name ='L168 '> </ a > < a href ='#L168 '> 168</ a >
234
+ < a name ='L169 '> </ a > < a href ='#L169 '> 169</ a >
235
+ < a name ='L170 '> </ a > < a href ='#L170 '> 170</ a >
236
+ < a name ='L171 '> </ a > < a href ='#L171 '> 171</ a >
237
+ < a name ='L172 '> </ a > < a href ='#L172 '> 172</ a >
238
+ < a name ='L173 '> </ a > < a href ='#L173 '> 173</ a >
239
+ < a name ='L174 '> </ a > < a href ='#L174 '> 174</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 1x</ span >
240
+ < span class ="cline-any cline-yes "> 1x</ span >
241
+ < span class ="cline-any cline-yes "> 1x</ span >
242
+ < span class ="cline-any cline-yes "> 1x</ span >
243
+ < span class ="cline-any cline-yes "> 1x</ span >
244
+ < span class ="cline-any cline-yes "> 1x</ span >
245
+ < span class ="cline-any cline-yes "> 1x</ span >
246
+ < span class ="cline-any cline-yes "> 1x</ span >
247
+ < span class ="cline-any cline-yes "> 1x</ span >
232
248
< span class ="cline-any cline-yes "> 1x</ span >
233
249
< span class ="cline-any cline-yes "> 1x</ span >
234
250
< span class ="cline-any cline-yes "> 1x</ span >
@@ -430,11 +446,13 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
430
446
* @param {ArrayLikeObject<Function>} [table.fcns] - list of strided functions which are specific to specialized input and output ndarray argument signatures
431
447
* @param {ArrayLikeObject<StringArray>} idtypes - list containing lists of supported input data types for each ndarray argument
432
448
* @param {StringArray} odtypes - list of supported output data types
433
- * @param {string} policy - output data type policy
449
+ * @param {Object} policies - policies
450
+ * @param {string} policies.output - output data type policy
451
+ * @param {string} policies.casting - input ndarray casting policy
434
452
* @throws {TypeError} first argument must be an object having valid properties
435
453
* @throws {TypeError} second argument must be an array containing arrays of supported data types
436
454
* @throws {TypeError} third argument must be an array of supported data types
437
- * @throws {TypeError} fourth argument must be a supported output data type policy
455
+ * @throws {TypeError} fourth argument must be an object having supported policies
438
456
* @throws {Error} first argument must be an object having valid properties
439
457
* @returns {Function} function for applying a strided function an ndarray
440
458
*
@@ -446,12 +464,15 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
446
464
*
447
465
* var idt = dtypes( 'real_and_generic' );
448
466
* var odt = idt;
449
- * var policy = 'same';
467
+ * var policies = {
468
+ * 'output': 'same',
469
+ * 'casting': 'none'
470
+ * };
450
471
*
451
472
* var table = {
452
473
* 'default': base
453
474
* };
454
- * var cumax = factory( table, [ idt ], odt, policy );
475
+ * var cumax = factory( table, [ idt ], odt, policies );
455
476
*
456
477
* var xbuf = [ -1.0, 2.0, -3.0 ];
457
478
* var x = new ndarray( 'generic', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
@@ -470,12 +491,15 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
470
491
*
471
492
* var idt = dtypes( 'real_and_generic' );
472
493
* var odt = idt;
473
- * var policy = 'same';
494
+ * var policies = {
495
+ * 'output': 'same',
496
+ * 'casting': 'none'
497
+ * };
474
498
*
475
499
* var table = {
476
500
* 'default': base
477
501
* };
478
- * var cumax = factory( table, [ idt ], odt, policy );
502
+ * var cumax = factory( table, [ idt ], odt, policies );
479
503
*
480
504
* var xbuf = [ -1.0, 2.0, -3.0 ];
481
505
* var x = new ndarray( 'generic', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
@@ -492,8 +516,8 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
492
516
* var bool = ( out === y );
493
517
* // returns true
494
518
*/
495
- < span class ="cstat-no " title ="statement not covered " > < span class ="fstat-no " title ="function not covered " > function factory( table, idtypes, odtypes, policy ) {</ span > </ span >
496
- < span class ="cstat-no " title ="statement not covered " > var f = new UnaryStrided1dDispatch( table, idtypes, odtypes, policy );</ span >
519
+ < span class ="cstat-no " title ="statement not covered " > < span class ="fstat-no " title ="function not covered " > function factory( table, idtypes, odtypes, policies ) {</ span > </ span >
520
+ < span class ="cstat-no " title ="statement not covered " > var f = new UnaryStrided1dDispatch( table, idtypes, odtypes, policies );</ span >
497
521
< span class ="cstat-no " title ="statement not covered " > setReadOnly( main, 'assign', assign );</ span >
498
522
< span class ="cstat-no " title ="statement not covered " > return main;</ span >
499
523
< span class ="cstat-no " title ="statement not covered " > </ span >
@@ -565,7 +589,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
565
589
< div class ='footer quiet pad2 space-top1 center small '>
566
590
Code coverage generated by
567
591
< a href ="https://istanbul.js.org/ " target ="_blank " rel ="noopener noreferrer "> istanbul</ a >
568
- at 2025-04-24T10:00 :04.034Z
592
+ at 2025-04-26T22:56 :04.815Z
569
593
</ div >
570
594
< script src ="../../../../prettify.js "> </ script >
571
595
< script >
0 commit comments