如何使用Eigen库计算零空间的基础? [英] How to compute basis of nullspace with Eigen library?

查看:241
本文介绍了如何使用Eigen库计算零空间的基础?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Eigen库计算矩阵的零空间基础?

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

我试图找到显式函数名称以计算空基,并且作为一种变通办法,是找到用于计算矩阵的rref的方法(因为我们能够从rref获取空基.

I tried to find explicit function name to compute null basis and also, as a workaround, to find method for computing rref of a matrix(as we're able to get null basis from rref).

但是我找不到任何相关的函数名称.

But I couldn't find any relevant functions names.

我认为必须对此有解决方案,但是我对Eigen库知之甚少,而且Eigen的代码也让我很难理解.

I think there's must be solution for this, but I know not much about Eigen library and Eigen's code also very difficult to me to understand.

请为我建议解决此问题的方法.

Please suggest me the solution for this problem.

推荐答案

您可以使用本征:: FullPivLU :: kernel()方法:

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

这篇关于如何使用Eigen库计算零空间的基础?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆