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