File tree Expand file tree Collapse file tree 5 files changed +13
-1
lines changed
lib/node_modules/@stdlib/ndarray/base/dtype-char
include/stdlib/ndarray/base Expand file tree Collapse file tree 5 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ enum STDLIB_NDARRAY_DTYPE_CHAR {
55
55
STDLIB_NDARRAY_FLOAT64_CHAR = 'd' , // *d*ouble
56
56
STDLIB_NDARRAY_FLOAT128_CHAR = 'g' ,
57
57
58
+ STDLIB_NDARRAY_COMPLEX32_CHAR = 'j' ,
58
59
STDLIB_NDARRAY_COMPLEX64_CHAR = 'c' , // *c*omplex (BLAS convention)
59
60
STDLIB_NDARRAY_COMPLEX128_CHAR = 'z' , // *z* (BLAS convention)
60
61
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ function table() {
32
32
33
33
'bool' : 'x' ,
34
34
35
+ 'complex32' : 'j' ,
35
36
'complex64' : 'c' ,
36
37
'complex128' : 'z' ,
37
38
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ f: float32
7
7
g: float128
8
8
h: float16
9
9
i: int32
10
- j:
10
+ j: complex32 (16-bit)
11
11
k: int16
12
12
l: int64
13
13
m: int128
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ uint8_t stdlib_ndarray_dtype_char( enum STDLIB_NDARRAY_DTYPE dtype ) {
44
44
return STDLIB_NDARRAY_FLOAT64_CHAR ;
45
45
case STDLIB_NDARRAY_FLOAT32 :
46
46
return STDLIB_NDARRAY_FLOAT32_CHAR ;
47
+ case STDLIB_NDARRAY_FLOAT16 :
48
+ return STDLIB_NDARRAY_FLOAT16_CHAR ;
47
49
48
50
case STDLIB_NDARRAY_INT8 :
49
51
return STDLIB_NDARRAY_INT8_CHAR ;
@@ -73,6 +75,8 @@ uint8_t stdlib_ndarray_dtype_char( enum STDLIB_NDARRAY_DTYPE dtype ) {
73
75
case STDLIB_NDARRAY_BINARY :
74
76
return STDLIB_NDARRAY_BINARY_CHAR ;
75
77
78
+ case STDLIB_NDARRAY_COMPLEX32 :
79
+ return STDLIB_NDARRAY_COMPLEX32_CHAR ;
76
80
case STDLIB_NDARRAY_COMPLEX64 :
77
81
return STDLIB_NDARRAY_COMPLEX64_CHAR ;
78
82
case STDLIB_NDARRAY_COMPLEX128 :
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ var dtypeChar = require( './../lib' );
29
29
var DTYPES = [
30
30
'float64' ,
31
31
'float32' ,
32
+ 'float16' ,
32
33
'int8' ,
33
34
'uint8' ,
34
35
'uint8c' ,
@@ -40,6 +41,7 @@ var DTYPES = [
40
41
'uint64' ,
41
42
'binary' ,
42
43
'generic' ,
44
+ 'complex32' ,
43
45
'complex64' ,
44
46
'complex128' ,
45
47
'bool'
@@ -63,6 +65,7 @@ tape( 'the function returns an object mapping data type strings to single letter
63
65
expected = [
64
66
'd' ,
65
67
'f' ,
68
+ 'h' ,
66
69
's' ,
67
70
'b' ,
68
71
'a' ,
@@ -74,6 +77,7 @@ tape( 'the function returns an object mapping data type strings to single letter
74
77
'v' ,
75
78
'r' ,
76
79
'o' ,
80
+ 'j' ,
77
81
'c' ,
78
82
'z' ,
79
83
'x'
@@ -95,6 +99,7 @@ tape( 'the function returns the single letter character abbreviation for an unde
95
99
expected = [
96
100
'd' ,
97
101
'f' ,
102
+ 'h' ,
98
103
's' ,
99
104
'b' ,
100
105
'a' ,
@@ -106,6 +111,7 @@ tape( 'the function returns the single letter character abbreviation for an unde
106
111
'v' ,
107
112
'r' ,
108
113
'o' ,
114
+ 'j' ,
109
115
'c' ,
110
116
'z' ,
111
117
'x'
You can’t perform that action at this time.
0 commit comments