Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #12595: Add doctest for eigenmatrix of complex floating-point ma…
…trix {{{ sage: m = Matrix(CDF, 8, [[-1, -1, -1, -1, 1, -3, -1, -1], [1, 1, 1, 1, -1, -1, 1, -3], [-1, 3, -1, -1, 1, 1, -1, -1], [-1, -1, -1, 3, 1, 1, -1, -1], [1, 1, -3, 1, -1, -1, 1, 1], [1, 1, 1, 1, -1, -1, -3, 1], [3, -1, -1, -1, 1, 1, -1, -1], [1, 1, 1, 1, 3, -1, 1, 1]]) sage: d, p = m.eigenmatrix_left() sage: (p[1] * m)[0] / p[1][0] 1.2360679775 - 3.80422606518*I sage: d[1][1] 1.2360679775 + 3.80422606518*I }}} Sage seems to return the complex conjugate of {{{d}}} or something of the sort. Perhaps {{{d}}} is simply wrongly permuted (but real eigenvalues seem to be correct). {{{p.inverse() * d * p}}} should be at least approximately equal to {{{m}}}. This was reported on [https://spreadsheets.google.com/pub?key=pCwvGVwSMxTzT6E2xNdo5fA the public bug reports from the notebook interface] by <[email protected]> on 1/24/2012. URL: https://trac.sagemath.org/12595 Reported by: dkrenn Ticket author(s): Shashwat Singh Reviewer(s): Samuel Lelièvre
- Loading branch information