Logo Search packages:      
Sourcecode: eigen3 version File versions  Download package

Tutorial_simple_example_fixed_size.cpp
#include <Eigen/Core>
#include <iostream>

using namespace Eigen;

int main()
{
  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;
}

Generated by  Doxygen 1.6.0   Back to index