On Dec 3, 2011, at 15:21 , Jason Grout wrote:
> On 12/3/11 4:16 PM, Justin C. Walker wrote:
>> Q=matrix(ZZ,6)
>> U=Q
>> U[1,1]=4
>> Q
>
>
> Uh, I thought you wanted to use copy, which actually does copy the matrix:
>
>
> sage: Q=matrix(ZZ,2)
> sage: U=copy(Q)
> sage: U[1,1]=4
> sage: U
> [0 0
On Dec 3, 2011, at 02:50 , Chappman wrote:
> Is it possible to make an entry in Q[i,j] equal to a entry in U[i,j]?
> I have to have the two functions separately for each matrix though
> just like my code above
Definitely. You can do it roughly as your code snippets show, or there are
built-in