[Numpy-discussion] slicing suggestion

2006-10-20 Thread JJ
Hello. I have a suggestion that might make slicing using matrices more user-friendly. I often have a matrix of row or column numbers that I wish to use as a slice. If K was a matrix of row numbers (nx1) and M was a nxm matrix, then I would use ans = M[K.A.ravel(),:] to obtain the matrix I want.

Re: [Numpy-discussion] suggestions for slices of matrices

2006-10-10 Thread jj
> > -- If M is a nxm matrix and P and Z are nx1 (or 1xn) > > matrices, then it would be nice if we could write > > M[P==Z,:] to obtain all columns and only those rows > > where P==Z. > This works already if p and z are 1-d arrays. That seems to be the > only issue. you want this to work with

[Numpy-discussion] suggestions for slices of matrices

2006-10-09 Thread JJ
Hello. I haven't been following development too closely lately, but I did just download and reinstall the current svn version. For what its worth, I would like to again suggest two changes: -- If M is a nxm matrix and P and Z are nx1 (or 1xn) matrices, then it would be nice if we could write M[P

Re: [Numpy-discussion] suggestions for Matrix-related changes

2006-07-11 Thread JJ
> ...unless it returned the unique rows instead of the > unique elements > in each row. So if the matrix is > > 1 2 2 > 3 4 5 > 1 2 2 > > then the unique rows would be > > 1 2 2 > 3 4 5 > Hello Keith. Yes, that is what I mean also. JJ __

Re: [Numpy-discussion] suggestions for Matrix-related changes

2006-07-11 Thread JJ
Travis Oliphant ee.byu.edu> writes: > But, some kind of function that returns an array with specific > entries deleted would be nice. I agree. This would be just fine. > We could over-ride the iterator > behavior of matrices, though to handle 1xn and nx1 matrices > identically if that is

[Numpy-discussion] bug in stats.binom? Or is it just me.

2006-07-11 Thread JJ
that: binom.ppf(q,n,pr,loc=0) - percent point function (inverse of cdf --- percentiles) So I would expect binom.ppf to take three variables. I expected the function to return a number, such as is done in matlab: N = 100 alpha = 0.05 p1 = 0.30 cutoff = binoinv(1-alpha,

[Numpy-discussion] suggestions for Matrix-related changes

2006-07-11 Thread JJ
inear algebra package and other packages returned matrices if given matrices. For example, if M is a matrix, svd(M) now returns arrays. Just some suggestions. I wish I knew more so I could help implement them. Mayb

Re: [Numpy-discussion] What's wrong with matrices?

2006-07-09 Thread JJ
Ed Schofield ftw.at> writes: > > > On 08/07/2006, at 10:22 PM, JJ wrote: > > > 3) In some operations, especially range selection operations, a N, > > 1 matrix is > > turned into a 1,N matrix. This is confusing relative to matlab and > > problematic

Re: [Numpy-discussion] What's wrong with matrices?

2006-07-09 Thread JJ
Ed Schofield ftw.at> writes: > > > On 08/07/2006, at 10:22 PM, JJ wrote: > > > 3) In some operations, especially range selection operations, a N, > > 1 matrix is > > turned into a 1,N matrix. This is confusing relative to matlab and > > problematic

Re: [Numpy-discussion] What's wrong with matrices?

2006-07-08 Thread JJ
han one is python and one is not)? What are the benefits of numpy/scipy over R? In the future, do numpy users want stat libraries like R has? Or put another way, when numpy/scipy is mature, when would you use numpy and when would you use R? Thanks. JJ (J

[Numpy-discussion] arguments for stats.chi2

2006-07-04 Thread JJ
=10,loc=0,scale=1) or stats.chi2.rvs(df=10)does not work. Can anyone tell me what the proper syntax would be for this? Thanks JJ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Using Tomcat

[Numpy-discussion] syntax for obtaining rank of two columns?

2006-06-15 Thread JJ
;))[2] Im thinking there must be a less awkward way. Any ideas? JJ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Numpy-discussion mailing

[Numpy-discussion] acml and numpy install problems

2006-06-14 Thread JJ
unc_api.h' to sources. conv_template:> build/src.linux-x86_64-2.4/numpy/core/src/scalarmathmodule.c numpy.core - nothing done with h_files= ['build/src.linux-x86_64-2.4/numpy/core/ config.h', 'build/src.linux-x86_64-2.4/numpy/core/__multiarray_api.h', '

[Numpy-discussion] speed of numpy vs matlab on dot product

2006-06-10 Thread JJ
Hello. I am a new user to scipy, thinking about crossing over from Matlab. I have a new AMD 64 machine and just installed fedora 5 and scipy. It is a dual boot machine with windows XP. I did a small test to compare the speed of matlab (in 32 bit windows, Matlab student v14) to the speed of scip

[Numpy-discussion] trouble installing on fedora core 5 64 bit

2006-06-07 Thread JJ
Hello. I am having some trouble getting numpy installed on an AMD 64 bit Fedora 5 machine. I have loaded atlas, blas, and lapack using yum. I can see their library files in /usr/lib64/atlas/ (files such as libblas.so.3.0). But the setup program will not run. I have obtained the latest version