Open nouiz opened 13 years ago
There is 42 of them: char1, uchar1, char2, uchar2, char3, uchar3, char4, uchar4, short1, ushort1, short2, ushort2, short3, ushort3, short4, ushort4, int1, uint1, int2, uint2, int3, uint3, int4, uint4, long1, ulong1, long2, ulong2, long3, ulong3, long4, ulong4, longlong1, ulonglong1, longlong2, ulonglong2, float1, float2, float3, float4, double1, double2
There is 2 way to implement them: add basic typenum as for other basic dtype or use a system like numpy composite dtype. I'm not sure what is best.
FWIW, pyopencl and pycuda have gone the composite type route.
I will look at how you do it when I attach this problem.
thanks
There is 42 of them: char1, uchar1, char2, uchar2, char3, uchar3, char4, uchar4, short1, ushort1, short2, ushort2, short3, ushort3, short4, ushort4, int1, uint1, int2, uint2, int3, uint3, int4, uint4, long1, ulong1, long2, ulong2, long3, ulong3, long4, ulong4, longlong1, ulonglong1, longlong2, ulonglong2, float1, float2, float3, float4, double1, double2
There is 2 way to implement them: add basic typenum as for other basic dtype or use a system like numpy composite dtype. I'm not sure what is best.