| 1 | initial version |
This is because numpy does not recognize Sage integers as scalars. This is arguably a bug in numpy (since it is checking for scalars by looking at the type, rather than trying to coerce to an integer using the standard python functions to do so). A workaround is to use int(22) or 22r (i.e., a 'raw' 22) instead.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.