blob: abff1ef73893c22fabc55a8a0ab3ad7020320ae3 [file] [log] [blame]
Brian Silverman72890c22015-09-19 14:37:37 -04001Matrix3f A;
2Vector3f b;
3A << 1,2,3, 4,5,6, 7,8,9;
4b << 3, 3, 4;
5cout << "Here is the matrix A:" << endl << A << endl;
6cout << "Here is the vector b:" << endl << b << endl;
7Vector3f x;
8x = A.lu().solve(b);
9cout << "The solution is:" << endl << x << endl;