Skip to content

Better checks in GRS decoders #20177

@sagetrac-dlucas

Description

@sagetrac-dlucas

Some checks on the output on decode_to_code for Gao, Berlekamp-Welch and Key-Equation Syndrome decoders are actually useless.

I also noticed that the nature of the input code of GRS decoders is never checked: one can perform the following:

C = codes.RandomLinearCode(10, 4, GF(7))
D = codes.decoders.GRSGaoDecoder(C)

and actually construct the decoder... Whose decoding methods will utterly fail with a terrible error message!

Component: coding theory

Author: David Lucas

Branch/Commit: 8f82e4e

Reviewer: Johan Sebastian Rosenkilde Nielsen

Issue created by migration from https://trac.sagemath.org/ticket/20177

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions