Re: [sage-devel] Re: sage matrix

2011-12-03 Thread Justin C. Walker
[I've set the "reply-to" field so that, one hopes, further discussion will happen on sage-support]. On Dec 3, 2011, at 05:34 , daveloeffler wrote: > > On Dec 3, 10:45 am, Chappman wrote: >> >> On Dec 3, 4:28 am, "Justin C. Walker" wrote: >>> >>> It's still not clear (at least to me) what yo

Re: [sage-devel] Re: sage matrix

2011-12-03 Thread Justin C. Walker
On Dec 3, 2011, at 02:45 , Chappman wrote: > Yes, thats what I am trying to do. Is there a method to go about this? It will help the rest of us help you if you stick to one list. The Support list is probably more appropriate. Justin -- Justin C. Walker, Curmudgeon-At-Large, Director Institut

[sage-devel] Re: sage matrix

2011-12-03 Thread daveloeffler
On Dec 3, 10:45 am, Chappman wrote: > > On Dec 3, 4:28 am, "Justin C. Walker" wrote: > > > > It's still not clear (at least to me) what you mean by this. Do you want Q > > to be a copy of U, and be able to change, say, U, without changing Q? > > Yes, thats what I am trying to do. Is there a me

[sage-devel] Re: sage matrix

2011-12-03 Thread Chappman
Yes, thats what I am trying to do. Is there a method to go about this? Kind Regards Chappman On Dec 3, 4:28 am, "Justin C. Walker" wrote: > On Dec 2, 2011, at 20:19 , Chappman wrote: > > > What I am trying to do is have matrix Q to have the values of matrix U > > for the different i and j's. Is

Re: [sage-devel] Re: sage matrix

2011-12-02 Thread Justin C. Walker
On Dec 2, 2011, at 20:19 , Chappman wrote: > What I am trying to do is have matrix Q to have the values of matrix U > for the different i and j's. Is there a way to do this. It's still not clear (at least to me) what you mean by this. Do you want Q to be a copy of U, and be able to change, say

[sage-devel] Re: sage matrix

2011-12-02 Thread Chappman
What I am trying to do is have matrix Q to have the values of matrix U for the different i and j's. Is there a way to do this. Another way to look at it is i'm trying got make a matrix U defined by the function U(N,M) and then I define a new function which uses the matrix from the previous functi

[sage-devel] Re: sage matrix

2011-12-01 Thread Jason Grout
On 12/1/11 2:24 PM, Michael Orlitzky wrote: On 12/01/2011 03:17 PM, Chappman wrote: def U(N,M): U=matrix(ZZ,N*M) for i in range(N*M): for j in range(N*M): U[i,j]=1 return U ^ This returns a matrix. def Q(N,M): ... Q[i,j]=U(N,M) So this do