Ticket #3025 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

[with patch; positive review] Sparse vector spaces don't cast on assignment.

Reported by: boothby Owned by: was
Priority: major Milestone: sage-3.0.1
Component: linear algebra Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

sage: V = VectorSpace(GF(2),10, sparse=True)
sage: w = V(0)
sage: w[0] = 2
sage: print w[0]
2
sage: print type(w[0])
<type 'sage.rings.integer.Integer'>

Attachments

9609.patch Download (1.6 KB) - added by was 5 years ago.
this fixes the bug!

Change History

Changed 5 years ago by was

this fixes the bug!

comment:1 Changed 5 years ago by was

  • Summary changed from Sparse vector spaces don't cast on assignment. to [with patch; needs review] Sparse vector spaces don't cast on assignment.

comment:2 Changed 5 years ago by was

  • Milestone set to sage-3.0.1

comment:3 Changed 5 years ago by boothby

  • Summary changed from [with patch; needs review] Sparse vector spaces don't cast on assignment. to [with patch; positive review] Sparse vector spaces don't cast on assignment.

works for me

comment:4 Changed 5 years ago by mabshoff

  • Status changed from new to closed
  • Resolution set to fixed

Merged in Sage 3.0.1.alpha0

Note: See TracTickets for help on using tickets.