March 2014 update

This commit is contained in:
Ingy döt Net 2014-04-02 16:56:35 +00:00
parent 09687c4926
commit a25938f123
1846 changed files with 21876 additions and 5203 deletions

View file

@ -3,8 +3,7 @@ import std.stdio, std.range, std.numeric, std.algorithm;
T[][] matMul(T)(immutable T[][] A, immutable T[][] B) pure nothrow {
immutable Bt = B[0].length.iota.map!(i=> B.transversal(i).array)
.array;
return A.map!((immutable T[] a) => Bt.map!(b => a.dotProduct(b))
.array).array;
return A.map!((in a) => Bt.map!(b => a.dotProduct(b)).array).array;
}
void main() {