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

Commit 8f4bb7a

Browse files
author
iremarquez
committed
Eliminate the rest of the conflict marks
1 parent 5d43835 commit 8f4bb7a

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

src/sage/coding/linear_code.py

-31
Original file line numberDiff line numberDiff line change
@@ -2981,8 +2981,6 @@ def random_element(self, *args, **kwds):
29812981
c.set_immutable()
29822982
return c
29832983

2984-
<<<<<<< HEAD
2985-
=======
29862984
def rate(self):
29872985
r"""
29882986
Return the ratio of the number of information symbols to
@@ -2996,7 +2994,6 @@ def rate(self):
29962994
"""
29972995
return self.dimension() / self.length()
29982996

2999-
>>>>>>> 0fa589622f71eb2a82f15a5e7eae7f8df6639cd1
30002997
def redundancy_matrix(self):
30012998
r"""
30022999
Returns the non-identity columns of a systematic generator matrix for
@@ -3374,37 +3371,21 @@ def standard_form(self, return_permutation=True):
33743371
r"""
33753372
Returns a linear code which is permutation-equivalent to ``self`` and
33763373
admits a generator matrix in standard form.
3377-
<<<<<<< HEAD
33783374
33793375
A generator matrix is in standard form if it is of the form `[I \vert
33803376
A]`, where `I` is the `k \times k` identity matrix. Any code admits a
33813377
generator matrix in systematic form, i.e. where a subset of the columns
33823378
form the identity matrix, but one might need to permute columns to allow
33833379
the identity matrix to be leading.
33843380
3385-
=======
3386-
3387-
A generator matrix is in standard form if it is of the form `[I \vert
3388-
A]`, where `I` is the `k \times k` identity matrix. Any code admits a
3389-
generator matrix in systematic form, i.e. where a subset of the columns
3390-
form the identity matrix, but one might need to permute columns to allow
3391-
the identity matrix to be leading.
3392-
3393-
>>>>>>> 0fa589622f71eb2a82f15a5e7eae7f8df6639cd1
33943381
INPUT:
33953382
33963383
- ``return_permutation`` -- (default: ``True``) if ``True``, the column
33973384
permutation which brings ``self`` into the returned code is also
33983385
returned.
3399-
<<<<<<< HEAD
34003386
34013387
OUTPUT:
34023388
3403-
=======
3404-
3405-
OUTPUT:
3406-
3407-
>>>>>>> 0fa589622f71eb2a82f15a5e7eae7f8df6639cd1
34083389
- A :class:`LinearCode` whose :meth:`systematic_generator_matrix` is
34093390
guaranteed to be of the form `[I \vert A]`.
34103391
@@ -4185,19 +4166,11 @@ class LinearCodeSystematicEncoder(Encoder):
41854166
``systematic_positions[0]``, the 1st index at position
41864167
``systematic_positions[1]``, etc. A ``ValueError`` is raised at
41874168
construction time if the supplied indices do not form an information set.
4188-
<<<<<<< HEAD
4189-
4190-
EXAMPLES:
4191-
4192-
The following demonstrates the basic usage of :class:`LinearCodeSystematicEncoder`::
4193-
4194-
=======
41954169
41964170
EXAMPLES:
41974171
41984172
The following demonstrates the basic usage of :class:`LinearCodeSystematicEncoder`::
41994173
4200-
>>>>>>> 0fa589622f71eb2a82f15a5e7eae7f8df6639cd1
42014174
sage: G = Matrix(GF(2), [[1,1,1,0,0,0,0,0],\
42024175
[1,0,0,1,1,0,0,0],\
42034176
[0,1,0,1,0,1,0,0],\
@@ -4384,11 +4357,7 @@ def generator_matrix(self):
43844357
[1 1 0 0 0 1 0]
43854358
[0 0 1 0 0 1 0]
43864359
[0 0 0 0 1 1 0]
4387-
<<<<<<< HEAD
4388-
[0 0 0 0 0 0 1]
4389-
=======
43904360
[0 0 0 0 0 0 1]
4391-
>>>>>>> 0fa589622f71eb2a82f15a5e7eae7f8df6639cd1
43924361
"""
43934362
C = self.code()
43944363
# This if statement detects if this encoder is itself the default encoder.

0 commit comments

Comments
 (0)