Re: [Numpy-discussion] Automatic matrices

2006-12-21 Thread Keith Goodman
On 12/21/06, Sven Schreiber <[EMAIL PROTECTED]> wrote: > Keith Goodman schrieb: > > > How about diag? > > > > There was a thread about this (in which you participated, I believe); > for matrices you should now use m.diagonal() I think. So diag doesn't > qualify. I think the different results retur

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-21 Thread Robert Kern
Pierre GM wrote: > On Thursday 21 December 2006 16:10, Travis Oliphant wrote: > >> I much prefer to make SciPy an easy install for as many people as >> possible and/or work on breaking up SciPy into modular components that >> can be installed separately if needed. > > Talking about that, what

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-21 Thread Pierre GM
On Thursday 21 December 2006 16:10, Travis Oliphant wrote: > I much prefer to make SciPy an easy install for as many people as > possible and/or work on breaking up SciPy into modular components that > can be installed separately if needed. Talking about that, what happened to these projects o

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-21 Thread Christopher Barker
A key thing to remember here is that each user has their particular set of "small things" that are all they need from scipy -- put us all together, and you have SciPy -- that's what it is for. > As a user, I suggest that this becomes a reasonable goal > when up to date SciPy installers are main

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-21 Thread Travis Oliphant
Mark Janikas wrote: > Thanks for all the input so far. The only thing that seems odd about > the omission of probability or quantile functions in NumPy is that all > the random number generators are present in RandomArray. A big part of the issue is that getting many of those pdfs into NumPy wou

Re: [Numpy-discussion] Automatic matrices

2006-12-21 Thread Sven Schreiber
Keith Goodman schrieb: > How about diag? > There was a thread about this (in which you participated, I believe); for matrices you should now use m.diagonal() I think. So diag doesn't qualify. -sven ___ Numpy-discussion mailing list Numpy-discussion@sc

Re: [Numpy-discussion] Assignment when there is nothing to assign

2006-12-21 Thread Keith Goodman
On 12/21/06, Keith Goodman <[EMAIL PROTECTED]> wrote: > I have the following two lines in a for loop: > > if len(idx): > x[idx,i] = x[idx,i-1] > > where idx is the output of a where statement. > > I need the 'if len(idx)' line to prevent an error when idx is empty. > > Would it make sense to al

Re: [Numpy-discussion] PyArray_DIMS problem

2006-12-21 Thread Sebastian Haase
Hi! On 12/20/06, Gennan Chen <[EMAIL PROTECTED]> wrote: Hi! I have problem with this function call under FC6 X86_64 for my own numpy extension printf("\n %d %d %d", PyArray_DIM(imgi,0),PyArray_DIM(imgi,1),PyArray_DIM(imgi,2)) it gave me 166 256 256 if I tried: int *dim; dim = PyArr

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-21 Thread A. M. Archibald
On 21/12/06, Alan G Isaac <[EMAIL PROTECTED]> wrote: > A Dijous 21 Desembre 2006 05:59, A. M. Archibald escrigué: > > It seems to me that numpy should include only tools for > > basic calculations on arrays of numbers. The ufuncs, > > simple wrappers (dot, for example). Anything that requires > > n

[Numpy-discussion] Assignment when there is nothing to assign

2006-12-21 Thread Keith Goodman
I have the following two lines in a for loop: if len(idx): x[idx,i] = x[idx,i-1] where idx is the output of a where statement. I need the 'if len(idx)' line to prevent an error when idx is empty. Would it make sense to allow x[idx,i] = x[idx,i-1] when idx is empty instead of raising an er

[Numpy-discussion] ANN: PyTables 1.4 released

2006-12-21 Thread Francesc Altet
=== Announcing PyTables 1.4 === PyTables is a library for managing hierarchical datasets and designed to efficiently cope with extremely large amounts of data with support for full 64-bit file addressing. It is based on the HDF5 library for doing th

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-21 Thread Alan G Isaac
A Dijous 21 Desembre 2006 05:59, A. M. Archibald escrigué: > It seems to me that numpy should include only tools for > basic calculations on arrays of numbers. The ufuncs, > simple wrappers (dot, for example). Anything that requires > nontrivial amounts of math (matrix inversion, statistical >

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-21 Thread Francesc Altet
A Dijous 21 Desembre 2006 05:59, A. M. Archibald escrigué: > On 20/12/06, Alan G Isaac <[EMAIL PROTECTED]> wrote: > > On Wed, 20 Dec 2006, Robert Kern apparently wrote: > > > We have a full complement of PDFs, CDFs, etc. in scipy. > > > > This is my "most missed" functionality in NumPy. > > (For no

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-21 Thread Mark Janikas
Thanks for all the input so far. The only thing that seems odd about the omission of probability or quantile functions in NumPy is that all the random number generators are present in RandomArray. At any rate, hopefully this bit of functionality will be present in the future, but for now, IMO the

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-21 Thread Keith Goodman
On 12/20/06, A. M. Archibald <[EMAIL PROTECTED]> wrote: > Moreover it damages the performance of > numpy. For example, dot would be faster (for arrays that happen to be > matrix-shaped, and possibly in general) if it could use ATLAS' routine > from BLAS. I thought numpy uses ATLAS. Matrix multipl

Re: [Numpy-discussion] Automatic matrices

2006-12-21 Thread Keith Goodman
On 12/21/06, Sven Schreiber <[EMAIL PROTECTED]> wrote: > Sven Schreiber schrieb: > > Keith Goodman schrieb: > > > >> There are many numpy functions that will take a matrix as input but > >> return an array. > >> > >> The nan functions (nanmin, nanmax, nanargmin, nanargmax, nansum) are an > >> exam

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-21 Thread Sven Schreiber
A. M. Archibald schrieb: > On 20/12/06, Alan G Isaac <[EMAIL PROTECTED]> wrote: >> This is my "most missed" functionality in NumPy. >> (For now I feel cannot ask students to install SciPy.) >> Although it is a slippery slope, and I definitely do not >> want NumPy to slide down it, I would certainl

Re: [Numpy-discussion] Automatic matrices

2006-12-21 Thread Sven Schreiber
Sven Schreiber schrieb: > Keith Goodman schrieb: > >> There are many numpy functions that will take a matrix as input but >> return an array. >> >> The nan functions (nanmin, nanmax, nanargmin, nanargmax, nansum) are an >> example. >> > > So that would be a bug IMHO and should be filed as a tick