Tutorial_solve_triangular.cpp
Go to the documentation of this file.
00001 Matrix3f A;
00002 Vector3f b;
00003 A << 1,2,3,  0,5,6,  0,0,10;
00004 b << 3, 3, 4;
00005 cout << "Here is the matrix A:" << endl << A << endl;
00006 cout << "Here is the vector b:" << endl << b << endl;
00007 Vector3f x = A.triangularView<Upper>().solve(b);
00008 cout << "The solution is:" << endl << x << endl;


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:33:27