Re: [Numpy-discussion] Having trouble installing Numpy on OS X

2009-01-25 Thread Nat Wilson
el Abshoff wrote: > Robert Kern wrote: >> On Sat, Jan 24, 2009 at 18:31, Nat Wilson >> wrote: >>> It throws this out. >>> >>> Python 2.6.1 (r261:67515, Jan 24 2009, 16:08:37) >>> [GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin

Re: [Numpy-discussion] Having trouble installing Numpy on OS X

2009-01-24 Thread Nat Wilson
To be honest, I really don't know. I followed the directions in /Mac/ README for a framework install. How would I check this? Thanks a lot for sticking with me, Nat On Jan 24, 2009, at 7:41 PM, Robert Kern wrote: > On Sat, Jan 24, 2009 at 18:31, Nat Wilson > wrote: >> I

Re: [Numpy-discussion] Having trouble installing Numpy on OS X

2009-01-24 Thread Nat Wilson
random(16) '\xe0;n\x8a*\xb4\x08N\x80<\xef\x9b*\x06\x1b\xc4' >>> Nat On Jan 24, 2009, at 7:12 PM, Robert Kern wrote: > On Sat, Jan 24, 2009 at 17:58, Nat Wilson > wrote: >> Ah, no, I can't import it. >> >> What does this mean? As far as I know, I built

Re: [Numpy-discussion] Having trouble installing Numpy on OS X

2009-01-24 Thread Nat Wilson
t exception set Nat On Jan 24, 2009, at 6:09 PM, Robert Kern wrote: > On Sat, Jan 24, 2009 at 12:34, Nat Wilson > wrote: >> Would anyone be willing to help me interpret an error while trying to >> build and install Numpy? I've searched around, and haven't seen thi

Re: [Numpy-discussion] Having trouble installing Numpy on OS X

2009-01-24 Thread Nat Wilson
I had not, but that doesn't seem to make any difference. By the way, I'm using gfortran 4.2.3 as I do this. Nat On Jan 24, 2009, at 4:38 PM, John Gleeson wrote: On 2009-01-24, at 11:34 AM, Nat Wilson wrote: Would anyone be willing to help me interpret an error while trying to

[Numpy-discussion] Having trouble installing Numpy on OS X

2009-01-24 Thread Nat Wilson
Would anyone be willing to help me interpret an error while trying to build and install Numpy? I've searched around, and haven't seen this elsewhere. I've been running into this wall for about half the day now. I've tried reinstalling Python, using numpy 1.2.0 and 1.2.1. I have Python 2.6.1

[Numpy-discussion] calling numpy from java

2008-07-06 Thread wilson
hi all, is it possible to use numpy functions (like eigh()..etc)from java code? isthere a java wrapper for numpy? thanks wilson ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] svd and eigh

2008-05-03 Thread wilson
thanks for the links.. but why the different signs for entries in eigenvectors? is it a library specific thing? shouldn't they be identical? W ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-di

[Numpy-discussion] svd and eigh

2008-05-02 Thread wilson
I am trying out the eigenvectors related functions in numpy.linalg.I came across some portions where i have doubts. 1). i have an array X if i calculate L=dot(X,X.transpose()) can L be called the covariance matrix of X?I read so in a paper by Turk&Pentland(equation 3 i think) can someone clarify t

[Numpy-discussion] setting rows of a numpy array

2008-04-27 Thread wilson
hi all, i have a numpy array of floats whose rows i need to set. i am setting the each row using pixel values of each image in some folder.I wrote a class MyImage that has a field pixelarray which stores the pixels of that image as a numpy array.I made several MyImage instances and stored them in a

[Numpy-discussion] finding minimum distance using arrays

2008-04-22 Thread wilson
hi i wrote a function to find euclidian distance between two vectors and applied it to the rows of a 2d array of floats as below from math import sqrt from numpy import array,sum def distance(vec1, vec2): return sqrt(sum([(x-y)**2 for x,y in zip(vec1, vec2)])) def findmatch(wts,inputwt):

[Numpy-discussion] sort

2008-04-17 Thread wilson
i have a 1 dimensional array of floats that i want to sort in descending order.i did as follows from numpy import tolist,array,sort y=array([..]) #may be 1000 items z=sort(y) l=z.tolist() l.reverse() rl=array(l) now rl is a 1 dim array sorted in descending order. but i am looking for a better

[Numpy-discussion] diagonalising a 2d array

2008-04-13 Thread wilson
hi what exactly does diagonalising a matrix mean? how do you do it on a symmetric numpy array? W ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] meaning of accumulation/normalisation

2008-04-13 Thread wilson
the Frobenius norm, > Which is matlab speak for sqrt(trace(dot(X.T, X))) thanks for that one Chuck.. 1. i have seen similar normailzations in most image processing code..what exactly is the purpose of such normalization?before making images these values will have to be reprocessed to get the pix

Re: [Numpy-discussion] meaning of accumulation/normalisation

2008-04-11 Thread wilson
> > newul=ul/norm >>the java doc mentions that by the above steps ul is normalised to unit length (vector length) > Umm, not quite, it is missing a square root. You can get the same result by > using the Frobenius norm thanks Chuck.. i found the norm as you advised and then found newul=ul/norm

[Numpy-discussion] meaning of accumulation/normalisation

2008-04-10 Thread wilson
hi i came across some image processing code in java and tried to duplicate the operation on an ndarray.the array is supposed to contain pixel values of a gryscale image generated by the program. however the code does some accumulation operation as below to obtain a value 'norm' ul=array(([],[.

Re: [Numpy-discussion] multiply array

2008-04-04 Thread wilson
> #of shape (1,6) > eval=array([[3.,3.2,1.,1.1,5.,0.5]]) > eval.shape=(-1,) please not the correction..i need to multiply first row of egimgs with 3.0 ,second row with 3.2,last(sixth) row with 0.5 ..For that purpose i made the above into a 1 dimensional array. A for loop seems inefficient in

[Numpy-discussion] multiply array

2008-04-03 Thread wilson
hello i have two arrays #of shape (1,6) eval=array([[3.,3.2,1.,1.1,5.,0.5]]) #of shape (6,8) egimgs=array([ [3.,2.,1.,4.,5.,1.5,2.5,1.1], [1.1,3.,.5,.2,.1,4.3,3.2,1.2], [4.,3.,2.,6.,1.,4.,5.1,2.4], [3.2,1.3,2.2,4.4,1.1,2.1,3.3,2.4