mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix sparse iterator and tests.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
70410310a4
commit
3918768be1
@@ -151,7 +151,9 @@ template<typename Scalar,typename StorageIndex> void sparse_vector(int rows, int
|
||||
DenseVector refVec1 = DenseVector::Zero(rows);
|
||||
DenseIndexVector innerIndices(rows);
|
||||
innerIndices.setLinSpaced(0, rows - 1);
|
||||
std::random_shuffle(innerIndices.begin(), innerIndices.end());
|
||||
std::random_device rd;
|
||||
std::mt19937 g(rd());
|
||||
std::shuffle(innerIndices.begin(), innerIndices.end(), g);
|
||||
Index nz = internal::random<Index>(2, rows / 2);
|
||||
for (Index k = 0; k < nz; k++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user