source: pacpussensors/trunk/Vislab/lib3dv/eigen/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_rowwise.cpp@ 136

Last change on this file since 136 was 136, checked in by ldecherf, 7 years ago

Doc

File size: 244 bytes
Line 
1#include <iostream>
2#include <Eigen/Dense>
3
4using namespace std;
5int main()
6{
7 Eigen::MatrixXf mat(2,4);
8 mat << 1, 2, 6, 9,
9 3, 1, 7, 2;
10
11 std::cout << "Row's maximum: " << std::endl
12 << mat.rowwise().maxCoeff() << std::endl;
13}
Note: See TracBrowser for help on using the repository browser.