On Mon, Feb 15, 2010 at 9:07 PM, Nick Alexander <ncalexan...@gmail.com> wrote:
>>> To have an idea of the usage I went trough the code:
>>>
>>>  - MatrixSpace.identity_matrix implement 1.
>>>  - MatrixSpace.zero_matrix implement 3.
>>>
>>> Of course, my opinion is to make those three methods implements 2. :-)
>>
>> +1 for doing option (2).
>
>
> I very often want to start with the zero_matrix or the identity_matrix and
> "fill in" the rest of the matrix.  But I also want the access routines to be
> fast!  So I vote for copy-on-write semantics, if possible.
>
> Nick

Nick's suggestion is definitely a (4) -- it's nothing like any of
(1)-(3) in this discussion.  It could be done, but would be a *lot* of
work (certainly way more than 1-3), and would likely slow down all
writes somewhat.   But it's possible.

William

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to