aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/MatrixBase_block_int_int_int_int.cpp
blob: 1aeadfb1821d56bb6c4a7a470ad0120654cd8332 (plain)
1
2
3
4
5
Matrix4i m = Matrix4i::random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is m.block(1, 1, 2, 2):" << endl << m.block(1, 1, 2, 2) << endl;
m.block(1, 1, 2, 2).setZero();
cout << "Now the matrix m is:" << endl << m << endl;