| | 263 | def eigenvectors_right(self): |
| | 264 | r""" |
| | 265 | Compute the right eigenvectors of a matrix. |
| | 266 | |
| | 267 | For each distinct eigenvalue, returns a list of the form (e,V,n) |
| | 268 | where e is the eigenvalue, V is a list of eigenvectors forming a |
| | 269 | basis for the corresponding right eigenspace, and n is the |
| | 270 | algebraic multiplicity of the eigenvalue. |
| | 271 | |
| | 272 | EXAMPLES:: |
| | 273 | |
| | 274 | sage: A = matrix(SR,2,2,range(4)); A |
| | 275 | [0 1] |
| | 276 | [2 3] |
| | 277 | sage: right = A.eigenvectors_right(); right |
| | 278 | [(-1/2*sqrt(17) + 3/2, [(1, -1/2*sqrt(17) + 3/2)], 1), (1/2*sqrt(17) + 3/2, [(1, 1/2*sqrt(17) + 3/2)], 1)] |
| | 279 | |
| | 280 | The right eigenvectors are nothing but the left eigenvectors of the |
| | 281 | transpose matrix:: |
| | 282 | |
| | 283 | sage: left = A.transpose().eigenvectors_left(); left |
| | 284 | [(-1/2*sqrt(17) + 3/2, [(1, -1/2*sqrt(17) + 3/2)], 1), (1/2*sqrt(17) + 3/2, [(1, 1/2*sqrt(17) + 3/2)], 1)] |
| | 285 | sage: right[0][1] == left[0][1] |
| | 286 | True |
| | 287 | """ |
| | 288 | return self.transpose().eigenvectors_left() |
| | 289 | |