SUBROUTINE DGETRI( N, A, LDA, IPIVOT, WORK, LDWORK, INFO) INTEGER N, LDA, LDWORK, INFO INTEGER IPIVOT(*) DOUBLE PRECISION A(LDA,*), WORK(*) SUBROUTINE DGETRI_64( N, A, LDA, IPIVOT, WORK, LDWORK, INFO) INTEGER*8 N, LDA, LDWORK, INFO INTEGER*8 IPIVOT(*) DOUBLE PRECISION A(LDA,*), WORK(*)
SUBROUTINE GETRI( [N], A, [LDA], IPIVOT, [WORK], [LDWORK], [INFO]) INTEGER :: N, LDA, LDWORK, INFO INTEGER, DIMENSION(:) :: IPIVOT REAL(8), DIMENSION(:) :: WORK REAL(8), DIMENSION(:,:) :: A SUBROUTINE GETRI_64( [N], A, [LDA], IPIVOT, [WORK], [LDWORK], [INFO]) INTEGER(8) :: N, LDA, LDWORK, INFO INTEGER(8), DIMENSION(:) :: IPIVOT REAL(8), DIMENSION(:) :: WORK REAL(8), DIMENSION(:,:) :: A
void dgetri(int n, double *a, int lda, int *ipivot, int *info);
void dgetri_64(long n, double *a, long lda, long *ipivot, long *info);
This method inverts U and then computes inv(A) by solving the system inv(A)*L = inv(U) for inv(A).
If LDWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LDWORK is issued by XERBLA.