, 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
> 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
> 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
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
> > 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
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
. 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
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
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
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
10 matches
Mail list logo