You can make a mask array in numpy to prune out items from an array
that you don't want, denoting indices you want to keep with 1's and
those you don't want to keep with 0's. For instance,
a = np.array([1,3,45,67,123])
mask = np.array([0,1,1,0,1],dtype=np.bool)
anew = a[mask]
will set anew equal
I agree with Jon here. I can see plenty of motivation for adding the
names asin, etc., but there really isn't a need to remove the current
versions, and it will just introduce compatibility issues when someone
tries to run code written with NumPy 1.x using a NumPy 2.x
installation for even the
If you use iPython and use numpy.linalg.solve??, you can see the
source code of the file numpy/linalg/linalg.py that corresponds to the
solve(a,b) function, not just the docstring:
def solve(a, b):
Solve the equation ``a x = b`` for ``x``.
Parameters
--
a :
David said the bug was fixed in the trunk, which you don't have; the
development state of the main source code, or the trunk, is the latest
state available, and releases are always a bit behind trunk since it
would be kind of ridiculous to make a new release every time someone
commits a change.
tests, and this Nose system should make it easier
to manage the tests.
Josh
On Wed, Jun 18, 2008 at 6:35 PM, Stéfan van der Walt [EMAIL PROTECTED] wrote:
2008/6/19 Joshua Lippai [EMAIL PROTECTED]:
The new testing system works well over here, built on Mac OS X 10.5.2
with GCC 4.2. No errors
The new testing system works well over here, built on Mac OS X 10.5.2
with GCC 4.2. No errors/failures, but there is that warning Charles
mentioned as well as the noticeable difference in speed between this
and the old tests.
Josh
On Mon, Jun 16, 2008 at 8:28 PM, Alan McIntyre [EMAIL PROTECTED]
I seem to be getting a few errors and failures with the current numpy
SVN (1.2.0.dev5236). I get this output with numpy.test(1,10):
ERROR: Ticket #396
--
Traceback (most recent call last):
File
AM, Robert Kern [EMAIL PROTECTED] wrote:
On Mon, Mar 31, 2008 at 12:45 AM, Joshua Lippai [EMAIL PROTECTED] wrote:
I am using Mac OS X 10.5.2, with Python 2.5.2. My build output for
NumPy is clean and successful and my numpy.test produces no errors or
failures, but when I type f2py from
I eliminated everything easy-install related already since I actually
was aiming to reinstall everything without it (though, alas, dateutil
seems to require it now).
On Mon, Mar 31, 2008 at 8:18 PM, Robert Kern [EMAIL PROTECTED] wrote:
On Mon, Mar 31, 2008 at 9:11 AM, Joshua Lippai [EMAIL
I am using Mac OS X 10.5.2, with Python 2.5.2. My build output for
NumPy is clean and successful and my numpy.test produces no errors or
failures, but when I type f2py from Terminal, I get the following:
$ f2py
Traceback (most recent call last):
File
Thanks for the reply. Well, I built my Python stuff, including NumPy
previously, before I changed to the higher GCC version. Do you know if
there's an option I can toggle that will specify Apple's GCC to be
used?
$ CC=/usr/bin/gcc python setup.py build
--
Robert Kern
I have come
Joshua Lippai wrote:
Thanks, it worked perfectly. I'd hate to be a little off topic in the
NumPy discussion and bug you, but when I try to compile the latest
scipy, I get:
g++: unrecognized option '-no-cpp-precomp'
cc1plus: error: unrecognized command line option -arch
cc1plus
It's actually pretty simple to compile it yourself once you've
installed the latest Xcode from http://developer.apple.com and X11
from the OS X Tiger install disc. The instructions on Scipy's official
OS X installation page ( http://scipy.org/Installing_SciPy/Mac_OS_X )
are great for that. That
On Nov 29, 2007 2:32 PM, Zachary Pincus [EMAIL PROTECTED] wrote:
Hello all,
I'm curious if people have experience with / preferences for how to
display a numpy array onscreen as an image.
Pyglet looks relatively easy -- you can feed an image buffer object
with a string or a ctypes pointer.
On Nov 29, 2007 3:21 PM, Christopher Barker [EMAIL PROTECTED] wrote:
Joshua Lippai wrote:
You should probably email the guy and ask him to make
older versions of the superpack available, or at least the last PPC
one he made. Best of luck.
Even better would be Universal (fat) binaries
I updated my GCC to a more recent version a day ago, since Apple's
Xcode Tools only provide GCC 4.0 and the current release of GNU's GCC
is 4.2. I successfully achieved this, but now I run into a problem
when trying to build NumPy:
gcc: unrecognized option '-no-cpp-precomp'
cc1: error:
Joshua Lippai wrote:
I updated my GCC to a more recent version a day ago, since Apple's
Xcode Tools only provide GCC 4.0 and the current release of GNU's GCC
is 4.2. I successfully achieved this, but now I run into a problem
when trying to build NumPy:
gcc: unrecognized option
17 matches
Mail list logo