From 2a86f052a5d26c6917aee91004e220c0c2a0657e Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 14 Apr 2008 17:07:12 +0000 Subject: - optimized determinant calculations for small matrices (size <= 4) (only 30 muls for size 4) - rework the matrix inversion: now using cofactor technique for size<=3, so the ugly unrolling is only used for size 4 anymore, and even there I'm looking to get rid of it. --- bench/benchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bench/benchmark.cpp') diff --git a/bench/benchmark.cpp b/bench/benchmark.cpp index 418bf72f2..39ed317aa 100644 --- a/bench/benchmark.cpp +++ b/bench/benchmark.cpp @@ -28,7 +28,7 @@ int main(int argc, char *argv[]) asm("#begin"); for(int a = 0; a < REPEAT; a++) { - m = Matrix::ones() + 0.00005 * (m + m*m); + m = I + 0.00005 * (m + m*m); } asm("#end"); cout << m << endl; -- cgit v1.2.3