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

Commit

Permalink
Entering the components of a metric while declaring
Browse files Browse the repository at this point in the history
  • Loading branch information
Dicolevrai committed Jun 27, 2018
1 parent cae28a7 commit f494678
Show file tree
Hide file tree
Showing 4 changed files with 616 additions and 108 deletions.
8 changes: 3 additions & 5 deletions src/sage/manifolds/differentiable/manifold.py
Original file line number Diff line number Diff line change
Expand Up @@ -3214,7 +3214,7 @@ def riemannian_metric(self, name, latex_name=None, dest_map=None):
See
:class:`~sage.manifolds.differentiable.metric.PseudoRiemannianMetric`
for a complete documentation.
u99 for a complete documentation.
INPUT:
Expand Down Expand Up @@ -3345,12 +3345,9 @@ class :class:`~sage.manifolds.differentiable.diff_map.DiffMap`
dim = vmodule.ambient_domain().dimension()
if signature=='positive':
signat = dim - 2
index = 1
else:
signat = 2 - dim
index = dim - 1
return vmodule.metric(name, signature=signat, latex_name=latex_name,
comp=index)
return vmodule.metric(name, signature=signat, latex_name=latex_name)

def lorentz_metric(self, name, signature='positive', latex_name=None,
dest_map=None):
Expand All @@ -3373,3 +3370,4 @@ def lorentz_metric(self, name, signature='positive', latex_name=None,
deprecation(19209, 'Use lorentzian_metric() instead.')
return self.lorentzian_metric(name, signature=signature,
latex_name=latex_name, dest_map=dest_map)

Loading

0 comments on commit f494678

Please sign in to comment.