[Numpy-discussion] fixing diag() for matrices

Robert Kern robert.kern at gmail.com
Fri Jul 28 17:57:01 CDT 2006

Sven Schreiber wrote:
> The third solution is probably the way of least resistance. However,
> afaik this would be the first time that numpy needs different functions
> to perform essentially the same operation. Since Robert already cited
> the obligatory zen phrase, what about this special casing?

It isn't. Look at numpy/matlib.py

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the Numpy-discussion mailing list