NAME

zgetri - compute the inverse of a matrix using the LU factorization computed by CGETRF


SYNOPSIS

  SUBROUTINE ZGETRI( N, A, LDA, IPIVOT, WORK, LDWORK, INFO)
  DOUBLE COMPLEX A(LDA,*), WORK(*)
  INTEGER N, LDA, LDWORK, INFO
  INTEGER IPIVOT(*)
  SUBROUTINE ZGETRI_64( N, A, LDA, IPIVOT, WORK, LDWORK, INFO)
  DOUBLE COMPLEX A(LDA,*), WORK(*)
  INTEGER*8 N, LDA, LDWORK, INFO
  INTEGER*8 IPIVOT(*)

F95 INTERFACE

  SUBROUTINE GETRI( [N], A, [LDA], IPIVOT, [WORK], [LDWORK], [INFO])
  COMPLEX(8), DIMENSION(:) :: WORK
  COMPLEX(8), DIMENSION(:,:) :: A
  INTEGER :: N, LDA, LDWORK, INFO
  INTEGER, DIMENSION(:) :: IPIVOT
  SUBROUTINE GETRI_64( [N], A, [LDA], IPIVOT, [WORK], [LDWORK], [INFO])
  COMPLEX(8), DIMENSION(:) :: WORK
  COMPLEX(8), DIMENSION(:,:) :: A
  INTEGER(8) :: N, LDA, LDWORK, INFO
  INTEGER(8), DIMENSION(:) :: IPIVOT

C INTERFACE

#include <sunperf.h>

void zgetri(int n, doublecomplex *a, int lda, int *ipivot, int *info);

void zgetri_64(long n, doublecomplex *a, long lda, long *ipivot, long *info);


PURPOSE

zgetri computes the inverse of a matrix using the LU factorization computed by CGETRF.

This method inverts U and then computes inv(A) by solving the system inv(A)*L = inv(U) for inv(A).


ARGUMENTS