You could increase the rank of the matrix space? sage: M = MatrixSpace(QQ, 20) sage: L.<x> = PolynomialRing(M) sage: 1-x
prints a lot nicer. It illustrates that printing matrices, let alone printing polynomials with matrix coefficients, very quickly becomes problematic. For simply cases, you could do some ad-hoc things like: repr(1-x).replace("]\n[","; ") which at least puts the matrices in a line-format. If you're working in the notebook, show(1-x) might do a reasonable job in producing readable 2d output (on small examples) On Monday, 2 August 2021 at 05:14:57 UTC-7 axio...@yahoo.de wrote: > is currently rather awkward: > > > sage: M = MatrixSpace(QQ, 2) > sage: L.<x> = PolynomialRing(M) > sage: 1-x > ([-1 0] > [ 0 -1])*x + [1 0] > [0 1] > > Is there a cure? > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/0a4500df-7a95-4d9d-8ac4-b12e0b5e73can%40googlegroups.com.