* fix compilation with gcc 3.4

* add an option to disable Qt testing
This commit is contained in:
Gael Guennebaud
2009-01-23 09:50:16 +00:00
parent 291ee89684
commit d3dcb04f2d
6 changed files with 50 additions and 41 deletions

View File

@@ -24,9 +24,10 @@
#include "sparse.h"
template<typename SetterType,typename DenseType, typename SparseType>
bool test_random_setter(SparseType& sm, const DenseType& ref, const std::vector<Vector2i>& nonzeroCoords)
template<typename SetterType,typename DenseType, typename Scalar, int Options>
bool test_random_setter(SparseMatrix<Scalar,Options>& sm, const DenseType& ref, const std::vector<Vector2i>& nonzeroCoords)
{
typedef SparseMatrix<Scalar,Options> SparseType;
{
sm.setZero();
SetterType w(sm);