On Wed, 31 Oct 2007 21:53:35 -0700, Manny <[EMAIL PROTECTED]> wrote: > On Oct 30, 9:19 pm, Carl Witty <[EMAIL PROTECTED]> wrote: >> The simplest workaround is not to try to store Sage values in numpy >> arrays. Is there a reason you can't use Sage matrices? If there is >> some matrix functionality that numpy has and Sage doesn't, maybe we >> could add it to Sage. > > Thanks for your info and help. > > I want to use the flexible indexing and array shaping capabilities of > numpy. If there is a way to do general arrays and associated > indexing, reshaping, contraction, etc. directly, that would be nice.
Hi, numpy arrays are multidimensional, etc., and are much more sophisticated than Sage matrices. All Sage does is 2-dimensional nxm matrices, and isn't really designed for sophisticated reshaping, especially in the multidimensional case (where Sage doesn't do anything). Are you working with multidimensional arrays? William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---