aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/QuickStart_example2_dynamic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/QuickStart_example2_dynamic.cpp')
-rw-r--r--doc/examples/QuickStart_example2_dynamic.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/QuickStart_example2_dynamic.cpp b/doc/examples/QuickStart_example2_dynamic.cpp
index c304c934a..b46ecef99 100644
--- a/doc/examples/QuickStart_example2_dynamic.cpp
+++ b/doc/examples/QuickStart_example2_dynamic.cpp
@@ -7,9 +7,9 @@ using Eigen::VectorXd;
int main(int, char *[])
{
MatrixXd m(3,3);
- 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;
VectorXd v = VectorXd::Ones(3);
std::cout << m * v << std::endl;
}