LU decomposition: Difference between revisions

Content added Content deleted
(Updated D entry)
Line 719: Line 719:
immutable n = m.length;
immutable n = m.length;
auto id = iota(n)
auto id = iota(n)
.map!((in j) => n.iota.map!(i => cast(T)(i == j)).array)
.map!((in j) => n.iota.map!(i => T(i == j)).array)
.array;
.array;