diff options
author | Anthony LaTorre <tlatorre9@gmail.com> | 2011-08-25 21:37:42 -0400 |
---|---|---|
committer | Anthony LaTorre <tlatorre9@gmail.com> | 2011-08-25 21:37:42 -0400 |
commit | 5494e0cbed8e6294660249d1b4c20c03e22ebdd8 (patch) | |
tree | 0544d2c69acaf6c33808ad88162a4c9a95ecf848 | |
parent | fb7c8c279de91b4c8db4e858df2891d650e4a304 (diff) | |
download | chroma-5494e0cbed8e6294660249d1b4c20c03e22ebdd8.tar.gz chroma-5494e0cbed8e6294660249d1b4c20c03e22ebdd8.tar.bz2 chroma-5494e0cbed8e6294660249d1b4c20c03e22ebdd8.zip |
reshape float3 array returned by to_float3() in gpu.py
-rw-r--r-- | gpu.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |