raah, results were corrupted by overflow. Now slice vectorization is

about a +25% speedup which is still nice as i expected zero or even
negative benefit.
This commit is contained in:
Benoit Jacob 2008-07-09 16:46:26 +00:00
parent 8f21a5e862
commit 25904802bc

View File

@ -29,6 +29,7 @@ int main(int argc, char *argv[])
m.block(r,c,nr,nc) += Mat::ones(nr,nc);
m.block(r,c,nr,nc) *= SCALAR(10);
m.block(r,c,nr,nc) -= Mat::constant(nr,nc,10);
m.block(r,c,nr,nc) /= SCALAR(10);
}
cout << m[0] << endl;
return 0;