eigen/doc/snippets/MatrixBase_cwiseMin.cpp

3 lines
64 B
C++

Vector3d v(2, 3, 4), w(4, 2, 3);
cout << v.cwiseMin(w) << endl;