Advertisement
rdiazfuentes

Untitled

Dec 6th, 2020
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. // Eigen::MatrixXd B(2, 2);
  2. // B << 0, 1,
  3. // 0, 2;
  4. // std::cout << "Here is the matrix B:\n" << B << '\n';
  5. // std::cout << "The determinant of B is: " << B.determinant() << '\n';
  6. // std::cout << "The inverse of B is:\n" << B.inverse() << '\n';
  7. // std::cout << "The pseudo-inverse of B is:\n" << B.completeOrthogonalDecomposition().pseudoInverse() << endl;
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement