#29252 closed defect (duplicate)

LU-decomposition inconsistent bewteen Matrix_double_dense and Matrix

Reported by: gh-toonijn Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: linear algebra Keywords: matrix LU
Cc: Merged in:
Authors: Reviewers: Markus Wageringel
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by gh-Karn-Tiwari-3003)

The returned permutation matrix P is in the case of Matrix_double_dense such that: P A = L U

while in the case of Matrix: A = P L U

sage: A = random_matrix(QQ, 4, 4)
sage: A.LU()[0]
[0 1 0 0]
[0 0 0 1]
[0 0 1 0]
[1 0 0 0]
sage: matrix(RDF, A).LU()[0]
[0.0 0.0 0.0 1.0]
[1.0 0.0 0.0 0.0]
[0.0 0.0 1.0 0.0]
[0.0 1.0 0.0 0.0]

Change History (4)

comment:1 Changed 14 months ago by gh-Karn-Tiwari-3003

  • Description modified (diff)

comment:2 Changed 14 months ago by gh-mwageringel

  • Milestone set to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

This problem should really be resolved. There is already #18365 dealing with it.

comment:3 Changed 14 months ago by gh-mwageringel

  • Reviewers set to Markus Wageringel
  • Status changed from needs_review to positive_review

comment:4 Changed 13 months ago by chapoton

  • Resolution set to duplicate
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.