aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/benchmark.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-04-14 17:07:12 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-04-14 17:07:12 +0000
commit2a86f052a5d26c6917aee91004e220c0c2a0657e (patch)
tree910b459e63c41ac0d66a8c39332c977029615d8c /bench/benchmark.cpp
parent9789c04467d17abc338981cd2aa6d8824e6705b4 (diff)
- 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.
Diffstat (limited to 'bench/benchmark.cpp')
-rw-r--r--bench/benchmark.cpp2
1 files changed, 1 insertions, 1 deletions
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<SCALAR,MATSIZE,MATSIZE>::ones() + 0.00005 * (m + m*m);
+ m = I + 0.00005 * (m + m*m);
}
asm("#end");
cout << m << endl;