mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 17:17:14 +08:00
9 lines
325 B
C++
9 lines
325 B
C++
MatrixXf m = MatrixXf::Random(3, 5);
|
|
cout << "Here is the matrix m:" << endl << m << endl;
|
|
MatrixXf ker = m.fullPivLu().kernel();
|
|
cout << "Here is a matrix whose columns form a basis of the kernel of m:"
|
|
<< endl
|
|
<< ker << endl;
|
|
cout << "By definition of the kernel, m*ker is zero:" << endl
|
|
<< m * ker << endl;
|