andersbll / cudarray

CUDA-based NumPy
MIT License
234 stars 61 forks source link

Wrong indexing #31

Closed DmitryUlyanov closed 9 years ago

DmitryUlyanov commented 9 years ago

Well, core functions doesn't work properly..

In [5]: a = ca.array(np.array([[ 1.66528273, -1.64936948],
                               [ 1.72497928, -1.69695187]]))

In [6]: a
Out[6]: 
array([[ 1.66528273, -1.64936948],
       [ 1.72497928, -1.69695187]], dtype=float32)

In [7]: a[:,0]
Out[7]: array([ 1.66528273, -1.64936948], dtype=float32)

In [8]: a[0,:]
Out[8]: array([ 1.66528273, -1.64936948], dtype=float32)

I see column slicing is not implemented, can you throw a error on this operation to make it clear?

andersbll commented 9 years ago

Hey, thank you for reporting this. :)