规范模块目录和第三方依赖结构
This commit is contained in:
6
third_party/eigen3/doc/snippets/MatrixBase_selfadjointView.cpp
vendored
Normal file
6
third_party/eigen3/doc/snippets/MatrixBase_selfadjointView.cpp
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user