[Numpy-discussion] [Matplotlib-users] Unifying numpy, scipy, and matplotlib docstring formats

Alan G Isaac aisaac@american....
Mon Feb 26 11:39:12 CST 2007


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






More information about the Numpy-discussion mailing list