Re: [Numpy-discussion] numpy.numarray.transpose()

2009-09-29 Thread Michael . Walker

 On 09/28/2009 03:15 AM, Pauli Virtanen wrote:
 Mon, 28 Sep 2009 10:07:47 +0200, Michael.Walker wrote:
 [clip]

 In [7]: f = f.transpose()

 In [8]: print f
 [[1 3]
   [2 4]]

 as expected. I mention this because I think that it is worth knowing
 having lost a LOT  of time to it. Is it worth filing as a bug report?


 This is not a bug! This specific difference between numpy and numarray
 is documented on the 'converting from numarray' page:
 http://www.scipy.org/Converting_from_numarray

I am referring to the behaviour of numpy.numarray.transpose() being that
of numpy.transpose() instead of numarray.transpose. One expects that
numpy.numarray would function as numarray, for the purpose of backwards
compatability. So, is this worth filing a bug report for?

Michael Walker

Plant Modelling Group
CIRAD, Montpellier
04 67 61 57 27
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] numpy.numarray.transpose()

2009-09-28 Thread Michael . Walker
Hello list,
   I just thought I'd point out a difference between 'import numarray'
and 'import numpy.numarray' . Consider the following

In [1]: from numpy.numarray import *
In [2]: d = array((1,2,3,4))
In [3]: f = reshape(d,(2,2))
In [4]: print f
[[1 2]
 [3 4]]

In [5]: f.transpose()
Out[5]:
array([[1, 3],
   [2, 4]])

In [6]: print f
[[1 2]
 [3 4]]


Now in pure numarray, f would have changed to the transposed form, so that
the output from [5] and [6] would match, and be different from that of
[4].
(I don't have numarray installed myself but a workmates computer, and
examples on the web have the usage  f.transpose() . Now,

In [7]: f = f.transpose()

In [8]: print f
[[1 3]
 [2 4]]

as expected. I mention this because I think that it is worth knowing
having lost a LOT  of time to it. Is it worth filing as a bug report?

Michael Walker

Plant Modelling Group
CIRAD, Montpellier
04 67 61 57 27
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] SuperLU failed to solve

2009-09-14 Thread Michael . Walker
Hello,
does anyone on this list have any idea what might cause SuperLU to not
solve on my computer when the associated code works perfectly well on
somebody else's? On my computer the code crashes with the error message
'SuperLU solve failed: info=9'

thanks

Michael Walker

Plant Modelling Group
CIRAD, Montpellier
04 67 61 57 27
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion