Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit f6500fb

Browse files
trac 23332 doctests
1 parent fbca269 commit f6500fb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/sage/matrix/matrix_symbolic_dense.pyx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,12 @@ cdef class Matrix_symbolic_dense(Matrix_generic_dense):
275275
...
276276
NotImplementedError: generalized eigenvector decomposition is
277277
implemented for RDF and CDF, but not for Symbolic Ring
278+
279+
Check that :trac:`23332` is fixed::
280+
281+
sage: matrix([[x, x^2], [1, 0]]).eigenvectors_left()
282+
[(-1/2*x*(sqrt(5) - 1), [(1, -1/2*x*(sqrt(5) + 1))], 1),
283+
(1/2*x*(sqrt(5) + 1), [(1, 1/2*x*(sqrt(5) - 1))], 1)]
278284
"""
279285
if other is not None:
280286
raise NotImplementedError('generalized eigenvector decomposition '
@@ -334,6 +340,12 @@ cdef class Matrix_symbolic_dense(Matrix_generic_dense):
334340
...
335341
NotImplementedError: generalized eigenvector decomposition is
336342
implemented for RDF and CDF, but not for Symbolic Ring
343+
344+
Check that :trac:`23332` is fixed::
345+
346+
sage: matrix([[x, x^2], [1, 0]]).eigenvectors_right()
347+
[(-1/2*x*(sqrt(5) - 1), [(1, -1/2*(sqrt(5) + 1)/x)], 1),
348+
(1/2*x*(sqrt(5) + 1), [(1, 1/2*(sqrt(5) - 1)/x)], 1)]
337349
"""
338350
return self.transpose().eigenvectors_left(other=other)
339351

0 commit comments

Comments
 (0)