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

Commit

Permalink
Trac #33100: add doctests for the example on the ticket.
Browse files Browse the repository at this point in the history
  • Loading branch information
orlitzky committed Jan 3, 2022
1 parent f6e4b64 commit c70330b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/sage/matrix/matrix2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -12710,6 +12710,14 @@ cdef class Matrix(Matrix1):
....: for R in (RR,CC,RDF,CDF,ZZ,QQ,AA,QQbar) )
True

The test case from :trac:`33100`::

sage: A = matrix(CDF, [[1+I]])
sage: A.cholesky()
Traceback (most recent call last):
...
ValueError: matrix is not Hermitian

"""
cdef Matrix C # output matrix
C = self.fetch('cholesky')
Expand Down Expand Up @@ -14789,6 +14797,12 @@ cdef class Matrix(Matrix1):
sage: T.is_positive_definite()
False

The test case from :trac:`33100`::

sage: A = matrix(CDF, [[1+I]])
sage: A.is_positive_definite()
False

"""
result = self._is_positive_definite_or_semidefinite(False)
if certificate:
Expand Down

0 comments on commit c70330b

Please sign in to comment.