Re: [Numpy-discussion] arange and floating point arguments

2007-09-16 Thread Anton Sherwood
, but not vice versa, so binary can indeed be less accurate for some numbers. -- Anton Sherwood, http://www.ogre.nu/ "How'd ya like to climb this high *without* no mountain?" --Porky Pine ___ Numpy-discussion mailing list Nu

Re: [Numpy-discussion] sort bug

2007-04-29 Thread Anton Sherwood
> Anton Sherwood wrote: > > I'm using eigenvectors of a graph's adjacency matrix as "topological" > > coordinates of the graph's vertices as embedded in 3space (something I > > learned about just recently). Whenever I've done this with a graph

Re: [Numpy-discussion] sort bug

2007-04-29 Thread Anton Sherwood
> Anton Sherwood wrote: > I refined it slightly: > > val,vec = numpy.linalg.eig(adj) > indx = val.argsort()[-4:-1] > val = val.take(indx) > vec = vec.take(indx, axis=1) > master = zip(val, vec.T) Charles R Harris wrote: > But that won't get

Re: [Numpy-discussion] sort bug

2007-04-28 Thread Anton Sherwood
g = eig.take(indx) > val = val.take(indx, axis=1) > master = zip(eig, val.T) Thank you, that worked. http://www.ogre.nu/wp/?p=1978 I refined it slightly: val,vec = numpy.linalg.eig(adj) indx = val.argsort()[-4:-1] val = val.take(indx) vec = vec.take(indx, axis=1) master = zip(val, vec

Re: [Numpy-discussion] [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-27 Thread Anton Sherwood
> > Jan Grant wrote: > >> . . . the space of doubles include a small number of things > >> that aren't representable by a rational (+/- inf, for instance). > Anton Sherwood wrote: > > +1/0, -1/0 David Goldsmith wrote: > Are not unique representat

Re: [Numpy-discussion] [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-27 Thread Anton Sherwood
Jan Grant wrote: > . . . the space of doubles include a small number of things > that aren't representable by a rational (+/- inf, for instance). +1/0, -1/0 -- Anton Sherwood, http://www.ogre.nu/ ___ Numpy-discussion mailing list Numpy

Re: [Numpy-discussion] sort bug

2007-04-26 Thread Anton Sherwood
. What do you actually want to do when you > have equal-valued eigenvalues? Don't care. All I really need is the four highest eigenvalues and their vectors. I'll have a look in "Python Cookbook" to see if there's a more efficient way to do that partial sor

[Numpy-discussion] sort bug

2007-04-25 Thread Anton Sherwood
I get this error (sometimes) even when it returns reals. -- Anton Sherwood, http://www.ogre.nu/ "How'd ya like to climb this high *without* no mountain?" --Porky Pine ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://p

Re: [Numpy-discussion] MacNoob

2007-04-21 Thread Anton Sherwood
Anton Sherwood wrote (Apr 11): >> When I try to build numpy (or PIL) on MacOS, I get this error: >> "gcc: cannot specify -o with -c or -S and multiple compilations" >> >> Assuming at least one of you is using numpy on MacOS, >> how did you get aroun

[Numpy-discussion] MacNoob

2007-04-11 Thread Anton Sherwood
When I try to build numpy (or PIL) on MacOS, I get this error: "gcc: cannot specify -o with -c or -S and multiple compilations" Assuming at least one of you is using numpy on MacOS, how did you get around that? Thanks. -- Anton Sherwood, http://www.ogre.nu/ "How'd ya lik