make matrix multiplication do immediate evaluation; add lazyMul() for the old behaviour

some reorganization, especially in MatrixStorage
start playing with loop unrolling, always_inline, and __restrict__
This commit is contained in:
Benoit Jacob
2007-09-29 08:28:36 +00:00
parent 51e29ae4bd
commit ee63e15e2c
10 changed files with 113 additions and 50 deletions

View File

@@ -49,7 +49,11 @@ template<typename MatrixType1,
a -= b + b;
a *= s;
b /= s;
if(rows1 == cols1) a *= b;
if(rows1 == cols1)
{
a *= b;
a.lazyMul(b);
}
MatrixType1 d(rows1, cols1);
MatrixType2 e(rows2, cols2);