From: Ivan V. i B. <iv...@ca...> - 2006-10-05 16:00:37
|
En/na Tim Hochberg ha escrit:: > Tim Hochberg wrote: >>>> Ivan Vilata i Balaguer wrote: >>>>> It seemed that discontiguous arrays worked OK in Numexpr since=20 >>>>> r1977 or >>>>> so, but I have come across some alignment or striding problems=20 >>>>> which can >>>>> be seen with the following code:: > OK, I've checked in a fix for this that makes a copy when the array is = > not strided in an even multiple of the itemsize. I first tried copying = > for all discontiguous array, but this resulted in a large speed hit for= =20 > vanilla strided arrays (a=3Darange(10)[::2], etc.), so I was more fruga= l=20 > with my copying. I'm not entirely certain that I caught all of the=20 > problematic cases, so let me know if you run into any more issues like = this. Great! For the moment I just can say that the problems I had with that have disappeared, but I will keep you up to date if I find something else. Thank you very much! :: Ivan Vilata i Balaguer >qo< http://www.carabos.com/ C=C3=A1rabos Coop. V. V V Enjoy Data "" |