[Numpy-discussion] make nditer also a context manager

2017-07-03 Thread Matti Picus
When an nditer uses certain op_flags[0], like updateifcopy or readwrite or copy, the operands (which are ndarray views into the original data) must use the UPDATEIFCOPY flag. The meaning of this flag is to allocate temporary memory to hold the modified data and make the original data readonly.

Re: [Numpy-discussion] Scipy 2017 NumPy sprint

2017-07-03 Thread Stephan Hoyer
On Sun, Jul 2, 2017 at 8:33 AM Sebastian Berg wrote: > If someone who does subclasses/array-likes or so (e.g. like Stefan > Hoyer ;)) and is interested, and also we do some > teleconferencing/chatting (and I have time) I might be interested > in discussing and possibly trying to develop the n

Re: [Numpy-discussion] New python/numpy user

2017-07-03 Thread Brian Blais
There are a couple of interesting observations here.  In your first bit, you have: > ## works with a row vector > vect0 = np.random.rand(5) > mat[:,0]=np.transpose(vect0) (or I prefer vect0.T).  Did you happen to notice that this works too: > mat[:,0]=vect0 > The transpose or the original work

[Numpy-discussion] New python/numpy user

2017-07-03 Thread paul . carrico
Dear All I'm a like matlab user (more specifically a Scilab one) for years, and because I've to deal with huge ascii files (with dozens of millions of lines), I decided to have a look to Python and Numpy, including vectorization topics. Obviously I've been influenced by my current feedbacks.