Tutorial_ReductionsVisitorsBroadcasting_colwise.cpp
Go to the documentation of this file.
00001 #include <iostream>
00002 #include <Eigen/Dense>
00003 
00004 using namespace std;
00005 int main()
00006 {
00007   Eigen::MatrixXf mat(2,4);
00008   mat << 1, 2, 6, 9,
00009          3, 1, 7, 2;
00010   
00011   std::cout << "Column's maximum: " << std::endl
00012    << mat.colwise().maxCoeff() << std::endl;
00013 }


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:33:27