Re: [sage-devel] printing polynomials with matrix coefficients

2021-08-08 Thread 'Travis Scrimshaw' via sage-devel
For CFM, you can use ascii/unicode_art to improve the printing: sage: M = matrix(2,2,[1,2,3,4]) sage: M [1 2] [3 4] sage: M.set_immutable() sage: CFM = CombinatorialFreeModule(QQ, [M]) sage: CFM.an_element() 2*B[[1 2] [3 4]] sage: ascii_art(CFM.an_element()) 2*B [1 2] [3 4] It would be

Re: [sage-devel] printing polynomials with matrix coefficients

2021-08-02 Thread Michael Orlitzky
On Mon, 2021-08-02 at 05:14 -0700, 'Martin R' via sage-devel wrote: > is currently rather awkward: > > > sage: M = MatrixSpace(QQ, 2) > sage: L. = PolynomialRing(M) > sage: 1-x > ([-1 0] > [ 0 -1])*x + [1 0] > [0 1] > > Is there a cure? > This also happens with CombinatorialFreeModule, where

[sage-devel] printing polynomials with matrix coefficients

2021-08-02 Thread 'Martin R' via sage-devel
is currently rather awkward: sage: M = MatrixSpace(QQ, 2) sage: L. = 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 receivin