Redirecting to his question to the list.
>I need of a matrix, not of an array.
>But is this error due to a numpy bug?
I am not an expert on NumPy/SciPy, but I do not believe matrixes are allowed to
be 3 dimensional. Google only produced results of 3 dimensional arrays.
Ramit
Ramit Prasad | JP
On 14/10/2011 21:55, Paolo Zaffino wrote:
Nobody can help me?
Others have already tried to help you.
What is the shape and size of 'matrix' before, and what are the values
of 'a', 'b' and 'c'?
Print them in the ones which work (GNU/Linux and Mac OS) and the one
which doesn't (Windows). Do the
From: python-list-bounces+ramit.prasad=jpmorgan@python.org
[mailto:python-list-bounces+ramit.prasad=jpmorgan@python.org] On Behalf Of
Paolo Zaffino
Sent: Friday, October 14, 2011 3:55 PM
To: python-list@python.org
Subject: Re: [NUMPY] "ValueError: total size of new array mu
Nobody can help me?
2011/10/12 Paolo Zaffino
> I wrote a function thaht works on a 3D matrix.
> As first thing I have an array and I want reshape it into a 3D matrix (for
> further manipulations).
> For this reason I wrote in a row:
>
> matrix=matrix.reshape(a, b, c).T
>
> It work fine on GNU/
I wrote a function thaht works on a 3D matrix.
As first thing I have an array and I want reshape it into a 3D matrix (for
further manipulations).
For this reason I wrote in a row:
matrix=matrix.reshape(a, b, c).T
It work fine on GNU/Linux and Mac OS but not on Windows.
In Windows I get this error
Paolo Zaffino wrote:
> Nobody can help me?
Add the lines
print "a=%r, b=%r, c=%r" % (a, b, c)
print "type=%s, shape=%r, size=%r" % (type(matrix), matrix.shape,
matrix.size)
before this one
matrix = matrix.reshape(a, b, c)
and tell us what it prints both on a system where it works and wh
2011/10/11 Paolo Zaffino :
> Nobody can help me?
Nope, not unless you post some code. Your problem description is too vague.
--
http://mail.python.org/mailman/listinfo/python-list
Nobody can help me?
2011/10/10 Paolo Zaffino
> On Mac OS there is numpy 1.2.1, on Fedora 14 64bits numpy 1.4.1 and on
> Ubuntu 10.04 64bits numpy 1.3.0.
> On these platforms my function runs without problems.
> Just on Windows it doesn't works.
>
>
>
> 2011/10/9 Yaşar Arabacı
>
>> I don't kn
On Mac OS there is numpy 1.2.1, on Fedora 14 64bits numpy 1.4.1 and on
Ubuntu 10.04 64bits numpy 1.3.0.
On these platforms my function runs without problems.
Just on Windows it doesn't works.
2011/10/9 Yaşar Arabacı
> I don't know about your problem, but did you compare numpy versions in
> wind
On Sun, 09 Oct 2011 13:59:11 -0700, Paolo Zaffino wrote:
> 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
Paolo Zaffino wrote:
> 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:
I don't know about your problem, but did you compare numpy versions in
windows and other platforms? You may have newer/older version in Windows.
Otherwise, it looks like a platform spesific bug to me.
2011/10/9 Paolo Zaffino
> Hello,
> I wrote a function that works on a numpy matrix and it works
12 matches
Mail list logo