Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vector type(float2,...) are not supported #1

Open
nouiz opened this issue Jul 19, 2011 · 2 comments
Open

vector type(float2,...) are not supported #1

nouiz opened this issue Jul 19, 2011 · 2 comments

Comments

@nouiz
Copy link
Collaborator

nouiz commented Jul 19, 2011

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.

@inducer
Copy link
Owner

inducer commented Jul 19, 2011

FWIW, pyopencl and pycuda have gone the composite type route.

@nouiz
Copy link
Collaborator Author

nouiz commented Jul 20, 2011

I will look at how you do it when I attach this problem.

thanks

nouiz pushed a commit to nouiz/compyte that referenced this issue Oct 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants