aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/Tutorial_simple_example_fixed_size.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/Tutorial_simple_example_fixed_size.cpp')
-rw-r--r--doc/examples/Tutorial_simple_example_fixed_size.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/examples/Tutorial_simple_example_fixed_size.cpp b/doc/examples/Tutorial_simple_example_fixed_size.cpp
new file mode 100644
index 000000000..e3691d83a
--- /dev/null
+++ b/doc/examples/Tutorial_simple_example_fixed_size.cpp
@@ -0,0 +1,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;
+} \ No newline at end of file