eigen/doc/examples/function_dynBlock.cpp
Benoit Jacob a52c74095f rename src/ to Eigen/ so that we're able to #include<Eigen/Core.h>
in the examples instead of ugly things like #include"../../src/Core.h"
2007-12-20 21:25:13 +00:00

20 lines
266 B
C++

#include <Eigen/Core.h>
USING_EIGEN_DATA_TYPES
using namespace std;
int main(int, char**)
{
Matrix4d m = Matrix4d::identity();
m.dynBlock(2,0,2,2) = m.dynBlock(0,0,2,2);
cout << m << endl;
return 0;
}
/* Output:
1 0 0 0
0 1 0 0
1 0 1 0
0 1 0 1
*/