mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-10 02:39:03 +08:00
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:
parent
8f21a5e862
commit
25904802bc
@ -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) += Mat::ones(nr,nc);
|
||||||
m.block(r,c,nr,nc) *= SCALAR(10);
|
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) -= Mat::constant(nr,nc,10);
|
||||||
|
m.block(r,c,nr,nc) /= SCALAR(10);
|
||||||
}
|
}
|
||||||
cout << m[0] << endl;
|
cout << m[0] << endl;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user