Opened 5 years ago

Last modified 5 years ago

#22075 new defect

it should not be possible to set an entry of a vector in a submodule

Reported by: vdelecroix Owned by:
Priority: major Milestone: sage-7.5
Component: algebra Keywords: bug
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by vdelecroix)

sage: V = VectorSpace(QQ, 3)
sage: M = V.subspace([(1,0,0,),(0,1,0)])
sage: v = M()
sage: v
(0, 0, 0)
sage: v[2] = 2 # bug
sage: v
(0, 0, 2)
sage: v.parent()
Vector space of degree 3 and dimension 2 over Rational Field
Basis matrix:
[1 0 0]
[0 1 0]
sage: v in M # bug consequence 1
True
sage: V(v)   # bug consequence 2
(0, 0, 0)

See also:

Change History (3)

comment:1 Changed 5 years ago by vdelecroix

  • Description modified (diff)

comment:2 Changed 5 years ago by vdelecroix

  • Component changed from PLEASE CHANGE to algebra

comment:3 Changed 5 years ago by vdelecroix

  • Description modified (diff)
Note: See TracTickets for help on using tickets.