MatrixBase_cwiseAbs2.cpp 81 B

1234
  1. MatrixXd m(2,3);
  2. m << 2, -4, 6,
  3. -5, 1, 0;
  4. cout << m.cwiseAbs2() << endl;