[sage-devel] Re: Block matrices?

2008-01-10 Thread didier deshommes
On Jan 9, 2008 3:23 AM, Robert Bradshaw [EMAIL PROTECTED] wrote: http://sagetrac.org/sage_trac/ticket/1732 2 questions about the patch: * Why is this function named block_sum? What are we summing? * Why are we limited to 4 arguments? Ideally, I would love to pass a list to this function and

[sage-devel] Re: Block matrices?

2008-01-10 Thread David Joyner
I agree with Didier's comments. Judging from emails to the GAP support list (Which also has such a function), a block matrix function will be frequently used. I think it should be well-documented. On 1/10/08, didier deshommes [EMAIL PROTECTED] wrote: On Jan 9, 2008 3:23 AM, Robert Bradshaw

[sage-devel] Re: Block matrices?

2008-01-10 Thread Robert Bradshaw
These sound like good suggestions, I'll re-implement the richer functionality. On Jan 10, 2008, at 7:50 AM, didier deshommes wrote: On Jan 9, 2008 3:23 AM, Robert Bradshaw [EMAIL PROTECTED] wrote: http://sagetrac.org/sage_trac/ticket/1732 2 questions about the patch: * Why is this

[sage-devel] Re: Block matrices?

2008-01-10 Thread William Stein
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? Couldn't we just expand the functionality of the matrix command, at least in

[sage-devel] Re: Block matrices?

2008-01-10 Thread Harald Schilly
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

[sage-devel] Re: Block matrices?

2008-01-10 Thread Nick Alexander
On 10-Jan-08, at 11:44 AM, Harald Schilly wrote: 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

[sage-devel] Re: Block matrices?

2008-01-10 Thread Harald Schilly
On Jan 10, 10:41 pm, Nick Alexander [EMAIL PROTECTED] wrote: That may be true, but this function is already so overloaded that understanding the code is very difficult. well, what if there are both functions and matrix just calls block_matrix if there are matrix objects in the list of

[sage-devel] Re: Block matrices?

2008-01-09 Thread vgermrk
On 9 Jan., 08:25, Mike Hansen [EMAIL PROTECTED] wrote: It was my impression that he didn't want a matrix with matrix entries, but instead wanted the matrix whose entries were given by the entries of the submatrices. --Mike That's right. I should make myself more clearer next time.

[sage-devel] Re: Block matrices?

2008-01-09 Thread Robert Bradshaw
http://sagetrac.org/sage_trac/ticket/1732 On Jan 8, 2008, at 4:27 AM, vgermrk wrote: Is there a way to construct block matrices in SAGE? Not just the block_sum, augment and stack functions. As an example, let A, B, C, D be matrices and i want to construct a matrix like E=[[A,B],[C,D]]

[sage-devel] Re: Block matrices?

2008-01-08 Thread William Stein
On Jan 8, 2008 4:27 AM, vgermrk [EMAIL PROTECTED] wrote: Is there a way to construct block matrices in SAGE? Not just the block_sum, augment and stack functions. As an example, let A, B, C, D be matrices and i want to construct a matrix like E=[[A,B],[C,D]] Such a feature would be very

[sage-devel] Re: Block matrices?

2008-01-08 Thread [EMAIL PROTECTED]
On Jan 9, 7:43 am, William Stein [EMAIL PROTECTED] wrote: On Jan 8, 2008 4:27 AM, vgermrk [EMAIL PROTECTED] wrote: Is there a way to construct block matrices in SAGE? Not just the block_sum, augment and stack functions. As an example, let A, B, C, D be matrices and i want to

[sage-devel] Re: Block matrices?

2008-01-08 Thread William Stein
On Jan 8, 2008 11:05 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Jan 9, 7:43 am, William Stein [EMAIL PROTECTED] wrote: On Jan 8, 2008 4:27 AM, vgermrk [EMAIL PROTECTED] wrote: Is there a way to construct block matrices in SAGE? Not just the block_sum, augment and stack

[sage-devel] Re: Block matrices?

2008-01-08 Thread [EMAIL PROTECTED]
Sage's MatrixSpace and matrix don't have support for this. numpy (which you get via import numpy) might have support for numerical matrices like this. CVXOPT also has support for this: http://abel.ee.ucla.edu/cvxopt/examples/short-examples/creating-matri... And, just to be clear,

[sage-devel] Re: Block matrices?

2008-01-08 Thread Mike Hansen
It was my impression that he didn't want a matrix with matrix entries, but instead wanted the matrix whose entries were given by the entries of the submatrices. --Mike On Jan 8, 2008 11:12 PM, William Stein [EMAIL PROTECTED] wrote: On Jan 8, 2008 11:05 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]

[sage-devel] Re: Block matrices?

2008-01-08 Thread Robert Bradshaw
That will be really easy to implement, I'll do it right now. - Robert On Jan 8, 2008, at 11:25 PM, Mike Hansen wrote: It was my impression that he didn't want a matrix with matrix entries, but instead wanted the matrix whose entries were given by the entries of the submatrices. --Mike