QuickStart examples: shorten var names, remove superfluous 'using'.

This commit is contained in:
Jitse Niesen
2010-06-18 10:43:22 +01:00
parent 729960e465
commit 9d4b16c1d1
3 changed files with 7 additions and 8 deletions

View File

@@ -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;
}