aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/Tutorial_ArrayClass_interop_array.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/Tutorial_ArrayClass_interop_array.cpp')
-rw-r--r--doc/examples/Tutorial_ArrayClass_interop_array.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/doc/examples/Tutorial_ArrayClass_interop_array.cpp b/doc/examples/Tutorial_ArrayClass_interop_array.cpp
deleted file mode 100644
index c2cb6bf3f..000000000
--- a/doc/examples/Tutorial_ArrayClass_interop_array.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-#include <Eigen/Dense>
-#include <iostream>
-
-using namespace Eigen;
-using namespace std;
-
-int main()
-{
- ArrayXXf m(2,2);
- ArrayXXf n(2,2);
-
- ArrayXXf result(2,2);
-
- //initialize arrays
- m << 1,2,
- 3,4;
-
- n << 5,6,
- 7,8;
-
-
- // --> array multiplication
- result = m * n;
-
- cout << "-- Array m*n: --" << endl
- << result << endl << endl;
-
-
- // --> Matrix multiplication
- result = m.matrix() * n.matrix();
-
- cout << "-- Matrix m*n: --" << endl
- << result << endl << endl;
-}