On 19 April 2015 at 12:47, Vincent Delecroix <20100.delecr...@gmail.com> wrote:
> Hello,
>
> I really do not like
>
> sage: M = MatrixSpace(QQ,3)
> sage: G = SL(3, QQ)
> sage: m1 = M(1)
> sage: m2 = G(1)
> sage: m1
> [1 0 0]
> [0 1 0]
> [0 0 1]
> sage: m2
> [1 0 0]
> [0 1 0]
> [0 0 1]
> sage: m1 == m2
> False
>
> Shouldn't it be True? One way would be to have a coerce embeddig from G to M
> which looks natural to me. Is it?
>

I agree that there should be coercion from a group of units (or a
subgroup of that, as here) into a ring.  But automatic?  You can do
A(G(1)) and G(A(1)) here, so manual coercion is possible.

John

> Best,
> Vincent
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to