On Apr 16, 5:28 pm, Alec Mihailovs <[email protected]> wrote:
> I looked at the C.decode (for C in the original post), and it does
> something different - it corrects the errors. Perhaps, the better name
> for it would be C.correct ?
If that is needed, that could be done as
def correct(w,erasures=[],num_tries=10):
return decode(w,erasures,num_tries)*G
For example,
er=vector(GF(3),
[1,2,1,0,2,1,2,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])
correct(w+er,[0,1,2,4,5,6,10,11])-w
(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0)
Alec
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org