From 6d1f5dbaaefcb9cc198aad362146131f8eec9cd7 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 10 Jul 2013 23:48:26 +0200 Subject: Add no_assignment_operator to a few classes that must not be assigned, and fix a couple of warnings. --- test/sparse.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/sparse.h') diff --git a/test/sparse.h b/test/sparse.h index 7e2b98494..1a5ceb38d 100644 --- a/test/sparse.h +++ b/test/sparse.h @@ -58,8 +58,8 @@ initSparse(double density, Matrix& refMat, SparseMatrix& sparseMat, int flags = 0, - std::vector* zeroCoords = 0, - std::vector* nonzeroCoords = 0) + std::vector >* zeroCoords = 0, + std::vector >* nonzeroCoords = 0) { enum { IsRowMajor = SparseMatrix::IsRowMajor }; sparseMat.setZero(); @@ -93,11 +93,11 @@ initSparse(double density, //sparseMat.insertBackByOuterInner(j,i) = v; sparseMat.insertByOuterInner(j,i) = v; if (nonzeroCoords) - nonzeroCoords->push_back(Vector2i(ai,aj)); + nonzeroCoords->push_back(Matrix (ai,aj)); } else if (zeroCoords) { - zeroCoords->push_back(Vector2i(ai,aj)); + zeroCoords->push_back(Matrix (ai,aj)); } refMat(ai,aj) = v; } @@ -110,8 +110,8 @@ initSparse(double density, Matrix& refMat, DynamicSparseMatrix& sparseMat, int flags = 0, - std::vector* zeroCoords = 0, - std::vector* nonzeroCoords = 0) + std::vector >* zeroCoords = 0, + std::vector >* nonzeroCoords = 0) { enum { IsRowMajor = DynamicSparseMatrix::IsRowMajor }; sparseMat.setZero(); @@ -142,11 +142,11 @@ initSparse(double density, { sparseMat.insertBackByOuterInner(j,i) = v; if (nonzeroCoords) - nonzeroCoords->push_back(Vector2i(ai,aj)); + nonzeroCoords->push_back(Matrix (ai,aj)); } else if (zeroCoords) { - zeroCoords->push_back(Vector2i(ai,aj)); + zeroCoords->push_back(Matrix (ai,aj)); } refMat(ai,aj) = v; } -- cgit v1.2.3