Rewrite tutorial section on solving linear systems

This commit is contained in:
Jitse Niesen
2009-08-22 20:12:47 +01:00
parent 37dede6077
commit 90735b6a9c
11 changed files with 267 additions and 71 deletions

View File

@@ -0,0 +1,6 @@
Matrix3f A;
Vector3f b;
A << 1,2,3, 0,5,6, 0,0,10;
b << 3, 3, 4;
A.triangularView<UpperTriangular>().solveInPlace(b);
cout << "The solution is:" << endl << b << endl;