Tutorial_ReductionsVisitorsBroadcasting_colwise.cpp File Reference

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 5 of file Tutorial_ReductionsVisitorsBroadcasting_colwise.cpp.

6 {
7  Eigen::MatrixXf mat(2,4);
8  mat << 1, 2, 6, 9,
9  3, 1, 7, 2;
10 
11  std::cout << "Column's maximum: " << std::endl
12  << mat.colwise().maxCoeff() << std::endl;
13 }
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:182