Closed a67c9e2f-a36c-4a8e-80bb-0c82631d944f closed 2 years ago
The problem is that in the generic code (matrix2.pyx
) it is implemented the other way around : there is a default implementation for eigenvectors_left
and eigenvectors_right
calls eigenvectors_left
with the transposed matrix.
New commits:
c637231 | 33652: transpose and left eigenvectors for acb_mat |
Author: Vincent Delecroix
Changed keywords from ComplexBallField to ComplexBallField, thursdaysbdx
Branch: u/vdelecroix/33652
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
bac4ef1 | 33652: transpose and left eigenvectors for acb_mat |
Lgtm except for one occurrence of eigenvectors_right_approx
that should be `eigenvectors_left_approxin the doc of
eigenvectors_left``.
Reviewer: Marc Mezzarobba
Thanks for having a look. Indeed I was not very careful when copying the doc.
Patchbot says:
========== blocks ==========
git checkout patchbot/ticket_merged
inside file: b/src/sage/matrix/matrix_complex_ball_dense.pyx
@@ -551,6 +551,26 @@ cdef class Matrix_complex_ball_dense(Matrix_dense):
+ Returns the transpose of ``self``.
wrong syntax for blocks (INPUT, OUTPUT, EXAMPLES, NOTE, etc) inserted on 1 non-empty lines
blocks -- 0 seconds
========== end blocks ==========
It should be Return
with no s.
Other issues on the patchbot seems unrelated to this branch. Only the issue with blocks
remain.
Branch pushed to git repo; I updated commit sha1. New commits:
c02327f | 33652: returns -> return |
Description changed:
---
+++
@@ -1,13 +1,14 @@
-When computing left eigenvectors for ComplexBallField matrices, sage raises a not implemented error, whereas right eigenvectors are working.
-
-Example :
+For matrices over `ComplexBallField`, one can get
+right eigenvectors but asking for left eigenvectors
+triggers a not-implemented error.
+sage: M = random_matrix(CBF, 2, 2) +sage: right = M.eigenvectors_right() +sage: left = M.eigenvectors_left() NotImplementedError: eigenspaces cannot be computed reliably for inexact rings such as Complex ball field with 256 bits of precision, consult numerical or symbolic matrix classes for other options
+Here we make `eigenvectors_left` return
+the right eigenvectors of the transpose.
Changed branch from u/vdelecroix/33652 to c02327f
For matrices over
ComplexBallField
, one can get right eigenvectors but asking for left eigenvectors triggers a not-implemented error.Here we make
eigenvectors_left
return the right eigenvectors of the transpose.CC: @videlec @mezzarobba @seblabbe
Component: linear algebra
Keywords: ComplexBallField, thursdaysbdx
Author: Vincent Delecroix
Branch/Commit:
c02327f
Reviewer: Marc Mezzarobba
Issue created by migration from https://trac.sagemath.org/ticket/33652