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