- 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.
This commit is contained in:
Benoit Jacob
2008-04-14 17:07:12 +00:00
parent 9789c04467
commit 2a86f052a5
6 changed files with 150 additions and 32 deletions

View File

@@ -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;