【问题标题】:How to find the inverse of a Rectangular Matrix in C using GSL如何使用 GSL 在 C 中找到矩形矩阵的逆矩阵
【发布时间】:2013-08-14 07:49:28
【问题描述】:

我在 Google 上搜索,但找不到使用 GSL 计算矩形矩阵逆的函数。由于很难找到,所以当其他人需要找到矩形矩阵的逆时,这里的答案会有所帮助。 如果无法使用 GSL,请推荐一些易于使用并提供矩形矩阵求逆的替代库。

【问题讨论】:

  • 您可以应用SVD,然后计算伪逆,例如R documentation
  • GSL中有一个SVD求解器,然后就是矩阵乘法。

标签: c gsl matrix-inverse


【解决方案1】:

是的,这是可能的!您可能没有找到它,因为它在线性代数,而不是矩阵一章中。

在 GSL 中,您首先计算 LU 分解,然后使用它来确定逆通过

int gsl_linalg_LU_invert (const gsl_matrix * LU, const gsl_permutation * p, gsl_matrix * inverse)

详细示例请参见此处 https://lists.gnu.org/archive/html/help-gsl/2008-11/msg00001.html

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-04-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-02-08
相关资源
最近更新 更多