You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/math/tools/unary/lib/resolve_output_dtype.js
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,10 +39,13 @@ function resolve( xdtype, policy ) {
39
39
case'same':
40
40
returnxdtype;
41
41
case'float':
42
+
// TODO: we may want to delegate checking for a floating-point dtype to a utility function/package (e.g., isFloatDtype), in order to centralize logic for testing whether a dtype is "floating-point". Otherwise, this will be yet another place to update logic should we ever add, e.g., a `float128` or `float16` dtype.
@@ -56,10 +55,10 @@ tape( 'the function throws an error if provided an invalid table object', functi
56
55
void0,
57
56
[],
58
57
{
59
-
'scalar': null
58
+
'complex': {}
60
59
},
61
60
{
62
-
'scalar': ['number']
61
+
'number': ['number']
63
62
},
64
63
{
65
64
'array': {}
@@ -408,52 +407,4 @@ tape( 'the function returns a function which supports operating on an ndarray (n
408
407
t.end();
409
408
});
410
409
411
-
tape('the function returns a function which defaults to a "generic" implementation if unable to resolve a function corresponding to an array-like object\'s underlying data type',functiontest(t){
tape('the function returns a function which defaults to a "generic" implementation if unable to resolve a function corresponding to an ndarray\'s underlying data type',functiontest(t){
0 commit comments