Most functions in numpy return ndarray by default.
Use numpy.asmatrix() if you want a matrix.
>>> from numpy import matlib, asmatrix
>>> m = matlib.reshape([1,2],(2,1))
>>> type(m)
>>> type( asmatrix(m) )
--
Pengkui
On Wed, Sep 28, 2011 at 22:09, Alan G Isaac wrote:
> Is this the intended b
Some observations and questions about nested_iters. Nested_iters seems to
require that all input arrays have the same number of dimensions (so you
will have to pad some input shapes with 1s). Is there a way to specify how
the axes line are matched together like for nditer?
When I try to run the f
As far as a workaround in concerned, that scipy archive post says you can
disable threads in numpy.
Sorry can't help more, I don't know much about how to bypass such GIL
issues.
-=- Olivier
2011/10/3 Yang Zhang
> It turns out that there's a long-standing problem in numpy that
> prevents it from
It turns out that there's a long-standing problem in numpy that
prevents it from being used in embedded CPython environments:
http://stackoverflow.com/questions/7592565/when-embedding-cpython-in-java-why-does-this-hang/7630992#7630992
http://mail.scipy.org/pipermail/numpy-discussion/2009-July/0440
Thanks mark! I think that's exactly what I'm looking for. We even had a
previous discussion about this (oops!) (
http://mail.scipy.org/pipermail/numpy-discussion/2011-January/054421.html).
I didn't find any documentation, I will try to add some once I understand
how it works better.
John
On Sat,
Sounds like you need to re-download NumPy, but the version for Python 2.7.
-=- Olivier
2011/10/3 Alex Ter-Sarkissov
> I got a problem running NumPy in Eclipse. I recently installed PyDev, but
> after downloading NumPy the installation attempt failed since python 2.6 was
> not found. I've instal
I got a problem running NumPy in Eclipse. I recently installed PyDev, but
after downloading NumPy the installation attempt failed since python 2.6 was
not found. I've installed Python 2.7. Do I need to replace it with Python
2.6?
___
NumPy-Discussion mail