Skip to content

Commit f66a005

Browse files
Update src/sage/coding/linear_rank_metric.py
Co-authored-by: Xavier Caruso <[email protected]>
1 parent d44d479 commit f66a005

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sage/coding/linear_rank_metric.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,7 @@ def rank_support_of_vector(self, word, sub_field=None, basis=None):
649649
...
650650
TypeError: the input subfield Finite Field in z4 of size 2^4 is not a subfield of Finite Field in a of size 2^3
651651
"""
652-
if not isinstance(word, Vector):
653-
raise TypeError("input must be a vector")
652+
word = self.ambient_space()(word)
654653
if sub_field is not None:
655654
if self.base_field().degree() % sub_field.degree() != 0:
656655
raise TypeError(f"the input subfield {sub_field} is not a subfield of {self.base_field()}")

0 commit comments

Comments
 (0)