Discussion: Introducing new operators for matrix computation
Matt Feinstein
mfein at aplcomm.jhuapl.edu
Fri Jul 14 08:03:55 EDT 2000
On Thu, 13 Jul 2000 19:47:23 GMT, hzhu at localhost.localdomain (Huaiyu
Zhu) wrote:
>
>>The main thing I'd think about in addition to standard MATLAB syntax
>>is a natural 'prolongation' syntax.
>
>Are you thinking about this?
>a = [1 2]
>b = [3 4]
>[a,b] # [1 2 3 4]
>[a;b] # [1 2; 3 4]
>
What I mean is, given vectors, e.g.,
d = [d1 d2]
c = [ c1 c2 c3]
an apparently incorrect element-wise multiplication like
d'.*c
would be interpreted as
[d1 d1 d1; d2 d2 d2].*[c1 c2 c3;c1 c2 c3]
--
Matt Feinstein
mfein at aplcomm.jhuapl.edu
Organizational Department of Repeated
and Unnecessary Redundancy
More information about the Python-list
mailing list