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

Commit 6b32cf0

Browse files
author
David Lucas
committed
__call__ has been added for an encoder in grs.py
1 parent f7f075e commit 6b32cf0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sage/coding/grs.py

+3
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,9 @@ def encode(self, p):
752752
c = vector(C.base_ring(), [col_mults[i]*p(alphas[i]) for i in range(C.length())])
753753
return c
754754

755+
#Alias for encode method
756+
__call__ = encode
757+
755758
def unencode_nocheck(self, c):
756759
r"""
757760
Returns the message corresponding to the codeword ``c``.

0 commit comments

Comments
 (0)