Tutorial_BlockOperations_corner.cpp File Reference

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 6 of file Tutorial_BlockOperations_corner.cpp.

7 {
9  m << 1, 2, 3, 4,
10  5, 6, 7, 8,
11  9, 10,11,12,
12  13,14,15,16;
13  cout << "m.leftCols(2) =" << endl << m.leftCols(2) << endl << endl;
14  cout << "m.bottomRows<2>() =" << endl << m.bottomRows<2>() << endl << endl;
15  m.topLeftCorner(1,3) = m.bottomRightCorner(3,1).transpose();
16  cout << "After assignment, m = " << endl << m << endl;
17 }
Matrix3f m
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:182