inv Function
- Seyed Ali Ghasemi
- BSD 3-Clause
- 147 statements
public pure recursive function inv(A) result(A_inv)
Compute a small inverse or full-rank Moore-Penrose pseudoinverse.
Let be the model exponent of , and define the exact radix-power scaling . Orders one through three use explicit formulas for ; larger square matrices delegate to solve and are rescaled to the same representation. Because radix scaling introduces no rounding, the dimensionless reciprocal infinity-norm condition number
must be finite and greater than . Thus uniform
nonzero scaling cannot change acceptance, while singular and
numerically singular matrices return A_inv(0,0).
For a full-column-rank matrix with , the rectangular path computes the equivalent scaled form . For full row rank with (m
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | A(:,:) |