Go to the documentation of this file.00001 #include <Eigen/Core>
00002 #include <Eigen/LU>
00003 #include <Eigen/QR>
00004 #include <Eigen/Cholesky>
00005 #include <Eigen/Geometry>
00006 #include <Eigen/Jacobi>
00007 #include <Eigen/Eigenvalues>
00008 #include <iostream>
00009
00010 using namespace Eigen;
00011 using namespace std;
00012
00013 int main(int, char**)
00014 {
00015 cout.precision(3);
00016 Matrix3i m1;
00017 m1 << 1, 2, 3,
00018 4, 5, 6,
00019 7, 8, 9;
00020 cout << m1 << endl << endl;
00021 Matrix3i m2 = Matrix3i::Identity();
00022 m2.block(0,0, 2,2) << 10, 11, 12, 13;
00023 cout << m2 << endl << endl;
00024 Vector2i v1;
00025 v1 << 14, 15;
00026 m2 << v1.transpose(), 16,
00027 v1, m1.block(1,1,2,2);
00028 cout << m2 << endl;
00029
00030 return 0;
00031 }