Fix sparse_basic unit test conflict

This commit is contained in:
Gael Guennebaud 2013-06-12 10:37:15 +02:00
parent 62670c83a0
commit 65c59307e2

View File

@ -180,16 +180,16 @@ template<typename SparseMatrixType> void sparse_basic(const SparseMatrixType& re
m3.insertByOuterInner(j,k) = k+1;
for(int j=0; j<rows; ++j)
{
VERIFY(j==internal::real(m3.innerVector(j).nonZeros()));
VERIFY(j==numext::real(m3.innerVector(j).nonZeros()));
if(j>0)
VERIFY(j==internal::real(m3.innerVector(j).lastCoeff()));
VERIFY(j==numext::real(m3.innerVector(j).lastCoeff()));
}
m3.makeCompressed();
for(int j=0; j<rows; ++j)
{
VERIFY(j==internal::real(m3.innerVector(j).nonZeros()));
VERIFY(j==numext::real(m3.innerVector(j).nonZeros()));
if(j>0)
VERIFY(j==internal::real(m3.innerVector(j).lastCoeff()));
VERIFY(j==numext::real(m3.innerVector(j).lastCoeff()));
}
//m2.innerVector(j0) = 2*m2.innerVector(j1);