You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
Matrix4i m = Matrix4i::Random();
|
|
cout << "Here is the matrix m:" << endl << m << endl;
|
|
cout << "Here are the coefficients on the 1st super-diagonal and 2nd sub-diagonal of m:" << endl
|
|
<< m.diagonal(1).transpose() << endl
|
|
<< m.diagonal(-2).transpose() << endl;
|