Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #28402: incorrect inverse of sparse matrix over inexact rings
As reported on [https://ask.sagemath.org/question/47587/inverse-of-real- sparse-matrix/ this ask question], we have: {{{ sage: B=matrix(RR, [[1/6, -1/24, -1/30, 1/120,1/12, 0, 0, 0, 0], [-1/24,1/60,1/60, 1/420, -1/24, 0, 0, 0, 0], [-1/30,1/60, 2/105, 1/140, -1/20, 0, 0, 0, 0], [1/120, 1/420, 1/140, 13/1260, -1/40, 0, 0, 0, 0 ....: ], [1/12, -1/24, -1/20, -1/40, 1/3, -1/24, -1/30, 1/120,1/12], [0, 0, 0, 0, -1/24,1/60,1/60, 1/420, -1/24], [0, 0, 0, 0, -1/30,1/60, 2/105, 1/140, -1/20], [0, 0, 0, 0, 1/120, 1/420, 1/140, 13/1260, - ....: 1/40], [0, 0, 0, 0,1/12, -1/24, -1/20, -1/40, 1/6]],sparse=true) sage: (B.inverse()*B).norm(1) 138.4999999999923 }}} Note that reverting #24122, by removing the call to `build_inverse_from_augmented_sparse` in the `__invert__` method of `sage/matrix/matrix0.pyx` (line 5410), leads to a correct answer. URL: https://trac.sagemath.org/28402 Reported by: tmonteil Ticket author(s): Travis Scrimshaw Reviewer(s): Thierry Monteil
- Loading branch information