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

2017-07-04 Thread Charles R Harris
On Tue, Jul 4, 2017 at 1:32 AM, wrote: > Hi Brian > > > First of all thanks for the answer, the explanations and the advices; as > mentioned I've to think differently in order to code with efficiency. > > 1.: yes 'mat[:,0]=vect0' works fine and I understand why :-) > > 2. more generally, I've rea

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

2017-07-04 Thread paul . carrico
Hi Brian First of all thanks for the answer, the explanations and the advices; as mentioned I've to think differently in order to code with efficiency. 1.: yes 'mat[:,0]=vect0' works fine and I understand why :-) 2. more generally, I've read some tutorials or presentations saying that Numpy i

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.