|
My Project
|
|
Go to the documentation of this file.
20 template<
typename T>
struct dtype_traits;
23 struct dtype_traits<float> {
28 typedef float base_type;
29 static const char* getName() {
return "float"; }
38 typedef float base_type;
39 static const char* getName() {
return "std::complex<float>"; }
48 typedef float base_type;
49 static const char* getName() {
return "std::complex<float>"; }
58 typedef double base_type;
59 static const char* getName() {
return "double"; }
68 typedef double base_type;
69 static const char* getName() {
return "std::complex<double>"; }
78 typedef double base_type;
79 static const char* getName() {
return "std::complex<double>"; }
88 typedef char base_type;
89 static const char* getName() {
return "char"; }
98 typedef int base_type;
99 static const char* getName() {
return "int"; }
108 typedef unsigned base_type;
109 static const char* getName() {
return "uint"; }
118 typedef unsigned char base_type;
119 static const char* getName() {
return "uchar"; }
128 typedef long long base_type;
129 static const char* getName() {
return "long"; }
138 typedef unsigned long long base_type;
139 static const char* getName() {
return "ulong"; }
142 #if AF_API_VERSION >= 32
149 typedef short base_type;
150 static const char* getName() {
return "short"; }
154 #if AF_API_VERSION >= 32
161 typedef unsigned short base_type;
162 static const char* getName() {
return "ushort"; }
Definition: traits.hpp:27
@ u64
64-bit unsigned integral values
Definition: defines.h:205
Definition: algorithm.h:14
AFAPI array complex(const array &lhs, const array &rhs)
@ u8
8-bit unsigned integral values
Definition: defines.h:203
@ b8
8-bit boolean values
Definition: defines.h:200
@ f64
64-bit complex floating point values
Definition: defines.h:198
@ s32
32-bit signed integral values
Definition: defines.h:201
@ s16
16-bit signed integral values
Definition: defines.h:207
@ u16
16-bit unsigned integral values
Definition: defines.h:210
@ u32
32-bit unsigned integral values
Definition: defines.h:202
@ c64
64-bit complex floating point values
Definition: defines.h:199
@ c32
32-bit complex floating point values
Definition: defines.h:197
@ f32
32-bit floating point values
Definition: defines.h:196
@ s64
64-bit signed integral values
Definition: defines.h:204