mesytec-mnode/external/taskflow-3.8.0/3rd-party/eigen-3.3.7/doc/snippets/MatrixBase_cwiseSign.cpp

5 lines
80 B
C++
Raw Normal View History

2025-01-04 01:25:05 +01:00
MatrixXd m(2,3);
m << 2, -4, 6,
-5, 1, 0;
cout << m.cwiseSign() << endl;