From: Alan G I. <ai...@am...> - 2006-06-23 21:26:47
|
> Alan G Isaac wrote:=20 >> I can roughly understand why a.ravel() returns a matrix;=20 >> but is there a good reason to forbid truly flattening the matrix?=20 On Fri, 23 Jun 2006, Travis Oliphant apparently wrote:=20 > Because matrices are never 1-d. This is actually pretty=20 > consistent behavior.=20 Yes; that's why I can understand ravel. But I was referring to flat with the question. On Fri, 23 Jun 2006, Travis Oliphant apparently wrote:=20 > I think you are right that this is a bug, though. Because=20 > __array__() (which is where the behavior comes from)=20 > should return a base-class array (not a sub-class).=20 Thanks for fixing this!! Alan |