You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Classical weight reduction also applies to other types of inputs, although with the current function, the row and column indices must be specified explicitly either as a vector or a range.
680
680
```
681
-
julia> F = GF(2);
682
-
683
-
julia> S, x = PolynomialRing(F, "x");
681
+
julia> S, x = polynomial_ring(Oscar.Nemo.Native.GF(2), "x");
684
682
685
683
julia> l = 63;
686
684
687
-
julia> R = ResidueRing(S, x^l - 1);
685
+
julia> R, = residue_ring(S, x^l - 1);
688
686
689
687
julia> A = matrix(R, 7, 7,
690
-
[x^27, 0, 0, 1, x^18, x^27, 1,
691
-
1, x^27, 0, 0, 1, x^18, x^27,
692
-
x^27, 1, x^27, 0, 0, 1, x^18,
693
-
x^18, x^27, 1, x^27, 0, 0, 1,
694
-
1, x^18, x^27, 1, x^27, 0, 0,
695
-
0, 1, x^18, x^27, 1, x^27, 0,
696
-
0, 0, 1, x^18, x^27, 1, x^27])
697
-
[x^27 0 0 1 x^18 x^27 1]
698
-
[ 1 x^27 0 0 1 x^18 x^27]
699
-
[x^27 1 x^27 0 0 1 x^18]
700
-
[x^18 x^27 1 x^27 0 0 1]
701
-
[ 1 x^18 x^27 1 x^27 0 0]
702
-
[ 0 1 x^18 x^27 1 x^27 0]
703
-
[ 0 0 1 x^18 x^27 1 x^27]
704
-
705
-
julia> b = R(1 + x + x^6)
706
-
x^6 + x + 1
707
-
708
-
julia> LiftedProductCode(A, b)
709
-
┌ Warning: Commutativity of A and b required but not yet enforced.
0 commit comments