[Numpy-discussion] dot() function question

x.piter@gmai... x.piter@gmai...
Thu Jun 28 00:02:54 CDT 2012


Warren Weckesser <warren.weckesser@enthought.com> writes:

> In [6]: a = array([1, -2, 3])
>
> In [7]: outer(a, a)
> Out[7]:
> array([[ 1, -2,  3],
>        [-2,  4, -6],
>        [ 3, -6,  9]])
>
> Warren
Thanks,
It is much nicer then my method of adding a zero column.
Petro.




More information about the NumPy-Discussion mailing list