[Numpy-discussion] How do I make a diagonal matrix?
Alan G Isaac
aisaac at american.edu
Fri Jun 23 13:29:11 CDT 2006
> Alan G Isaac wrote:
>> Hmm. One would think that diag() would accept a flatiter
>> object, but it does not. Shouldn't it??
On Fri, 23 Jun 2006, Travis Oliphant apparently wrote:
> It doesn't?
> a = rand(3,4)
OK, but then try:
Why is a.flat not the same as a.A.flat?
More information about the Numpy-discussion