On Sun, 2013-01-06 at 13:28 -0500, josef.p...@gmail.com wrote:
> On Sun, Jan 6, 2013 at 12:57 PM, Sebastian Berg
> wrote:
> > Question for everyone, is this really reasonable:
> >
> import numpy as np
> from operator import index
> index(np.array([[5]]))
> > 5
> int(np.array([[
On Sun, Jan 6, 2013 at 12:57 PM, Sebastian Berg
wrote:
> Question for everyone, is this really reasonable:
>
import numpy as np
from operator import index
index(np.array([[5]]))
> 5
int(np.array([[5]]))
> 5
[0,1,2,3][np.array([[2]])]
> 2
Not sure I understand the point
l
Question for everyone, is this really reasonable:
>>> import numpy as np
>>> from operator import index
>>> index(np.array([[5]]))
5
>>> int(np.array([[5]]))
5
>>> [0,1,2,3][np.array([[2]])]
2
To me, this does not make sense, why should we allow to use a high
dimensional object like a normal scal