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

// import most common Eigen's types 
USING_PART_OF_NAMESPACE_EIGEN

int main(int argc, char *argv[])
{
  Matrix3f m3;
  m3 << 1, 2, 3, 4, 5, 6, 7, 8, 9;
  Matrix4f m4 = Matrix4f::Identity();
  Vector4i v4(1, 2, 3, 4);

  std::cout << "m3\n" << m3 << "\nm4:\n" << m4 << "\nv4:\n" << v4 << std::endl;
}