On Sep 23, 2008, at 8:45 AM, aniura wrote:
> > hi, > > I wanted to know if there is a way to work in Sage with arrays of > matrices or something similar (something like a[i,j,k], so that > a[i,:,:], a[:,j,:] and a[:,:,k] are all matrices. I tried to use a > list of matrices but apparently sage interprets it as a list of > vectors: > > sage: m=matrix(RR,2,range(1,5)) > sage: m1=matrix(RR,2,range(6,10)) > sage: lm=list(m) > sage: lm.append(m1) > sage: lm You should do lm = [m] lm.append(m1) instead. When you call list(m) you are asking to *convert* the matrix to a list. david --~--~---------~--~----~------------~-------~--~----~ 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://www.sagemath.org -~----------~----~----~----~------~----~------~--~---