xref: /aosp_15_r20/external/eigen/doc/snippets/MatrixBase_cwiseInverse.cpp (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1*bf2c3715SXin Li MatrixXd m(2,3);
2*bf2c3715SXin Li m << 2, 0.5, 1,
3*bf2c3715SXin Li      3, 0.25, 1;
4*bf2c3715SXin Li cout << m.cwiseInverse() << endl;
5