411 REFERENCE · Wikibooks
Linear Algebra and the C Language/a03k
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
__NOTOC__
Become Familiar with the concept of pseudo-inverse.
In mathematics, and in particular, algebra, a generalized inverse (or, g-inverse) of an element x is an element y that has some properties of an inverse element but not necessarily all of them... Wikipedia: Generalized inverse
You have the left inverse, when the matrix is square or has more rows than columns. You have the right inverse, when the matrix is not square or has more columns than rows.
The left inverse of A: Pinv_Rn_mR(); (More Rows than columns.)
Random values
Choose your values
Extreme value
A Pinv A = A
Pinv A Pinv = Pinv
The right inverse of A: Pinv_Cn_mR(); (More Columns than rows.)
Random values
Choose your values
Extreme value
A Pinv A = A
Pinv A Pinv = Pinv
Code study
The code
Pinv_Rn_mR(); Pinv_Cn_mR();
The left Inverse with: inv(A_TA) A_T
You can use the inverse function and the transpose function to compute the left inverse of a matrix.
Random values
Choose your values
Use inv(A_TA)*A_T to calculate:
The coefficients of a polynomial.
The coefficients of a conic.
The coefficients of a circle.
The right Inverse with: A_T inv(AA_T)
You can use the inverse function and the transpose function to compute the right inverse of a matrix.
Random values
Choose your values