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

Commit

Permalink
Fixup attrcall
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Aug 28, 2022
1 parent 8dce371 commit f7d233a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sage/geometry/semialgebraic/semidefinite.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from sage.structure.unique_representation import UniqueRepresentation
from sage.misc.abstract_method import abstract_method
from sage.misc.cachefunc import cached_method
from sage.misc.call import attrcall
from sage.categories.fields import Fields
from sage.matrix.matrix_space import is_MatrixSpace, MatrixSpace
from sage.geometry.convex_set import ConvexSet_closed_conic, ConvexSet_relatively_open
Expand Down Expand Up @@ -346,7 +347,7 @@ def relative_interior(self):
"""
return PositiveDefiniteMatrices(self._matrix_space)

_predicate = attrcall('is_positive_definite')
_predicate = attrcall('is_positive_semidefinite')

def is_relatively_open(self):
return self.dimension() == 0
Expand Down Expand Up @@ -415,6 +416,7 @@ def closure(self):
sage: from sage.geometry.semialgebraic.semidefinite import PositiveDefiniteMatrices
sage: M_pd = PositiveDefiniteMatrices(AA, 2)
sage: M_pd.closure()
Cone of positive-semidefinite matrices of Full MatrixSpace of 2 by 2 dense matrices over Algebraic Real Field
"""
return PositiveSemidefiniteMatrices(self._matrix_space)

Expand Down

0 comments on commit f7d233a

Please sign in to comment.