Re: [Numpy-discussion] Scipy 2017 NumPy sprint

2017-07-09 Thread Marten van Kerkwijk
Hi Peter, In the context of the discussion here, the fact that Quantity is a subclass and not a duck-type array makes no difference for scipy code - in either case, the code would eat the unit (if it would work at all). My only argument was that sub-classing is not particularly worse than trying t

[Numpy-discussion] Generalized rectangle intersection. (Was: Array blitting)

2017-07-09 Thread Mikhail V
disclaimer: I am not a past contributor to numpy and I don't know much about github, and what pull request means. So I just put the examples here. So in short, the proposal idea is to add a library function which calculates the intersection area of two rectangles, generalized for any dimensions. T