Re: [Numpy-discussion] resize in old Numeric

2007-12-13 Thread Christian Meesters
Thank you all for your valuable input. Learned something 'bout Numeric again. And my problem is solved ;-). Thanks Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] resize in old Numeric

2007-12-12 Thread Christian Meesters
Hi, For compatibility reasons (work with Biopython) I would like to use to Numeric in some code of mine. (Of course, I could make a little detour converting into numpy.array, but first I wonder whether somebody might know a solution for the problem with Numeric.) I need to flatten a simple 3x3 ar

Re: [Numpy-discussion] getting indices for array positions

2007-02-08 Thread Christian Meesters
Hi Thanks for all your suggestions. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] getting indices for array positions

2007-02-07 Thread Christian Meesters
> Try searchsorted. Thanks, but that doesn't work. Sorry, if my question wasn't clear. To illustrate the requirement: For instance: >>> a array([ 0. , 0.1, 0.2, 0.3, 0.4]) >>> # should be 1 ... >>> a.searchsorted(0.11) 2 >>> # should be 2 ... >>> a.searchsorted(0.16) 2 I could correct for one

[Numpy-discussion] getting indices for array positions

2007-02-07 Thread Christian Meesters
Hi This questions might seem stupid, but I didn't get a clever solution myself, or found one in the archives, the cookbook, etc. . If I overlooked something, please give a pointer. Well, if I have an 1D array like [ 0. , 0.1, 0.2, 0.3, 0.4, 0.5] ,a scalar like 0.122 and want to retrieve th

Re: [Numpy-discussion] OpenSuse 10.2 and numpy

2007-01-04 Thread Christian Meesters
Hoi Nils, I'm still with 10.0 on my machine, but perhaps this helps: I followed exactely the instructions given here: http://pong.tamu.edu/tiki/tiki-view_blog_post.php?blogId=6&postId=97 and also sticked exactly to the recommended compiler flags given here: http://www.scipy.org/Installing_SciPy/Bu

[Numpy-discussion] migrating to numpy

2006-12-15 Thread Christian Meesters
Hi I was looking for a guide how to migrate old numeric code to numpy and couldn't find anything on the web. Any pointers for me? TIA and sorry for bothering, since this surely was discussed already, Christian ___ Numpy-discussion mailing list Numpy-di