From 9d4b16c1d1a93da478a2a7fa491f741ac87bc5e0 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Fri, 18 Jun 2010 10:43:22 +0100 Subject: QuickStart examples: shorten var names, remove superfluous 'using'. --- doc/examples/QuickStart_example2_fixed.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/examples/QuickStart_example2_fixed.cpp') diff --git a/doc/examples/QuickStart_example2_fixed.cpp b/doc/examples/QuickStart_example2_fixed.cpp index 6d7d63d15..9fcddcdd6 100644 --- a/doc/examples/QuickStart_example2_fixed.cpp +++ b/doc/examples/QuickStart_example2_fixed.cpp @@ -7,9 +7,9 @@ using Eigen::Vector3d; int main(int, char *[]) { Matrix3d m; - for (int rowIndex = 0; rowIndex < 3; ++rowIndex) - for (int columnIndex = 0; columnIndex < 3; ++columnIndex) - m(rowIndex, columnIndex) = rowIndex + 0.01 * columnIndex; + for (int row = 0; row < 3; ++row) + for (int column = 0; column < 3; ++column) + m(row, column) = row + 0.01 * column; Vector3d v = Vector3d::Ones(); std::cout << m * v << std::endl; } -- cgit v1.2.3