|
From: Robert K. <rob...@gm...> - 2006-02-14 19:47:45
|
Ryan Krauss wrote: > This is a common problem I have with switching code over to numpy. If > you are in the habit of using if myMatrix: as a way to check for an > empty matrix, numpy now throws this error. It could be replaced with > myMatrix.any(), but then I think there are problems if you use the > same code under Numeric or numarray. sometrue() exists as a ufunc in both. -- Robert Kern rob...@gm... "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter |