@@ -23,9 +23,9 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
2323 < div class ='clearfix '>
2424
2525 < div class ='fl pad1y space-right2 '>
26- < span class ="strong "> 63.03 % </ span >
26+ < span class ="strong "> 64.73 % </ span >
2727 < span class ="quiet "> Statements</ span >
28- < span class ='fraction '> 104/165 </ span >
28+ < span class ='fraction '> 112/173 </ span >
2929 </ div >
3030
3131
@@ -44,9 +44,9 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
4444
4545
4646 < div class ='fl pad1y space-right2 '>
47- < span class ="strong "> 63.03 % </ span >
47+ < span class ="strong "> 64.73 % </ span >
4848 < span class ="quiet "> Lines</ span >
49- < span class ='fraction '> 104/165 </ span >
49+ < span class ='fraction '> 112/173 </ span >
5050 </ div >
5151
5252
@@ -228,7 +228,23 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
228228< a name ='L163 '> </ a > < a href ='#L163 '> 163</ a >
229229< a name ='L164 '> </ a > < a href ='#L164 '> 164</ a >
230230< 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 >
232248< span class ="cline-any cline-yes "> 1x</ span >
233249< span class ="cline-any cline-yes "> 1x</ span >
234250< 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
430446* @param {ArrayLikeObject<Function>} [table.fcns] - list of strided functions which are specific to specialized input and output ndarray argument signatures
431447* @param {ArrayLikeObject<StringArray>} idtypes - list containing lists of supported input data types for each ndarray argument
432448* @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
434452* @throws {TypeError} first argument must be an object having valid properties
435453* @throws {TypeError} second argument must be an array containing arrays of supported data types
436454* @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
438456* @throws {Error} first argument must be an object having valid properties
439457* @returns {Function} function for applying a strided function an ndarray
440458*
@@ -446,12 +464,15 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">ndarra
446464*
447465* var idt = dtypes( 'real_and_generic' );
448466* var odt = idt;
449- * var policy = 'same';
467+ * var policies = {
468+ * 'output': 'same',
469+ * 'casting': 'none'
470+ * };
450471*
451472* var table = {
452473* 'default': base
453474* };
454- * var cumax = factory( table, [ idt ], odt, policy );
475+ * var cumax = factory( table, [ idt ], odt, policies );
455476*
456477* var xbuf = [ -1.0, 2.0, -3.0 ];
457478* 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
470491*
471492* var idt = dtypes( 'real_and_generic' );
472493* var odt = idt;
473- * var policy = 'same';
494+ * var policies = {
495+ * 'output': 'same',
496+ * 'casting': 'none'
497+ * };
474498*
475499* var table = {
476500* 'default': base
477501* };
478- * var cumax = factory( table, [ idt ], odt, policy );
502+ * var cumax = factory( table, [ idt ], odt, policies );
479503*
480504* var xbuf = [ -1.0, 2.0, -3.0 ];
481505* 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
492516* var bool = ( out === y );
493517* // returns true
494518*/
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 >
497521< span class ="cstat-no " title ="statement not covered " > setReadOnly( main, 'assign', assign );</ span >
498522< span class ="cstat-no " title ="statement not covered " > return main;</ span >
499523< 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
565589 < div class ='footer quiet pad2 space-top1 center small '>
566590 Code coverage generated by
567591 < 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
569593 </ div >
570594 < script src ="../../../../prettify.js "> </ script >
571595 < script >
0 commit comments