Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

r""" 

Index of code constructions 

 

The ``codes`` object may be used to access the codes that Sage can build. 

 

{INDEX_OF_FUNCTIONS} 

 

.. NOTE:: 

 

To import these names into the global namespace, use: 

 

sage: from sage.coding.codes_catalog import * 

 

TESTS:: 

 

sage: import sage.coding.codes_catalog 

sage: 'absolute_import' in dir(sage.coding.codes_catalog) 

False 

""" 

#***************************************************************************** 

# Copyright (C) 2009 David Lucas <david.lucas@inria.fr> 

# 

# Distributed under the terms of the GNU General Public License (GPL), 

# version 2 or later (at your preference). 

# 

# http://www.gnu.org/licenses/ 

#***************************************************************************** 

 

 

# Implementation note: 

# 

# This module is imported as "codes" in all.py so that codes.<tab> is available 

# in the global namespace. 

 

from __future__ import absolute_import 

from sage.misc.lazy_import import lazy_import 

 

from .linear_code import LinearCode 

from sage.coding.linear_code import LinearCode 

 

lazy_import('sage.coding.code_constructions', 

['BCHCode', 'BinaryGolayCode', 'CyclicCodeFromGeneratingPolynomial', 

'CyclicCode', 'CyclicCodeFromCheckPolynomial', 'DuadicCodeEvenPair', 

'DuadicCodeOddPair', 'ExtendedBinaryGolayCode', 

'ExtendedQuadraticResidueCode', 'ExtendedTernaryGolayCode', 

'from_parity_check_matrix', 

'LinearCodeFromCheckMatrix', #deprecated 

'QuadraticResidueCode', 'QuadraticResidueCodeEvenPair', 

'QuadraticResidueCodeOddPair', 

'random_linear_code', 

'RandomLinearCode', #deprecated 

'ReedSolomonCode', 'TernaryGolayCode', 

'ToricCode', 'WalshCode']) 

 

lazy_import('sage.coding.bch', 'BCHCode') 

lazy_import('sage.coding.cyclic_code', 'CyclicCode') 

lazy_import('sage.coding.extended_code', 'ExtendedCode') 

lazy_import('sage.coding.golay_code', 'GolayCode') 

lazy_import('sage.coding.grs', 'GeneralizedReedSolomonCode') 

lazy_import('sage.coding.guava', ['QuasiQuadraticResidueCode', 

'RandomLinearCodeGuava']) 

lazy_import('sage.coding.hamming_code', 'HammingCode') 

lazy_import('sage.coding.parity_check_code', 'ParityCheckCode') 

lazy_import('sage.coding.punctured_code', 'PuncturedCode') 

lazy_import('sage.coding.reed_muller_code', ['BinaryReedMullerCode', 

'ReedMullerCode']) 

lazy_import('sage.coding.subfield_subcode', 'SubfieldSubcode') 

 

from . import decoders_catalog as decoders 

from . import encoders_catalog as encoders 

from . import bounds_catalog as bounds 

 

lazy_import('sage.coding','databases') 

 

from sage.misc.rest_index_of_methods import gen_rest_table_index 

import sys 

__doc__ = __doc__.format(INDEX_OF_FUNCTIONS=gen_rest_table_index(sys.modules[__name__], only_local_functions=False)) 

 

# We don't want this to appear in tab completion 

del absolute_import, lazy_import, sys, gen_rest_table_index