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

Commit

Permalink
VectorField[Free]Module.tensor_module: Accept trivial sym, antisym pa…
Browse files Browse the repository at this point in the history
…rameters
  • Loading branch information
Matthias Koeppe committed Sep 2, 2022
1 parent 64a6ca3 commit 76476a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/sage/manifolds/differentiable/vectorfield_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def destination_map(self):
"""
return self._dest_map

def tensor_module(self, k, l):
def tensor_module(self, k, l, *, sym=None, antisym=None):
r"""
Return the module of type-`(k,l)` tensors on ``self``.
Expand Down Expand Up @@ -549,6 +549,8 @@ def tensor_module(self, k, l):
"""
from sage.manifolds.differentiable.tensorfield_module import \
TensorFieldModule
if sym or antisym:
raise NotImplementedError
if (k,l) not in self._tensor_modules:
self._tensor_modules[(k,l)] = TensorFieldModule(self, (k,l))
return self._tensor_modules[(k,l)]
Expand Down Expand Up @@ -1717,7 +1719,7 @@ def destination_map(self) -> DiffMap:
"""
return self._dest_map

def tensor_module(self, k, l):
def tensor_module(self, k, l, *, sym=None, antisym=None):
r"""
Return the free module of all tensors of type `(k, l)` defined
on ``self``.
Expand Down Expand Up @@ -1766,6 +1768,8 @@ def tensor_module(self, k, l):
for more examples and documentation.
"""
if sym or antisym:
raise NotImplementedError
try:
return self._tensor_modules[(k,l)]
except KeyError:
Expand Down

0 comments on commit 76476a0

Please sign in to comment.