Go to the documentation of this file.
21 template<
typename T>
struct dtype_traits;
24 struct dtype_traits<float> {
29 typedef float base_type;
30 static const char* getName() {
return "float"; }
39 typedef float base_type;
40 static const char* getName() {
return "std::complex<float>"; }
49 typedef float base_type;
50 static const char* getName() {
return "std::complex<float>"; }
59 typedef double base_type;
60 static const char* getName() {
return "double"; }
69 typedef double base_type;
70 static const char* getName() {
return "std::complex<double>"; }
79 typedef double base_type;
80 static const char* getName() {
return "std::complex<double>"; }
89 typedef char base_type;
90 static const char* getName() {
return "char"; }
99 typedef int base_type;
100 static const char* getName() {
return "int"; }
109 typedef unsigned base_type;
110 static const char* getName() {
return "uint"; }
119 typedef unsigned char base_type;
120 static const char* getName() {
return "uchar"; }
129 typedef long long base_type;
130 static const char* getName() {
return "long"; }
139 typedef unsigned long long base_type;
140 static const char* getName() {
return "ulong"; }
143 #if AF_API_VERSION >= 32
150 typedef short base_type;
151 static const char* getName() {
return "short"; }
155 #if AF_API_VERSION >= 32
162 typedef unsigned short base_type;
163 static const char* getName() {
return "ushort"; }
167 #if AF_API_VERSION >= 37
174 typedef half base_type;
175 static const char* getName() {
return "half"; }
AFAPI array complex(const array &real, const array &imaginary)
@ u64
64-bit unsigned integral values
@ u8
8-bit unsigned integral values
@ f64
64-bit complex floating point values
@ f16
16-bit floating point value
@ s32
32-bit signed integral values
@ s16
16-bit signed integral values
@ u16
16-bit unsigned integral values
@ u32
32-bit unsigned integral values
@ c64
64-bit complex floating point values
@ c32
32-bit complex floating point values
@ f32
32-bit floating point values
@ s64
64-bit signed integral values