mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
fix a number of compiler errors and warnings with gcc 4.3. There was a missing
#include<algorithm> so I'm not sure how it compiled at all for you :)
This commit is contained in:
@@ -61,7 +61,7 @@ template<typename Scalar> void sparse()
|
||||
VERIFY(nonzeroCoords.size()>0 && "re-run the test");
|
||||
|
||||
// test coeff and coeffRef
|
||||
for (int i=0; i<zeroCoords.size(); ++i)
|
||||
for (int i=0; i<(int)zeroCoords.size(); ++i)
|
||||
{
|
||||
VERIFY_IS_MUCH_SMALLER_THAN( m.coeff(zeroCoords[i].x(),zeroCoords[i].y()), eps );
|
||||
VERIFY_RAISES_ASSERT( m.coeffRef(zeroCoords[0].x(),zeroCoords[0].y()) = 5 );
|
||||
|
||||
Reference in New Issue
Block a user