Skip to content

Something funny with free modules #3469

@robertwb

Description

@robertwb
sage: W = (ZZ^2).span([(1/2,1/2), (0,1)]); W
Free module of degree 2 and rank 2 over Integer Ring
Echelon basis matrix:
[1/2 1/2]
[  0   1]
sage: V = (ZZ^2).span([(1/2,1/2), (0,2)]); V
Free module of degree 2 and rank 2 over Integer Ring
Echelon basis matrix:
[1/2 1/2]
[  0   2]
sage: W(V.gen(0))
Traceback (most recent call last):
...
TypeError: no coercion of this rational to integer

CC: @jasongrout

Component: linear algebra

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions