summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony LaTorre <tlatorre9@gmail.com>2011-08-25 21:37:42 -0400
committerAnthony LaTorre <tlatorre9@gmail.com>2011-08-25 21:37:42 -0400
commit5494e0cbed8e6294660249d1b4c20c03e22ebdd8 (patch)
tree0544d2c69acaf6c33808ad88162a4c9a95ecf848
parentfb7c8c279de91b4c8db4e858df2891d650e4a304 (diff)
downloadchroma-5494e0cbed8e6294660249d1b4c20c03e22ebdd8.tar.gz
chroma-5494e0cbed8e6294660249d1b4c20c03e22ebdd8.tar.bz2
chroma-5494e0cbed8e6294660249d1b4c20c03e22ebdd8.zip
reshape float3 array returned by to_float3() in gpu.py
-rw-r--r--gpu.py2
1 files changed, 1 insertions, 1 deletions
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