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

Commit

Permalink
FiniteRankFreeModule.tensor_type: New
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Aug 23, 2022
1 parent 12be2d9 commit 1ea94e1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/sage/tensor/modules/finite_rank_free_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -2824,3 +2824,16 @@ def identity_map(self, name='Id', latex_name=None):
latex_name = name
self._identity_map.set_name(name=name, latex_name=latex_name)
return self._identity_map

def tensor_type(self):
r"""
Return the tensor type of ``self``, the pair `(1, 0)`.
EXAMPLES::
sage: M = FiniteRankFreeModule(ZZ, 3)
sage: M.tensor_type()
(1, 0)
"""
return (1, 0)

0 comments on commit 1ea94e1

Please sign in to comment.