On Sun, 25 Feb 2007, Jouni K. Seppänen apparently wrote: 
> it is easier to type something like 
>   [0 1 0; 1 0 0; 0 0 1] 
> than 
>   array([[0,1,0],[1,0,0],[0,0,1]]) 


x = numpy.mat('0 1 0; 1 0 0; 0 0 1').A

hth,
Alan Isaac




_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to