SMatrixMod2

行列ライブラリ(Mod2)

Constructors

this
this(Args args)
Undocumented in source.

Members

Aliases

DataType
alias DataType = ModInt!2
Undocumented in source.

Functions

dup
SMatrixMod2 dup()
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
auto opBinary(R r)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
auto opBinary(R r)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
const(DataType) opIndex(size_t i1, size_t i2)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
void opIndexAssign(DataType d, size_t i1, size_t i2)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
void opIndexAssign(bool d, size_t i1, size_t i2)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexOpAssign
auto opIndexOpAssign(DataType d, size_t i1, size_t i2)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
auto opOpAssign(T r)
Undocumented in source. Be warned that the author may not have intended to support it.
swapLine
void swapLine(size_t x, size_t y)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

height
size_t height [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
width
size_t width [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

B
auto B;
Undocumented in source.
L
auto L;
Undocumented in source.

Variables

data
ulong[L][H] data;
Undocumented in source.

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