Skip to content
ForCADDocumentation

inv Function

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 IntentOptional Attributes Name
real(kind=rk), intent(in), contiguous :: A(:,:)

Return Value real(kind=rk), allocatable, (:,:)