Opened 10 years ago
Closed 10 years ago
#13034 closed defect (fixed)
Fix index in saturation of zero matrices
Reported by: | novoselt | Owned by: | jason, was |
---|---|---|---|
Priority: | major | Milestone: | sage-5.1 |
Component: | linear algebra | Keywords: | sd40.5 |
Cc: | rbeezer, was | Merged in: | sage-5.1.beta6 |
Authors: | Andrey Novoseltsev | Reviewers: | William Stein |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
Now:
sage: m = matrix(ZZ, 3) sage: m.index_in_saturation() --------------------------------------------------------------------------- ValueError Traceback (most recent call last) /home/novoselt/sage-5.1.beta0/devel/sage-main/<ipython console> in <module>() /home/novoselt/sage-5.1.beta0/local/lib/python2.7/site-packages/sage/matrix/matrix_integer_dense.so in sage.matrix.matrix_integer_dense.Matrix_integer_dense.index_in_saturation (sage/matrix/matrix_integer_dense.c:17074)() /home/novoselt/sage-5.1.beta0/local/lib/python2.7/site-packages/sage/matrix/matrix_integer_dense_saturation.pyc in index_in_saturation(A, proof) 308 A = A.transpose() 309 A = A.hermite_form(proof=proof,include_zero_rows=False) --> 310 return abs(A.determinant(proof=proof)) 311 312 /home/novoselt/sage-5.1.beta0/local/lib/python2.7/site-packages/sage/matrix/matrix_integer_dense.so in sage.matrix.matrix_integer_dense.Matrix_integer_dense.determinant (sage/matrix/matrix_integer_dense.c:25359)() ValueError: self must be a square matrix
while it should be 1.
Attachments (1)
Change History (8)
comment:1 Changed 10 years ago by
- Cc rbeezer was added
- Status changed from new to needs_review
comment:2 Changed 10 years ago by
- Status changed from needs_review to needs_work
Changed 10 years ago by
comment:3 Changed 10 years ago by
- Status changed from needs_work to needs_review
I've changed 1 to ZZ(1), but didn't rebase - it applies smoothly to sage-5.1.beta0 with Python-2.7.3 from #13013 (I can't pop Python upgrade patch)
comment:4 Changed 10 years ago by
- Status changed from needs_review to positive_review
I didn't actually apply the patch (can't), but it looks good to me.
comment:5 Changed 10 years ago by
Please fill in your real name in the Author / Reviewer fields.
comment:6 Changed 10 years ago by
- Reviewers set to William Stein
comment:7 Changed 10 years ago by
- Merged in set to sage-5.1.beta6
- Resolution set to fixed
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.
return 1
to something likereturn Integer(1)
?