MatrixBase_block_int_int.cpp revision c981c48f5bc9aefeffc0bcb0cc3934c2fae179dd
1Matrix4i m = Matrix4i::Random(); 2cout << "Here is the matrix m:" << endl << m << endl; 3cout << "Here is m.block<2,2>(1,1):" << endl << m.block<2,2>(1,1) << endl; 4m.block<2,2>(1,1).setZero(); 5cout << "Now the matrix m is:" << endl << m << endl; 6