NAME

zgttrf - compute an LU factorization of a complex tridiagonal matrix A using elimination with partial pivoting and row interchanges


SYNOPSIS

  SUBROUTINE ZGTTRF( N, LOW, DIAG, UP1, UP2, IPIVOT, INFO)
  DOUBLE COMPLEX LOW(*), DIAG(*), UP1(*), UP2(*)
  INTEGER N, INFO
  INTEGER IPIVOT(*)
  SUBROUTINE ZGTTRF_64( N, LOW, DIAG, UP1, UP2, IPIVOT, INFO)
  DOUBLE COMPLEX LOW(*), DIAG(*), UP1(*), UP2(*)
  INTEGER*8 N, INFO
  INTEGER*8 IPIVOT(*)

F95 INTERFACE

  SUBROUTINE GTTRF( [N], LOW, DIAG, UP1, UP2, IPIVOT, [INFO])
  COMPLEX(8), DIMENSION(:) :: LOW, DIAG, UP1, UP2
  INTEGER :: N, INFO
  INTEGER, DIMENSION(:) :: IPIVOT
  SUBROUTINE GTTRF_64( [N], LOW, DIAG, UP1, UP2, IPIVOT, [INFO])
  COMPLEX(8), DIMENSION(:) :: LOW, DIAG, UP1, UP2
  INTEGER(8) :: N, INFO
  INTEGER(8), DIMENSION(:) :: IPIVOT

C INTERFACE

#include <sunperf.h>

void zgttrf(int n, doublecomplex *low, doublecomplex *diag, doublecomplex *up1, doublecomplex *up2, int *ipivot, int *info);

void zgttrf_64(long n, doublecomplex *low, doublecomplex *diag, doublecomplex *up1, doublecomplex *up2, long *ipivot, long *info);


PURPOSE

zgttrf computes an LU factorization of a complex tridiagonal matrix A using elimination with partial pivoting and row interchanges.

The factorization has the form

   A = L * U

where L is a product of permutation and unit lower bidiagonal matrices and U is upper triangular with nonzeros in only the main diagonal and first two superdiagonals.


ARGUMENTS