[Numpy-discussion] Useless but tricky exercise

2016-11-03 Thread Nicolas P. Rougier
Hi all, Given an array V that is a view of a base B, I was wondering if it is possible to find a (string) index such that `V = B[index]` For example: ``` B = np.arange(8*8).reshape(8,8) V = B[::2,::2] index = find_view(B,V) print(index) "::2,::2" print(np.allclose(V, eval("B[%s]" % index)))

[Numpy-discussion] Branching NumPy 1.12.x

2016-11-03 Thread Charles R Harris
Hi All, I'm thinking that it is time to branch NumPy 1.12.x. I haven't got everything in it that I would have liked, in particular __numpy_ufunc__, but I think there is plenty of material and not branching is holding up some of the more risky stuff. My current thoughts on __numpy_ufunc__ is that

Re: [Numpy-discussion] Using numpy.rint() with scalars

2016-11-03 Thread Charles R Harris
On Thu, Nov 3, 2016 at 9:17 AM, Yuri Sukhov wrote: > Hi all, > > According to the documentation for numpy.rint() ( > https://docs.scipy.org/doc/numpy/reference/generated/numpy.rint.html), > it's a ufunc that accepts an array-like object as an input. > > But it also works

[Numpy-discussion] Using numpy.rint() with scalars

2016-11-03 Thread Yuri Sukhov
Hi all, According to the documentation for numpy.rint() (https://docs.scipy.org/doc/ numpy/reference/generated/numpy.rint.html), it's a ufunc that accepts an array-like object as an input. But it also works with scalar inputs. Could anyone clarify if such use case is considered to be common and

Re: [Numpy-discussion] missing from contributor list?

2016-11-03 Thread Julian Taylor
you can add multiple email addresses to your github settings so commits are properly attributed to your account. On 11/03/2016 11:10 AM, m...@telenczuk.pl wrote: Hi, I had the same problem when I changed my email address. It seems that github matches user profiles to commits using the email

Re: [Numpy-discussion] missing from contributor list?

2016-11-03 Thread mail
Hi, I had the same problem when I changed my email address. It seems that github matches user profiles to commits using the email address, so you have to make sure that the email you sign your commits with is registered in your github account. Cheers, Bartosz Charles R Harris wrote: > On