Re: [Numpy-discussion] can int and float exists in one array?(about difference in indexing Matlab matrix and Numpy array)

2006-11-27 Thread Zhang Sam
This is great. I try object array in my program just now. It can do what I want to do. Thanks! 2006/11/28, Tim Hochberg <[EMAIL PROTECTED]>: Zhang Sam wrote: > Thanks for so many replies. > > In fact, I want to use several arrays to store the original data from > a practical project. In every

Re: [Numpy-discussion] can int and float exists in one array?(about difference in indexing Matlab matrix and Numpy array)

2006-11-27 Thread Tim Hochberg
Zhang Sam wrote: > Thanks for so many replies. > > In fact, I want to use several arrays to store the original data from > a practical project. In every arrays, two or three column will be > store the index. The main computation is still on matrices(float type) > which is built from the origin

Re: [Numpy-discussion] can int and float exists in one array?(about difference in indexing Matlab matrix and Numpy array)

2006-11-27 Thread Zhang Sam
Thanks for so many replies. In fact, I want to use several arrays to store the original data from a practical project. In every arrays, two or three column will be store the index. The main computation is still on matrices(float type) which is built from the original data. When building the main

Re: [Numpy-discussion] can int and float exists in one array?(about difference in indexing Matlab matrix and Numpy array)

2006-11-27 Thread Tim Hochberg
Zhang Sam wrote: > Hi, there > > I have a practical problem. For some reason, I hope int and float can > exist one array as shown in matlab code. > --- > >> x = [2 2.5 3.5; 1 2.6 3.5] > > x = > > 2.2.5000

Re: [Numpy-discussion] can int and float exists in one array?(about difference in indexing Matlab matrix and Numpy array)

2006-11-27 Thread Robert
Zhang Sam wrote: > Hi, there > > I have a practical problem. For some reason, I hope int and float can > exist one array as shown in matlab code. You can use 'object' as array type: >>> a=numpy.array([1,2.0,2]) >>> b=numpy.array([1,2.0,2],object) >>> a array([ 1., 2., 2.]) >>> b array([1,

Re: [Numpy-discussion] can int and float exists in one array?(about difference in indexing Matlab matrix and Numpy array)

2006-11-27 Thread Keith Goodman
On 11/27/06, Robert Kern <[EMAIL PROTECTED]> wrote: > Zhang Sam wrote: > > However in python with numpy, the similar code is as follows. > > -- > > x = array([[2, 2.5, 3.5],[1, 2.6, 3.5]]) > x > > array([[

Re: [Numpy-discussion] can int and float exists in one array?(about difference in indexing Matlab matrix and Numpy array)

2006-11-27 Thread Robert Kern
Zhang Sam wrote: > However in python with numpy, the similar code is as follows. > -- > x = array([[2, 2.5, 3.5],[1, 2.6, 3.5]]) x > array([[ 2. , 2.5, 3.5], >[ 1. , 2.6, 3.5]]) y = x[:,1]

[Numpy-discussion] can int and float exists in one array?(about difference in indexing Matlab matrix and Numpy array)

2006-11-27 Thread Zhang Sam
Hi, there I have a practical problem. For some reason, I hope int and float can exist one array as shown in matlab code. --- >> x = [2 2.5 3.5; 1 2.6 3.5] x = 2.2.50003.5000 1.2.60003.5000 y

Re: [Numpy-discussion] Assumed 64bit-Incompatiblity in numpy svn test_regression

2006-11-27 Thread Jan-Matthias Braun
Am Montag 27 November 2006 07:55 schrieb Stefan van der Walt: > On Sun, Nov 26, 2006 at 04:12:47PM +0100, Jan-Matthias Braun wrote: > > after building current numpy from svn (1.0.1.dev3460 as of writing :), > > the call for numpy.test(10, 10) fails with following output added at the > > end of the