Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagesmc
Path: blob/master/src/sage/coding/codes_catalog.py
8815 views
1
r"""
2
Index of Codes
3
4
The ``codes`` object may be used to access the codes that Sage can build.
5
6
- :func:`codes.BCHCode <sage.coding.code_constructions.BCHCode>`
7
- :func:`codes.BinaryGolayCode <sage.coding.code_constructions.BinaryGolayCode>`
8
- :func:`codes.BinaryReedMullerCode <sage.coding.guava.BinaryReedMullerCode>`
9
- :func:`codes.CyclicCode <sage.coding.code_constructions.CyclicCode>`
10
- :func:`codes.CyclicCodeFromGeneratingPolynomial <sage.coding.code_constructions.CyclicCodeFromGeneratingPolynomial>`
11
- :func:`codes.CyclicCodeFromCheckPolynomial <sage.coding.code_constructions.CyclicCodeFromCheckPolynomial>`
12
- :func:`codes.DuadicCodeEvenPair <sage.coding.code_constructions.DuadicCodeEvenPair>`
13
- :func:`codes.DuadicCodeOddPair <sage.coding.code_constructions.DuadicCodeOddPair>`
14
- :func:`codes.ExtendedBinaryGolayCode <sage.coding.code_constructions.ExtendedBinaryGolayCode>`
15
- :func:`codes.ExtendedQuadraticResidueCode <sage.coding.code_constructions.ExtendedQuadraticResidueCode>`
16
- :func:`codes.ExtendedTernaryGolayCode <sage.coding.code_constructions.ExtendedTernaryGolayCode>`
17
- :func:`codes.HammingCode <sage.coding.code_constructions.HammingCode>`
18
- :func:`codes.LinearCodeFromCheckMatrix <sage.coding.code_constructions.LinearCodeFromCheckMatrix>`
19
- :func:`codes.QuadraticResidueCode <sage.coding.code_constructions.QuadraticResidueCode>`
20
- :func:`codes.QuadraticResidueCodeEvenPair <sage.coding.code_constructions.QuadraticResidueCodeEvenPair>`
21
- :func:`codes.QuadraticResidueCodeOddPair <sage.coding.code_constructions.QuadraticResidueCodeOddPair>`
22
- :func:`codes.QuasiQuadraticResidueCode <sage.coding.guava.QuasiQuadraticResidueCode>`
23
- :func:`codes.RandomLinearCode <sage.coding.code_constructions.RandomLinearCode>`
24
- :func:`codes.RandomLinearCodeGuava <sage.coding.guava.RandomLinearCodeGuava>`
25
- :func:`codes.ReedSolomonCode <sage.coding.code_constructions.ReedSolomonCode>`
26
- :func:`codes.TernaryGolayCode <sage.coding.code_constructions.TernaryGolayCode>`
27
- :func:`codes.ToricCode <sage.coding.code_constructions.ToricCode>`
28
- :func:`codes.TrivialCode <sage.coding.code_constructions.TrivialCode>`
29
- :func:`codes.WalshCode <sage.coding.code_constructions.WalshCode>`
30
31
"""
32
33
# Implementation note:
34
#
35
# This module is imported as "codes" in all.py so that codes.<tab> is available
36
# in the global namespace.
37
38
from code_constructions import (BCHCode, BinaryGolayCode, CyclicCodeFromGeneratingPolynomial,
39
CyclicCode, CyclicCodeFromCheckPolynomial, DuadicCodeEvenPair,
40
DuadicCodeOddPair, ExtendedBinaryGolayCode,
41
ExtendedQuadraticResidueCode, ExtendedTernaryGolayCode,
42
HammingCode, LinearCodeFromCheckMatrix,
43
QuadraticResidueCode, QuadraticResidueCodeEvenPair,
44
QuadraticResidueCodeOddPair, RandomLinearCode,
45
ReedSolomonCode, TernaryGolayCode,
46
ToricCode, TrivialCode, WalshCode)
47
48
from guava import BinaryReedMullerCode, QuasiQuadraticResidueCode, RandomLinearCodeGuava
49
50