dkh.matrix
-
Declaration
struct SMatrix(T, size_t H, size_t W);
行列ライブラリ
-
Declaration
struct SMatrixMod2(size_t H, size_t W);
struct DMatrix(T);行列ライブラリ(Mod2)
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