From 28293142842c525eec1adde377999b065dea8cbf Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 4 May 2009 14:25:12 +0000 Subject: new simplified API to fill sparse matrices (the old functions are deprecated). Basically there are now only 2 functions to set a coefficient: 1) mat.coeffRef(row,col) = value; 2) mat.insert(row,col) = value; coeffRef has no limitation, insert assumes the coeff has not already been set, and raises an assert otherwise. In addition I added a much lower level, but more efficient filling mechanism for internal use only. --- test/sparse_solvers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/sparse_solvers.cpp') diff --git a/test/sparse_solvers.cpp b/test/sparse_solvers.cpp index e1ec1ef35..ce19153ff 100644 --- a/test/sparse_solvers.cpp +++ b/test/sparse_solvers.cpp @@ -37,12 +37,12 @@ initSPD(double density, initSparse(density,aux,sparseMat,ForceNonZeroDiag); refMat += aux * aux.adjoint(); } - sparseMat.startFill(); + sparseMat.setZero(); for (int j=0 ; j void sparse_solvers(int rows, int cols) -- cgit v1.2.3