@@ -63,17 +63,39 @@ enum _RANKS : rank_type {
6363};
6464
6565template <typename T> struct DTYPE {};
66- template <> struct DTYPE <double > { constexpr static DTypeId value = FLOAT64; };
67- template <> struct DTYPE <float > { constexpr static DTypeId value = FLOAT32; };
68- template <> struct DTYPE <int64_t > { constexpr static DTypeId value = INT64; };
69- template <> struct DTYPE <int32_t > { constexpr static DTypeId value = INT32; };
70- template <> struct DTYPE <int16_t > { constexpr static DTypeId value = INT16; };
71- template <> struct DTYPE <int8_t > { constexpr static DTypeId value = INT8; };
72- template <> struct DTYPE <uint64_t > { constexpr static DTypeId value = UINT64; };
73- template <> struct DTYPE <uint32_t > { constexpr static DTypeId value = UINT32; };
74- template <> struct DTYPE <uint16_t > { constexpr static DTypeId value = UINT16; };
75- template <> struct DTYPE <uint8_t > { constexpr static DTypeId value = UINT8; };
76- template <> struct DTYPE <bool > { constexpr static DTypeId value = BOOL; };
66+ template <> struct DTYPE <double > {
67+ constexpr static DTypeId value = FLOAT64;
68+ };
69+ template <> struct DTYPE <float > {
70+ constexpr static DTypeId value = FLOAT32;
71+ };
72+ template <> struct DTYPE <int64_t > {
73+ constexpr static DTypeId value = INT64;
74+ };
75+ template <> struct DTYPE <int32_t > {
76+ constexpr static DTypeId value = INT32;
77+ };
78+ template <> struct DTYPE <int16_t > {
79+ constexpr static DTypeId value = INT16;
80+ };
81+ template <> struct DTYPE <int8_t > {
82+ constexpr static DTypeId value = INT8;
83+ };
84+ template <> struct DTYPE <uint64_t > {
85+ constexpr static DTypeId value = UINT64;
86+ };
87+ template <> struct DTYPE <uint32_t > {
88+ constexpr static DTypeId value = UINT32;
89+ };
90+ template <> struct DTYPE <uint16_t > {
91+ constexpr static DTypeId value = UINT16;
92+ };
93+ template <> struct DTYPE <uint8_t > {
94+ constexpr static DTypeId value = UINT8;
95+ };
96+ template <> struct DTYPE <bool > {
97+ constexpr static DTypeId value = BOOL;
98+ };
7799
78100template <DTypeId DT> struct TYPE {};
79101template <> struct TYPE <FLOAT64> {
0 commit comments