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 doesn't do what you think it does.

-- 
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