Ticket #3025 (closed defect: fixed)

Opened 2 years ago

Last modified 2 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: Author(s):
Report Upstream: Reviewer(s):
Merged in: Work issues:

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 2 years ago.
this fixes the bug!

Change History

Changed 2 years ago by was

this fixes the bug!

Changed 2 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.

Changed 2 years ago by was

  • milestone set to sage-3.0.1

Changed 2 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

Changed 2 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.