[Numpy-discussion] funny matrix product calculation
Robin
robince at gmail.com
Mon Sep 15 06:26:02 EDT 2008
On Sun, Sep 14, 2008 at 10:17 PM, Fabrice Silva <silva at lma.cnrs-mrs.fr> wrote:
> What about considering a square diagonal matrix having vector x on its
> main diagonal ?
> Calling X such a matrix:
> X = numpy.matrix(numpy.diag(x, k=0))
Thanks folks - I think your suggestions will work. Don't know why I
didn't see it myself.
Cheers
Robin
More information about the NumPy-Discussion
mailing list