The last line probably redefines it as a Matrix.
M2 doesn't like to reassign entires of a matrix (hence the existence of
MutableMatrix).
And since you got the error, the matrix M was not recomputed, just
reprinted.
I assume something about the set command caused the rows or elements to
be reordered;
but maybe this will be moot once you correct the other errors.
Doug
>>> Yi <zhan...@umn.edu> 06/24/10 12:50 PM >>>
Thanks a lot.
--
You received this message because you are subscribed to the Google
Groups "Macaulay2" group.
To post to this group, send email to maca...@googlegroups.com.
To unsubscribe from this group, send email to
macaulay2+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/macaulay2?hl=en.
Thank you very much for your time and reply.
I have read through the related articles in the documentation, but still
have no clue how to fix both questions. By the way, I do not want to
define M_(r,s) as function like M(r,s), because I need to use the value
of M_(r,s) later. If it is defined as a function with two variables r
and s, when I refer to the value, it changes to another random number.
Thanks for your time. Have a nice day.
Sincerely,
Yi
for .... do
statements, try using two nested
for ... list
statements.
Then convert the result to a matrix, avoiding all the list and set stuff
in your method.
Thanks a lot.
--
Thank you very much for your time and help. Your code works beautifully.
Have a nice day.
Sincerely,
Yi
>>> Yi Zhang <zhan...@umn.edu> 06/24/10 11:36 PM >>>
Dear Alexandra,
Have a nice day.
Sincerely,
Yi
--
Thank you very much for your time and help. This time, I have learned a
lot for the matrix and list commands. I did not know that the matrix
command can be used in this way. I always tried to make a list first or
to assign the values to each position of the matrix first. Now I
understand how useful the "for..list" command is. Thanks again and have
a nice weekend.
Sincerely,
Yi