规范模块目录和第三方依赖结构
This commit is contained in:
5
third_party/eigen3/doc/snippets/MatrixBase_colwise.cpp
vendored
Normal file
5
third_party/eigen3/doc/snippets/MatrixBase_colwise.cpp
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
Matrix3d m = Matrix3d::Random();
|
||||
cout << "Here is the matrix m:" << endl << m << endl;
|
||||
cout << "Here is the sum of each column:" << endl << m.colwise().sum() << endl;
|
||||
cout << "Here is the maximum absolute value of each column:"
|
||||
<< endl << m.cwiseAbs().colwise().maxCoeff() << endl;
|
||||
Reference in New Issue
Block a user