From c861e05181c91370f7eab7520f26b0e7a7d71bae Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sat, 3 Dec 2011 18:14:51 +0100 Subject: [PATCH] fix matrix names in the insertion example --- doc/C09_TutorialSparse.dox | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/C09_TutorialSparse.dox b/doc/C09_TutorialSparse.dox index 73c3e1823..6022cc514 100644 --- a/doc/C09_TutorialSparse.dox +++ b/doc/C09_TutorialSparse.dox @@ -156,8 +156,8 @@ For instance, the cost of inserting nnz non zeros in a a single purely random in A typical scenario to insert nonzeros is illustrated bellow: \code -1: SparseMatrix m(rows,cols); // default is column major -2: aux.reserve(VectorXi::Constant(rows,6)); +1: SparseMatrix mat(rows,cols); // default is column major +2: mat.reserve(VectorXi::Constant(rows,6)); 3: for each i,j such that v_ij != 0 4: mat.insert(i,j) = v_ij; // alternative: mat.coeffRef(i,j) += v_ij; 5: mat.makeCompressed(); // optional