[Numpy-discussion] vector to tensor matrix speed up

2006-07-20 Thread Ferenc . Pintye
Hi users, i have some problem in Numpy with indexing speed for array to tensor matrix transport. With 20 cycles it's 9sec ! (without sort(eigvals() - functions) Many thanks f. # stress values/matrix in array form for 20 points out = zeros((20,11),Float32) # #.out =

[Numpy-discussion] Antwort: Re: vector to tensor matrix speed up

2006-07-22 Thread Ferenc . Pintye
Hi Tim, many thanks for the tipps, i used the same way with vectorized (chunk) method on the indexing operation. .. .. # out = zeros((size_mcf[0],sizes_smatrix[2]+5),Float32) # size_mcf[0] ~ 24 eig = zeros((size_mcf[0],3,3),dtype=Float32)