Skip to content

Introduce extension of scalars coercion of CombinatorialFreeModules #21405

@tscrim

Description

@tscrim

Currently, CombinatorialFreeModule does not allow coercion from another CombinatorialFreeModule with the same indices but with a base ring coercion:

sage: C = CombinatorialFreeModule(ZZ, Set([1,2]))
sage: CQ = CombinatorialFreeModule(QQ, Set([1,2]))
sage: CQ.has_coerce_map_from(C)
False

In this ticket, we introduce such a coercion and also implement C.change_ring(QQ) (which also makes C.base_extend(QQ) work).

CC: @sagetrac-sage-combinat @nthiery @darijgr @fchapoton

Component: combinatorics

Keywords: combinatorial free module

Author: Travis Scrimshaw, Matthias Koeppe

Reviewer: Darij Grinberg

Issue created by migration from https://trac.sagemath.org/ticket/21405

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions