Logo
Explore Help
Sign In
devtools/eigen
1
0
Fork 0
You've already forked eigen
mirror of https://gitlab.com/libeigen/eigen.git synced 2026-04-10 11:34:33 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
6624b93d67dea8fd07a60a0b8508d670b45efc1e
eigen/doc/snippets/Tutorial_solve_singular.cpp

10 lines
256 B
C++
Raw Normal View History

Rewrite tutorial section on solving linear systems
2009-08-22 20:12:47 +01:00
Matrix3f A;
Vector3f b;
A << 1,2,3, 4,5,6, 7,8,9;
b << 3, 3, 4;
cout << "Here is the matrix A:" << endl << A << endl;
cout << "Here is the vector b:" << endl << b << endl;
Vector3f x;
big huge changes, so i dont remember everything. * renaming, e.g. LU ---> FullPivLU * split tests framework: more robust, e.g. dont generate empty tests if a number is skipped * make all remaining tests use that splitting, as needed. * Fix 4x4 inversion (see stable branch) * Transform::inverse() and geo_transform test : adapt to new inverse() API, it was also trying to instantiate inverse() for 3x4 matrices. * CMakeLists: more robust regexp to parse the version number * misc fixes in unit tests
2009-10-28 18:19:29 -04:00
x = A.lu().solve(b);
Rewrite tutorial section on solving linear systems
2009-08-22 20:12:47 +01:00
cout << "The solution is:" << endl << x << endl;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 248ms Template: 18ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API