Re: how to do the mapping btw numpy arrayvalues and matrix columns

2007-11-04 Thread [EMAIL PROTECTED]
CW, thanx for the reply..but i was looking for a mapping BTW each item of a numpy.ndarray and the corresponding column of a numpy.matrix ,after some struggle :-) i came up with this #a function to return a column from a matrix def getcol(data, colindex): return data[:,colindex]#returns a m

Re: how to do the mapping btw numpy arrayvalues and matrix columns

2007-11-02 Thread Cameron Walsh
[EMAIL PROTECTED] wrote: > hi > i am looking for some info about mapping btw values in an array and > corresponding columns of a matrix > > i have an numpy array=[11.0,33.0,22.0,55.0,44.0] > and a numpy matrix object= >matrix(([1.3,2.5,3.2,6.7,3.1], >

how to do the mapping btw numpy arrayvalues and matrix columns

2007-11-02 Thread [EMAIL PROTECTED]
hi i am looking for some info about mapping btw values in an array and corresponding columns of a matrix i have an numpy array=[11.0,33.0,22.0,55.0,44.0] and a numpy matrix object= matrix(([1.3,2.5,3.2,6.7,3.1], [9.7,5.6,4.8,2.5,2.2],