Re: [Numpy-discussion] how to uninstall numpy

2012-08-09 Thread Chris Barker
It depends a bit on how you installed it, but for the most part you should simiply be able to delete the numpy directory in site_packages. -Chris On Thu, Aug 9, 2012 at 1:04 AM, wrote: > Thanks to everybody. > > ___ > NumPy-Discussion mailing list >

Re: [Numpy-discussion] Bug in as_strided/reshape

2012-08-09 Thread Sebastian Berg
Hello, looking at the code, when only adding/removing dimensions with size 1, numpy takes a small shortcut, however it uses 0 stride lengths as value for the new one element dimensions temporarily, then replacing it again to ensure the new array is contiguous. This replacing does not check if the

Re: [Numpy-discussion] Bug in as_strided/reshape

2012-08-09 Thread Dave Hirschfeld
Dave Hirschfeld gmail.com> writes: > > It seems that reshape doesn't work correctly on an array which has been > resized using the 0-stride trick e.g. > > In [73]: x = array([5]) > > In [74]: y = as_strided(x, shape=(10,), strides=(0,)) > > In [75]: y > Out[75]: array([5, 5, 5, 5, 5, 5, 5, 5,

Re: [Numpy-discussion] how to uninstall numpy

2012-08-09 Thread x . piter
Thanks to everybody. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] nested loops too slow

2012-08-09 Thread Florian Mueller
Hi Nico, Using for-loops for numerical calculations is often problematic for numerical calculations. I don't understand the fancy stuff with the indexing of the arrays. Can you provide a working example script and/or a brief description of the calculation you are performing (including equations)?