On Jun 09, Matthias Koeppe wrote:
>See [1]
https://trac.sagemath.org/ticket/19448
>
With the patch in this ticket I find this:
sage: V = CombinatorialFreeModule(QQ, Partitions())
sage: M = V.submodule([V.an_element()])
sage: M.reduce(V.an_element())
0
so far so good.
sage: v = V([3,2,1]); v
B[[3, 2, 1]]
sage: M.reduce(v)
Traceback (most recent call last):
...
ValueError: tuple.index(x): x not in tuple
Without this patch but forcing the orders as in my previous e-mail this
worked:
sage: P = Partitions()
sage: V = CombinatorialFreeModule(QQ, P)
sage: V._order = P.rank
sage: V._rank_basis = P.rank
sage: M = V.submodule([V.an_element()], already_echelonized=True)
sage: v = V([3,2,1]); v
B[[3,2,1]]
sage: M.reduce(v)
B[[3,2,1]]
sage: M.reduce(V.an_element())
0
So I suppose the quotient could be implemented in some cases. Is the above
ValueError expected with this patch?
Best,
R.
>--
>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 [2]
sage-devel+...@googlegroups.com.
>To view this discussion on the web visit [3]
https://groups.google.com/d/msgid/
>sage-devel/1a6a6a07-99f7-4d42-8516-6ba212088ca1o%
40googlegroups.com.
>
>References:
>
>[1]
https://trac.sagemath.org/ticket/19448
>[2] mailto:
sage-devel+...@googlegroups.com
>[3]
https://groups.google.com/d/msgid/sage-devel/1a6a6a07-99f7-4d42-8516-6ba212088ca1o%40googlegroups.com?utm_medium=email&utm_source=footer