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

Commit 357c4f6

Browse files
author
David Lucas
committed
Fixed too long doctest, put cached_method decorator over minimum_distance() and gens() methods
1 parent 6587ad8 commit 357c4f6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/sage/coding/linear_code.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -750,8 +750,8 @@ def __init__(self, base_field, length):
750750
1
751751
sage: C.is_self_orthogonal()
752752
False
753-
sage: print C.is_permutation_equivalent(C.dual_code()) #long time
754-
True
753+
sage: print C.divisor() #long time
754+
1
755755
"""
756756
self._base_field = base_field
757757
self._length = length
@@ -1782,6 +1782,7 @@ def generator_matrix_systematic(self):
17821782

17831783
gen_mat_systematic = deprecated_function_alias(17973, generator_matrix_systematic)
17841784

1785+
@cached_method
17851786
def gens(self):
17861787
r"""
17871788
Returns the generators of this code as a list of vectors.
@@ -2099,6 +2100,7 @@ def _magma_init_(self, magma):
20992100
s = 'LinearCode(%s)' % G
21002101
return s
21012102

2103+
@cached_method
21022104
def minimum_distance(self, algorithm=None):
21032105
r"""
21042106
Returns the minimum distance of this linear code.

0 commit comments

Comments
 (0)