|
From: | Noah Lavine |
Subject: | Re: propose deprecation of generalized-vector-* |
Date: | Mon, 18 Feb 2013 11:05:47 -0500 |
Hi,
On Wed 23 Jan 2013 13:20, Daniel Llorens <address@hidden> writes:
> In [2]: a = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
> In [4]: a[1]It could make sense, yes. What do others think? What happens for
> Out[4]: array([4, 5, 6])
> In [5]: a[1, 1]
> Out[5]: 5
>
> array-ref can be extended very simply to do that. It accumulates on the
> position as it is done now, but if the index list comes up short it
> makes a shared array with the remaining axes instead of giving a rank
> error. So it shouldn't be any slower than array_ref.
array-set!? Care to propose a patch?
[Prev in Thread] | Current Thread | [Next in Thread] |