@@ -40,8 +40,7 @@ var KERNEL_MAP = {
40
40
'uint32' : 'stdlib_base_abs' ,
41
41
'uint16' : 'stdlib_base_abs' ,
42
42
'uint8' : 'stdlib_base_abs' ,
43
- 'uint8c' : 'stdlib_base_abs' ,
44
- 'generic' : 'stdlib_base_abs'
43
+ 'uint8c' : 'stdlib_base_abs'
45
44
} ;
46
45
var INCLUDE_MAP = {
47
46
'abs' : 'abs.h' ,
@@ -60,18 +59,17 @@ var INCLUDE_MAP = {
60
59
*/
61
60
function outputDtypeRule ( input ) {
62
61
var rules = {
63
- 'float64' : [ 'float64' , 'generic' ] ,
64
- 'float32' : [ 'float32' , 'float64' , 'generic' ] ,
65
- 'complex128' : [ 'float64' , 'generic' ] ,
66
- 'complex64' : [ 'float32' , 'float64' , 'generic' ] ,
67
- 'int32' : [ 'int32' , 'uint32' , 'float64' , 'generic' ] ,
68
- 'int16' : [ 'int16' , 'int32' , 'uint16' , 'uint32' , 'float32' , 'float64' , 'generic' ] ,
69
- 'int8' : [ 'int8' , 'int16' , 'int32' , 'uint8' , 'uint8c' , 'uint16' , 'uint32' , 'float32' , 'float64' , 'generic' ] ,
70
- 'uint32' : [ 'uint32' , 'float64' , 'generic' ] ,
71
- 'uint16' : [ 'int32' , 'uint16' , 'uint32' , 'float32' , 'float64' , 'generic' ] ,
72
- 'uint8' : [ 'int16' , 'int32' , 'uint8' , 'uint8c' , 'uint16' , 'uint32' , 'float32' , 'float64' , 'generic' ] ,
73
- 'uint8c' : [ 'int16' , 'int32' , 'uint8' , 'uint8c' , 'uint16' , 'uint32' , 'float32' , 'float64' , 'generic' ] ,
74
- 'generic' : [ 'generic' ]
62
+ 'float64' : [ 'float64' ] ,
63
+ 'float32' : [ 'float32' , 'float64' ] ,
64
+ 'complex128' : [ 'float64' ] ,
65
+ 'complex64' : [ 'float32' , 'float64' ] ,
66
+ 'int32' : [ 'int32' , 'uint32' , 'float64' ] ,
67
+ 'int16' : [ 'int16' , 'int32' , 'uint16' , 'uint32' , 'float32' , 'float64' ] ,
68
+ 'int8' : [ 'int8' , 'int16' , 'int32' , 'uint8' , 'uint8c' , 'uint16' , 'uint32' , 'float32' , 'float64' ] ,
69
+ 'uint32' : [ 'uint32' , 'float64' ] ,
70
+ 'uint16' : [ 'int32' , 'uint16' , 'uint32' , 'float32' , 'float64' ] ,
71
+ 'uint8' : [ 'int16' , 'int32' , 'uint8' , 'uint8c' , 'uint16' , 'uint32' , 'float32' , 'float64' ] ,
72
+ 'uint8c' : [ 'int16' , 'int32' , 'uint8' , 'uint8c' , 'uint16' , 'uint32' , 'float32' , 'float64' ]
75
73
} ;
76
74
return rules [ input ] || [ ] ;
77
75
}
@@ -88,14 +86,15 @@ function getNdarrayFcnName( input, output ) {
88
86
var map = {
89
87
'float64' : 'd' ,
90
88
'float32' : 'f' ,
91
- 'generic' : 'g' ,
89
+ 'complex128' : 'z' ,
90
+ 'complex64' : 'c' ,
92
91
'int32' : 'i' ,
93
92
'int16' : 'k' ,
94
93
'int8' : 's' ,
95
94
'uint32' : 'u' ,
96
95
'uint16' : 't' ,
97
96
'uint8' : 'b' ,
98
- 'uint8c' : 'b '
97
+ 'uint8c' : 'a '
99
98
} ;
100
99
return 'stdlib_ndarray_' + map [ input ] + '_' + map [ output ] ;
101
100
}
0 commit comments