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.
7 lines
361 B
7 lines
361 B
2 years ago
|
Matrix3i m = Matrix3i::Random();
|
||
|
cout << "Here is the matrix m:" << endl << m << endl;
|
||
|
cout << "Here is the symmetric matrix extracted from the upper part of m:" << endl
|
||
|
<< Matrix3i(m.selfadjointView<Upper>()) << endl;
|
||
|
cout << "Here is the symmetric matrix extracted from the lower part of m:" << endl
|
||
|
<< Matrix3i(m.selfadjointView<Lower>()) << endl;
|