On Wed, 25 Oct 2006 13:15:57 -0500, Heidi <[EMAIL PROTECTED]> wrote:
> > Is there a way to construct a large block matrix in SAGE? For instance, > I would like to define the submatrices and then list them in the order > that they repeat in the large matrix. I hear that it is possible in > MAPLE (which I do not have). Thank you. Do you mean like this: sage: A = matrix(QQ,3,range(9)) sage: B = matrix(QQ,2,range(4)) sage: A.block_sum(B) [0 1 2 0 0] [3 4 5 0 0] [6 7 8 0 0] [0 0 0 0 1] [0 0 0 2 3] sage: A.augment(A) [0 1 2 0 1 2] [3 4 5 3 4 5] [6 7 8 6 7 8] sage: B.stack(B) [0 1] [2 3] [0 1] [2 3] --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-forum URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---
