From 5494e0cbed8e6294660249d1b4c20c03e22ebdd8 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Thu, 25 Aug 2011 21:37:42 -0400 Subject: reshape float3 array returned by to_float3() in gpu.py --- gpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu.py b/gpu.py index 4d2197b..e336dac 100644 --- a/gpu.py +++ b/gpu.py @@ -19,7 +19,7 @@ import event cuda.init() def to_float3(arr): - return arr.astype(np.float32).view(gpuarray.vec.float3) + return arr.astype(np.float32).view(gpuarray.vec.float3)[:,0] def boolean_argsort(condition): '''Returns two arrays of indicies indicating which elements of the -- cgit