[sage-support] Re: changing matrix entries

2007-06-22 Thread William Stein
On 6/20/07, Justin C. Walker <[EMAIL PROTECTED]> wrote: > > On 6/20/07, Marshall Hampton <[EMAIL PROTECTED]> wrote: > >> I now want to do some loops and update certain entries of the matrix. > >> But the entries seem immutable, e.g. one can do: > >> > >> my_matrix[0][0] += 1 > >> > >> and the entr

[sage-support] Re: changing matrix entries

2007-06-20 Thread Justin C. Walker
On Jun 20, 2007, at 10:41 , didier deshommes wrote: > > On 6/20/07, Marshall Hampton <[EMAIL PROTECTED]> wrote: >> I now want to do some loops and update certain entries of the matrix. >> But the entries seem immutable, e.g. one can do: >> >> my_matrix[0][0] += 1 >> >> and the entry is still zer

[sage-support] Re: changing matrix entries

2007-06-20 Thread Marshall Hampton
Thank you! On Jun 20, 11:41 am, "didier deshommes" <[EMAIL PROTECTED]> wrote: > On 6/20/07, Marshall Hampton <[EMAIL PROTECTED]> wrote: > > > I now want to do some loops and update certain entries of the matrix. > > But the entries seem immutable, e.g. one can do: > > > my_matrix[0][0] += 1 > > >

[sage-support] Re: changing matrix entries

2007-06-20 Thread didier deshommes
On 6/20/07, Marshall Hampton <[EMAIL PROTECTED]> wrote: > I now want to do some loops and update certain entries of the matrix. > But the entries seem immutable, e.g. one can do: > > my_matrix[0][0] += 1 > > and the entry is still zero, although no exception seems to be raised. > > So my question