SMatrixMod2

行列ライブラリ(Mod2)

  1. struct SMatrixMod2(size_t H, size_t W)
    struct SMatrixMod2 (
    size_t H
    size_t W
    ) {
    auto B;
    auto L;
    ulong[L][H] data;
    }
  2. struct DMatrix(T)

Examples

import dkh.numeric.primitive;
auto mat = DMatrix!int(2, 2, [0, 1, 1, 1]);
assert(pow(mat, 10, DMatrix!int(2, 2, [1, 0, 0, 1]))[0, 0] == 34); //Fib_10

Meta