diff options
author | 2010-07-12 22:45:57 +0100 | |
---|---|---|
committer | 2010-07-12 22:45:57 +0100 | |
commit | 140ad0908d9646c3c44dfe65ee4274c12c324770 (patch) | |
tree | a1f345d22368148e2b1dd45e01f13f09eac8f407 /doc/examples/Tutorial_ArrayClass_interop_array.cpp | |
parent | 8e776c94c173e3c8ea7ec32648f8b2f09bf09b37 (diff) |
Tutorial page 3: add more cwise operations, condense rest.
Diffstat (limited to 'doc/examples/Tutorial_ArrayClass_interop_array.cpp')
-rw-r--r-- | doc/examples/Tutorial_ArrayClass_interop_array.cpp | 34 |
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; -} |