epfl-archive/cs440-acg/ext/eigen/doc/snippets/MatrixBase_cwiseMax.cpp

3 lines
60 B
C++
Raw Permalink Normal View History

2022-04-07 18:46:57 +02:00
Vector3d v(2,3,4), w(4,2,3);
cout << v.cwiseMax(w) << endl;