Re: [Numpy-discussion] simpliest way to check: array x is float, not integer

2007-05-01 Thread Simon Berube
pe('|S3') # This could also be 'Sxxx' where xxx is the length of the largest string in the array Alternatively, as a hackjob type check you could also do an "isinstance" check on the first element of the array since, unlike lists, arrays have uniform elements all the way

Re: [Numpy-discussion] matlab vs. python question

2007-04-28 Thread Simon Berube
Use a week functions are basically function that you use for a short period of time where a full fledged well designed program is more of a waste of time than anything else. Other then that, for what you miss it really, really depends on your applications and goals. I work on signal processing and

Re: [Numpy-discussion] matlab vs. python question

2007-04-27 Thread Simon Berube
Actually, all the points in this thread have been very good points but I just want to add my 2 cents since I was in your boat just a month ago and decided to try out python after seeing what it could do. In short, I decided to look elsewhere as I was dealing with vector data in database and mainta

[Numpy-discussion] Question about Optimization (Inline and Pyrex)

2007-04-17 Thread Simon Berube
er than it actually is and I am quite frankly afraid of writing routines in one format and realizing later that it creates problems that I need to rewrite. I have tried searching for previous similar posts but could not find any. My apologies if this is a repeat or a severly dumb question. Regards, Si

Re: [Numpy-discussion] 2D Arrays column operations

2007-03-29 Thread Simon Berube
Awww, this is quite right. I kept using the a[0][:] notation and I assume I am simply pulling out single arrays from the array "list". Thank you very much for the prompt reply. (And sorry for wasting your time :P) On Mar 29, 3:46 pm, Travis Oliphant <[EMAIL PROTECTED]> wrote

[Numpy-discussion] 2D Arrays column operations

2007-03-29 Thread Simon Berube
Hi, I am relatively new to Python/NumPy switching over from Matlab and while porting some of my matlab code for practice I ran into the following problem. Assume we have a 2D Matrix such that a = array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) If I want the second row I