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.
> > -- 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
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
> ...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
__
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
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,
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
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
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
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
=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
;))[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
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',
'
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
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
15 matches
Mail list logo