[Numpy-discussion] "ValueError: total size of new array must be unchanged" only on Windows

Olivier Delalleau shish@keba...
Sun Feb 5 09:02:44 CST 2012


It should mean that matrix.size != a * b * c.

-=- Olivier

Le 5 février 2012 09:32, Paolo <p.zaffino@yahoo.it> a écrit :

> Hello,
> I wrote a function that works on a numpy matrix and it works fine on Mac
> OS and GNU/Linux (I didn't test it on python 3).
> Now I have a problem with numpy: the same python file doesn't work on
> Windows (Windows xp, python 2.7 and numpy 2.6.1).
> I get this error:
>
> matrix=matrix.reshape(a, b, c)
> ValueError: total size of new array must be unchanged
>
> Why? Do anyone have an idea about this?
> Thank you very much.
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120205/5fc2b673/attachment.html 


More information about the NumPy-Discussion mailing list