summaryrefslogtreecommitdiffhomepage
path: root/eigen/doc/examples/Tutorial_BlockOperations_block_assignment.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-03-03 21:09:10 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-03-03 21:10:13 +0100
commitf0238cfb6997c4acfc2bd200de7295f3fa36968f (patch)
treeb215183760e4f615b9c1dabc1f116383b72a1b55 /eigen/doc/examples/Tutorial_BlockOperations_block_assignment.cpp
parent543edd372a5193d04b3de9f23c176ab439e51b31 (diff)
don't index Eigen
Diffstat (limited to 'eigen/doc/examples/Tutorial_BlockOperations_block_assignment.cpp')
-rw-r--r--eigen/doc/examples/Tutorial_BlockOperations_block_assignment.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/eigen/doc/examples/Tutorial_BlockOperations_block_assignment.cpp b/eigen/doc/examples/Tutorial_BlockOperations_block_assignment.cpp
deleted file mode 100644
index 76f49f2..0000000
--- a/eigen/doc/examples/Tutorial_BlockOperations_block_assignment.cpp
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <Eigen/Dense>
-#include <iostream>
-
-using namespace std;
-using namespace Eigen;
-
-int main()
-{
- Array22f m;
- m << 1,2,
- 3,4;
- Array44f a = Array44f::Constant(0.6);
- cout << "Here is the array a:" << endl << a << endl << endl;
- a.block<2,2>(1,1) = m;
- cout << "Here is now a with m copied into its central 2x2 block:" << endl << a << endl << endl;
- a.block(0,0,2,3) = a.block(2,1,2,3);
- cout << "Here is now a with bottom-right 2x3 block copied into top-left 2x2 block:" << endl << a << endl << endl;
-}