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

Commit

Permalink
TensorFreeModule._an_element_: Use element constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Aug 28, 2022
1 parent e31bdac commit e7d5e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/tensor/modules/tensor_free_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def _an_element_(self):
sage: t.parent() is Sym0123x45M
True
"""
resu = self.element_class(self._fmodule, self._tensor_type, parent=self)
resu = self([])
# Make sure that the base module has a default basis
self._fmodule.an_element()
sindex = self._fmodule._sindex
Expand Down

0 comments on commit e7d5e77

Please sign in to comment.