Guest User

Untitled

a guest
Jan 22nd, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <Eigen/Dense>
  3.  
  4. using Eigen::MatrixXd;
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. MatrixXd m(2,2);
  10. m(0,0) = 3;
  11. m(1,0) = 2.5;
  12. m(0,1) = -1;
  13. m(1,1) = m(1,0) + m(0,1);
  14. cout << m << endl;
  15. }
Add Comment
Please, Sign In to add comment