This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matthias Koeppe
committed
Apr 29, 2021
1 parent
3b3662e
commit 0666fae
Showing
3 changed files
with
40 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
r""" | ||
Topological closures of subsets | ||
""" | ||
|
||
from sage.manifolds.subset import ManifoldSubset | ||
|
||
class ClosureOfManifoldSubset(ManifoldSubset): | ||
|
||
""" | ||
Topological closure of a manifold subset in the topology of the manifold. | ||
""" | ||
|
||
def __init__(self, subset, name=None, latex_name=None): | ||
r""" | ||
Initialize a :class:`ClosureOfManifoldSubset` instance. | ||
TESTS:: | ||
""" | ||
self._subset = subset | ||
base_manifold = subset.manifold() | ||
if latex_name is None: | ||
if name is None: | ||
latex_name = r'\mathop{\mathrm{cl}}(' + subset._latex_name + ')' | ||
else: | ||
latex_name = name | ||
if name is None: | ||
name = 'cl_' + subset._name | ||
ManifoldSubset.__init__(self, base_manifold, name, latex_name=latex_name) | ||
self.declare_superset(subset) | ||
|
||
def _repr_(self): | ||
r""" | ||
String representation of the object. | ||
TESTS:: | ||
""" | ||
return "Topological closure {} of the {}".format(self._name, self._submanifold) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters