>
> 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...
i know William has responded, but i agree with this. some time ago i was
looking for this same feature and my first inclination was to look for a
function called "submatrix". it actually took me a long time to discover
the function i was looking for. perhaps we could add submatrix and
implement it in terms of matrix_from_rows_and_columns. better yet, is it
possible to support multiple slices?
M = matrix(...)
M[1:2, 1:3]
that would be very nice. if that's possible, what is the notation for the
"full slice" -- perhaps something like
M[:,1:3]
?
i also remember thinking it would be useful to have a "minor" function,
but i don't remember what i wanted it for now. this could also be
implemented easily in terms of matrix_from_rows_and_columns (or
submatrix).
-kyle
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---