aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/QuickStart_example2_fixed.cpp
blob: 9fcddcdd6dd569ac90330e416f78a53be78f8e2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
#include <Eigen/Dense>

using Eigen::Matrix3d;
using Eigen::Vector3d;

int main(int, char *[])
{
  Matrix3d m;
  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;
}