From 421ece38e1995ec4df12213d6fd567fa18222cca Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 6 Jun 2011 10:17:28 +0200 Subject: Sparse: fix long int as index type in simplicial cholesky and other decompositions --- test/sparse.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/sparse.h') diff --git a/test/sparse.h b/test/sparse.h index 530ae30bc..9944a2934 100644 --- a/test/sparse.h +++ b/test/sparse.h @@ -58,15 +58,15 @@ enum { * \param zeroCoords and nonzeroCoords allows to get the coordinate lists of the non zero, * and zero coefficients respectively. */ -template void +template void initSparse(double density, Matrix& refMat, - SparseMatrix& sparseMat, + SparseMatrix& sparseMat, int flags = 0, std::vector* zeroCoords = 0, std::vector* nonzeroCoords = 0) { - enum { IsRowMajor = SparseMatrix::IsRowMajor }; + enum { IsRowMajor = SparseMatrix::IsRowMajor }; sparseMat.setZero(); sparseMat.reserve(int(refMat.rows()*refMat.cols()*density)); @@ -108,15 +108,15 @@ initSparse(double density, sparseMat.finalize(); } -template void +template void initSparse(double density, Matrix& refMat, - DynamicSparseMatrix& sparseMat, + DynamicSparseMatrix& sparseMat, int flags = 0, std::vector* zeroCoords = 0, std::vector* nonzeroCoords = 0) { - enum { IsRowMajor = DynamicSparseMatrix::IsRowMajor }; + enum { IsRowMajor = DynamicSparseMatrix::IsRowMajor }; sparseMat.setZero(); sparseMat.reserve(int(refMat.rows()*refMat.cols()*density)); for(int j=0; j