void ShowBitSeq(N4 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(); }
public static BitBlock <BitBlock4> ToBitBlock(this BitString src, N4 n) => BitBlock.FromSpan <BitBlock4>(src.BitSeq);
public static BitVector4 ToBitVector(this BitString src, N4 n) => BitVector4.FromBitString(src);
public static BitVector4 ToBitVector(this ushort src, N4 n) => (UInt4)src;
public static BitVector4 ToBitVector(this byte src, N4 n) => src;
public static BitMatrix4 BitMatrix(this IPolyrand random, N4 n4) => Z0.BitMatrix4.Define(random.Next <ushort>());