1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| #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;
| }
|
|