aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/C09_TutorialSparse.dox
diff options
context:
space:
mode:
Diffstat (limited to 'doc/C09_TutorialSparse.dox')
-rw-r--r--doc/C09_TutorialSparse.dox5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/C09_TutorialSparse.dox b/doc/C09_TutorialSparse.dox
index 5d9050a85..37ec79ed6 100644
--- a/doc/C09_TutorialSparse.dox
+++ b/doc/C09_TutorialSparse.dox
@@ -110,7 +110,7 @@ Iterating over the coefficients of a sparse matrix can be done only in the same
<tr><td>
\code
SparseMatrixType mat(rows,cols);
-for (int k=0; k<m1.outerSize(); ++k)
+for (int k=0; k<mat.outerSize(); ++k)
for (SparseMatrixType::InnerIterator it(mat,k); it; ++it)
{
it.value();
@@ -131,6 +131,9 @@ for (SparseVector<double>::InnerIterator it(vec); it; ++it)
</td></tr>
</table>
+If the type of the sparse matrix or vector depends on a template parameter, then the \c typename keyword is
+required to indicate that \c InnerIterator denotes a type; see \ref TopicTemplateKeyword for details.
+
\section TutorialSparseFilling Filling a sparse matrix