Go to the source code of this file.
◆ main()
Definition at line 9 of file TutorialInplaceLU.cpp.
13 std::cout <<
"Here is the input matrix A before decomposition:\n" <<
A <<
"\n";
14 std::cout <<
"[init]\n";
16 std::cout <<
"[declaration]\n";
18 std::cout <<
"Here is the input matrix A after decomposition:\n" <<
A <<
"\n";
19 std::cout <<
"[declaration]\n";
21 std::cout <<
"[matrixLU]\n";
22 std::cout <<
"Here is the matrix storing the L and U factors:\n" <<
lu.matrixLU() <<
"\n";
23 std::cout <<
"[matrixLU]\n";
25 std::cout <<
"[solve]\n";
29 std::cout <<
"Residual: " << (A0 *
x -
b).norm() <<
"\n";
30 std::cout <<
"[solve]\n";
32 std::cout <<
"[modifyA]\n";
35 std::cout <<
"Residual: " << (A0 *
x -
b).norm() <<
"\n";
36 std::cout <<
"[modifyA]\n";
38 std::cout <<
"[recompute]\n";
42 std::cout <<
"Residual: " << (A0 *
x -
b).norm() <<
"\n";
43 std::cout <<
"[recompute]\n";
45 std::cout <<
"[recompute_bis0]\n";
49 std::cout <<
"Here is the input matrix A1 after decomposition:\n" << A1 <<
"\n";
50 std::cout <<
"[recompute_bis0]\n";
52 std::cout <<
"[recompute_bis1]\n";
54 std::cout <<
"Residual: " << (A1 *
x -
b).norm() <<
"\n";
55 std::cout <<
"[recompute_bis1]\n";
The matrix class, also used for vectors and row-vectors.
LU decomposition of a matrix with partial pivoting, and related features.
cout<< "Here is the matrix m:"<< endl<< m<< endl;Eigen::FullPivLU< Matrix5x3 > lu(m)
◆ init_obj