I came across some behavior with matrix multiplication that doesn't seem 
very intuitive to me.

N=matrix(QQ,[[1,1],[0,1]])
T=matrix(GF(7),[[1,1],[0,1]])
L=N*T
L,L.parent()

produces

([0 0]
[0 0], Full MatrixSpace of 2 by 2 dense matrices over Ring of integers 
modulo 1)

I tried to search for the expected behavior with little success. So, I used 
as a model GF(7) times QQ:

GF(7)(2)*QQ(1)

which produces an error: TypeError: unsupported operand parent(s) for '*': 
'Finite Field of size 7' and 'Rational Field'


Is this coercion to Zmod(1) with matrices the expected behavior?



-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to