NAME

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


SYNOPSIS

  SUBROUTINE CGETRI( N, A, LDA, IPIVOT, WORK, LDWORK, INFO)
  COMPLEX A(LDA,*), WORK(*)
  INTEGER N, LDA, LDWORK, INFO
  INTEGER IPIVOT(*)
  SUBROUTINE CGETRI_64( N, A, LDA, IPIVOT, WORK, LDWORK, INFO)
  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, DIMENSION(:) :: WORK
  COMPLEX, DIMENSION(:,:) :: A
  INTEGER :: N, LDA, LDWORK, INFO
  INTEGER, DIMENSION(:) :: IPIVOT
  SUBROUTINE GETRI_64( [N], A, [LDA], IPIVOT, [WORK], [LDWORK], [INFO])
  COMPLEX, DIMENSION(:) :: WORK
  COMPLEX, DIMENSION(:,:) :: A
  INTEGER(8) :: N, LDA, LDWORK, INFO
  INTEGER(8), DIMENSION(:) :: IPIVOT

C INTERFACE

#include <sunperf.h>

void cgetri(int n, complex *a, int lda, int *ipivot, int *info);

void cgetri_64(long n, complex *a, long lda, long *ipivot, long *info);


PURPOSE

cgetri 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