source:
pacpussensors/trunk/Vislab/lib3dv/eigen/doc/snippets/MatrixBase_colwise.cpp@
138
Last change on this file since 138 was 136, checked in by , 8 years ago | |
---|---|
File size: 287 bytes |
Line | |
---|---|
1 | Matrix3d m = Matrix3d::Random(); |
2 | cout << "Here is the matrix m:" << endl << m << endl; |
3 | cout << "Here is the sum of each column:" << endl << m.colwise().sum() << endl; |
4 | cout << "Here is the maximum absolute value of each column:" |
5 | << endl << m.cwiseAbs().colwise().maxCoeff() << endl; |
Note:
See TracBrowser
for help on using the repository browser.