On Jan 10, 8:19 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On Jan 10, 2008 9:16 AM, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > > These sound like good suggestions, I'll re-implement the richer > > functionality. > > Quick question -- why does this even have to be another function?
Hi, just my 2 cents, extending the matrix-creation command is far better, because you just think this way. I would suggest even more (from the practical point of view) my ideas: 1. check if the matrices are compatible 2. not just 2x2, every possibility matrix-blocks. e.g. [A,B,A,B] or [[A,B,C],[B,B,C]] should work too. 3. If those blocks don't have equal dimensions, try if the smaller dimensions divide the biggest one. if true, then either repeat the smaller block or repeat it on the diagonal; if not true, error. diagonal means, if A is 4x4 and B 2x2: [A,B] = [A, identity-matrix(2) <kronecker-symbol> B] not diagonal: [A,B] = [A, ones(2) <kronecker-symbol> B] 4. if there is a mixture of matrices and numbers (elements of those matrices) interpret them as 1x1 matrices. e.g. if A is 4x4 and the diagonal switch is turned on: [A,3] = [A, identity(4) * 3] i think something in this direction could be very useful. also extending the repeat-layout to upper/lower triangles, band-diagonals (upper,lower,both sides) could be nice, too. H --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@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-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---