I searched on Google and I couldn't find a function to calculate the inverse of Rectangular Matrix using GSL. Being that it was hard to find, an answer here would help others when they need to find an inverse of a rectangular matrix. If it is not possible using GSL, then please suggest some alternative library which is easy to use and provides the inverse of rectangular matrix.
Yes, it is possible! You probably did not fin it because it is in the chapter Linear Algebra, not Matrices.
In GSL you first compute the LU decomposition and then use it to determine the inverse via
int gsl_linalg_LU_invert (const gsl_matrix * LU, const gsl_permutation * p, gsl_matrix * inverse)
See here for a detailed example https://lists.gnu.org/archive/html/help-gsl/2008-11/msg00001.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With