Beispiel #1
0
        void ShowBitSeq(N3 n, ShowLog dst)
        {
            var bits = BitSeq.bits(n);

            dst.Show($"n={n}, count={bits.Length}");
            dst.Show(RP.PageBreak120);
            root.iter(bits, s => dst.Buffer.AppendFormat("{0} ", s.Format()));
            dst.ShowBuffer();
        }
Beispiel #2
0
 /// <summary>
 /// Defines a binary polynomial of natural degree N = 3
 /// </summary>
 /// <param name="degree">The degree of the polynomial</param>
 /// <param name="exponents">The exponent values for nonzero coefficients</param>
 public static GfPoly <N3, byte> Poly(N3 degree, params byte[] exponents)
 => Poly <N3, byte>(exponents);
Beispiel #3
0
 public static BitBlock <BitBlock3> ToBitBlock(this BitString src, N3 n)
 => BitBlock.FromSpan <BitBlock3>(src.BitSeq);