Tutorial_BlockOperations_corner.cpp
Go to the documentation of this file.
00001 #include <Eigen/Dense>
00002 #include <iostream>
00003 
00004 using namespace std;
00005 
00006 int main()
00007 {
00008   Eigen::Matrix4f m;
00009   m << 1, 2, 3, 4,
00010        5, 6, 7, 8,
00011        9, 10,11,12,
00012        13,14,15,16;
00013   cout << "m.leftCols(2) =" << endl << m.leftCols(2) << endl << endl;
00014   cout << "m.bottomRows<2>() =" << endl << m.bottomRows<2>() << endl << endl;
00015   m.topLeftCorner(1,3) = m.bottomRightCorner(3,1).transpose();
00016   cout << "After assignment, m = " << endl << m << endl;
00017 }


libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:33:55