On 4/23/07, didier deshommes <[EMAIL PROTECTED]> wrote:
> On 4/23/07, David Joyner <[EMAIL PROTECTED]> wrote:
> > On 4/23/07, didier deshommes <[EMAIL PROTECTED]> wrote:
> > matrix_from_rows_and_columns(   )
>
> Thanks, I knew there was something I was missing. Any chance of
> aliasing this function to "submatrix()"? Because
> "matrix_from_rows_and_columns()" feels clunky...

No, because it is not a submatrix in general.  For example:

sage: a = random_matrix(QQ,3,4); a
[-1/2    1    0    0]
[  -1   -1    2    2]
[-1/2  1/2   -1    0]
sage: a.matrix_from_columns([0,0,0,1,3])
[-1/2 -1/2 -1/2    1    0]
[  -1   -1   -1   -1    2]
[-1/2 -1/2 -1/2  1/2    0]

Let me know if this function is too slow of a base ring that you're
using -- it can be optimized.

William

--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to