#include <Eigen/Core>
#include <Eigen/LU>
#include <iostream>
◆ main()
8 A << 1, 2, 3, 4, 5, 6, 7, 8, 10;
10 std::cout <<
"Here is the matrix A:" << std::endl <<
A << std::endl;
11 std::cout <<
"Here is the vector b:" << std::endl <<
b << std::endl;
12 Eigen::Vector3f
x =
A.lu().solve(
b);
13 std::cout <<
"The solution is:" << std::endl <<
x << std::endl;
Scalar * b
Definition: benchVecAdd.cpp:17
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
Definition: bench_gemm.cpp:47
list x
Definition: plotDoE.py:28
References b, and plotDoE::x.