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

Commit 54d4cd3

Browse files
committed
Make self-diffeomorphisms default
1 parent 13b4090 commit 54d4cd3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/sage/manifolds/differentiable/manifold.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ def diff_map(self, codomain, coord_functions=None, chart1=None,
952952
coord_functions = {(chart1, chart2): coord_functions}
953953
return homset(coord_functions, name=name, latex_name=latex_name)
954954

955-
def diffeomorphism(self, codomain, coord_functions=None, chart1=None,
955+
def diffeomorphism(self, codomain=None, coord_functions=None, chart1=None,
956956
chart2=None, name=None, latex_name=None):
957957
r"""
958958
Define a diffeomorphism between the current manifold and another one.
@@ -962,8 +962,8 @@ def diffeomorphism(self, codomain, coord_functions=None, chart1=None,
962962
963963
INPUT:
964964
965-
- ``codomain`` -- codomain of the diffeomorphism (the arrival manifold
966-
or some subset of it)
965+
- ``codomain`` -- (default: ``None``) codomain of the diffeomorphism (the arrival manifold
966+
or some subset of it). If ``None``, the current manifold is taken.
967967
- ``coord_functions`` -- (default: ``None``) if not ``None``, must be
968968
either
969969
@@ -1030,6 +1030,9 @@ def diffeomorphism(self, codomain, coord_functions=None, chart1=None,
10301030
examples.
10311031
10321032
"""
1033+
if codomain is None:
1034+
codomain = self
1035+
10331036
homset = Hom(self, codomain)
10341037
if coord_functions is None:
10351038
coord_functions = {}

0 commit comments

Comments
 (0)