<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" style="font: inherit;"><p>Yes, I understand this but I don't know because on Linux and Mac it works well.<br>
If the matrix size is different it should be different indipendently from os type.<br>
Am I wrong?<br>
Thanks for your support!</p>
</td></tr></table>            <div id="_origMsg_">
                <div style="font-family:arial, helvetica, sans-serif:font-size:10pt">
                    <br />
                    <div style="font-family:times new roman, new york, times, serif;font-size:12pt">
                        <font size="2" face="Tahoma">
                            <hr size="1">
                            <b>
                                <span style="font-weight:bold;">From:</span>
                            </b>
                            Olivier Delalleau &lt;shish@keba.be&gt;;                            <br>
                            <b>
                                <span style="font-weight:bold:">To:</span>
                            </b>
                            Discussion of Numerical Python &lt;numpy-discussion@scipy.org&gt;;                                                                                                     <br>
                            <b>
                                <span style="font-weight:bold:">Subject:</span>
                            </b>
                            Re: [Numpy-discussion] "ValueError: total size of new array must be unchanged" only on Windows                            <br>
                            <b>
                                <span style="font-weight:bold;">Sent:</span>
                            </b>
                            Sun, Feb 5, 2012 3:02:44 PM                            <br>
                            </font>
                            <br>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td valign="top" style="font:inherit;">It should mean that matrix.size != a * b * c.<br><br>-=- Olivier<br><br><div class="gmail_quote">Le 5 février 2012 09:32, Paolo <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:p.zaffino@yahoo.it" target="_blank" href="javascript:return">p.zaffino@yahoo.it</a>&gt;</span> a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
I wrote a function that works on a numpy matrix and it works fine on Mac<br>
OS and GNU/Linux (I didn&#39;t test it on python 3).<br>
Now I have a problem with numpy: the same python file doesn&#39;t work on<br>
Windows (Windows xp, python 2.7 and numpy 2.6.1).<br>
I get this error:<br>
<br>
matrix=matrix.reshape(a, b, c)<br>
ValueError: total size of new array must be unchanged<br>
<br>
Why? Do anyone have an idea about this?<br>
Thank you very much.<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a rel="nofollow" ymailto="mailto:NumPy-Discussion@scipy.org" target="_blank" href="javascript:return">NumPy-Discussion@scipy.org</a><br>
<a rel="nofollow" target="_blank" href="http://mail.scipy.org/mailman/listinfo/numpy-discussion">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote></div><br>
</td>
                                    </tr>
                                </tbody>
                            </table>
                    </div>
                </div>
            </div>