extend benchmark for sparse products

This commit is contained in:
Gael Guennebaud
2010-01-05 16:03:35 +01:00
parent d8534be728
commit c3823dce72
2 changed files with 90 additions and 39 deletions

View File

@@ -42,7 +42,7 @@ void fillMatrix(float density, int rows, int cols, EigenSparseMatrix& dst)
void fillMatrix2(int nnzPerCol, int rows, int cols, EigenSparseMatrix& dst)
{
std::cout << "alloc " << nnzPerCol*cols << "\n";
// std::cout << "alloc " << nnzPerCol*cols << "\n";
dst.reserve(nnzPerCol*cols);
for(int j = 0; j < cols; j++)
{