* move cwise *= and /= to Core (like * and /)

* tidy the StdVector module
* fix warnings (especially a | instead of ||) in stdvector test
This commit is contained in:
Benoit Jacob
2009-01-12 13:41:40 +00:00
parent af5034b3c0
commit 336ad58213
6 changed files with 128 additions and 102 deletions

View File

@@ -53,9 +53,9 @@ void check_stdvector(const MatrixType& m)
// do a lot of push_back such that the vector gets internally resized
// (with memory reallocation)
MatrixType* ref = &w[0];
for(int i=0; i<30 | ((ref==&w[0]) && i<300); ++i)
for(int i=0; i<30 || ((ref==&w[0]) && i<300); ++i)
v.push_back(w[i%w.size()]);
for(int i=23; i<v.size(); ++i)
for(unsigned int i=23; i<v.size(); ++i)
{
VERIFY(v[i]==w[(i-23)%w.size()]);
}