mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 19:59:05 +08:00
fix compilation of sparse_basic unit test for complexes
This commit is contained in:
parent
e3e39ea26d
commit
67ae94f3a2
@ -245,16 +245,16 @@ template<typename SparseMatrixType> void sparse_basic(const SparseMatrixType& re
|
|||||||
m3.insertByOuterInner(j,k) = k+1;
|
m3.insertByOuterInner(j,k) = k+1;
|
||||||
for(int j=0; j<rows; ++j)
|
for(int j=0; j<rows; ++j)
|
||||||
{
|
{
|
||||||
VERIFY(j==m3.innerVector(j).nonZeros());
|
VERIFY(j==internal::real(m3.innerVector(j).nonZeros()));
|
||||||
if(j>0)
|
if(j>0)
|
||||||
VERIFY(j==m3.innerVector(j).lastCoeff());
|
VERIFY(j==internal::real(m3.innerVector(j).lastCoeff()));
|
||||||
}
|
}
|
||||||
m3.makeCompressed();
|
m3.makeCompressed();
|
||||||
for(int j=0; j<rows; ++j)
|
for(int j=0; j<rows; ++j)
|
||||||
{
|
{
|
||||||
VERIFY(j==m3.innerVector(j).nonZeros());
|
VERIFY(j==internal::real(m3.innerVector(j).nonZeros()));
|
||||||
if(j>0)
|
if(j>0)
|
||||||
VERIFY(j==m3.innerVector(j).lastCoeff());
|
VERIFY(j==internal::real(m3.innerVector(j).lastCoeff()));
|
||||||
}
|
}
|
||||||
|
|
||||||
//m2.innerVector(j0) = 2*m2.innerVector(j1);
|
//m2.innerVector(j0) = 2*m2.innerVector(j1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user