DMatrix

行列ライブラリ(Mod2)

Constructors

this
this(size_t h, size_t w)
Undocumented in source.
this
this(size_t h, size_t w, T[] d)
Undocumented in source.

Members

Functions

dup
DMatrix 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
inout(T) opIndex(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.

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.

Variables

data
T[] data;
Undocumented in source.
h
size_t h;
w
size_t w;
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