How to compute basis of nullspace with Eigen library?

后端 未结 3 1125
孤街浪徒
孤街浪徒 2021-01-22 10:10

How to compute basis of nullspace of a matrix with Eigen library?

I tried to find explicit function name to compute null basis and also

3条回答
  •  猫巷女王i
    2021-01-22 10:30

    You can get a basis of the null space using Eigen::FullPivLU::kernel() method:

    FullPivLU lu(A);
    MatrixXd A_null_space = lu.kernel();
    

提交回复
热议问题