sage: A = Matrix(ZZ,2,[3,3,3,3]) sage: A [3 3] [3 3] sage: A//3 --------------------------------------------------------------------------- TypeError Traceback (most recent call last) ...
TypeError: unsupported operand parent(s) for //: 'Full MatrixSpace of 2 by 2 dense matrices over Integer Ring' and 'Full MatrixSpace of 2 by 2 dense matrices over Integer Ring' sage: A/3 [1 1] [1 1] sage: (A/3).base_ring() Rational Field What I would like is a matrix over the Integers. Not an integral matrix over the rationals. This seems so elementary that I wonder if I am missing something? (A/3).change_ring(ZZ) is too ugly. Ticket? And similar for p-adic integers, polynomial rings in one variable etc. -- 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 https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.