xref: /aosp_15_r20/external/eigen/doc/snippets/MatrixBase_cwiseSign.cpp (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1 MatrixXd m(2,3);
2 m <<  2, -4, 6,
3      -5,  1, 0;
4 cout << m.cwiseSign() << endl;
5