NAME

zungl2 - generate an m-by-n complex matrix Q with orthonormal rows,


SYNOPSIS

  SUBROUTINE ZUNGL2( M, N, K, A, LDA, TAU, WORK, INFO)
  DOUBLE COMPLEX A(LDA,*), TAU(*), WORK(*)
  INTEGER M, N, K, LDA, INFO
  SUBROUTINE ZUNGL2_64( M, N, K, A, LDA, TAU, WORK, INFO)
  DOUBLE COMPLEX A(LDA,*), TAU(*), WORK(*)
  INTEGER*8 M, N, K, LDA, INFO

F95 INTERFACE

  SUBROUTINE UNGL2( [M], [N], [K], A, [LDA], TAU, [WORK], [INFO])
  COMPLEX(8), DIMENSION(:) :: TAU, WORK
  COMPLEX(8), DIMENSION(:,:) :: A
  INTEGER :: M, N, K, LDA, INFO
  SUBROUTINE UNGL2_64( [M], [N], [K], A, [LDA], TAU, [WORK], [INFO])
  COMPLEX(8), DIMENSION(:) :: TAU, WORK
  COMPLEX(8), DIMENSION(:,:) :: A
  INTEGER(8) :: M, N, K, LDA, INFO

C INTERFACE

#include <sunperf.h>

void zungl2(int m, int n, int k, doublecomplex *a, int lda, doublecomplex *tau, int *info);

void zungl2_64(long m, long n, long k, doublecomplex *a, long lda, doublecomplex *tau, long *info);


PURPOSE

zungl2 generates an m-by-n complex matrix Q with orthonormal rows, which is defined as the first m rows of a product of k elementary reflectors of order n

      Q  =  H(k)' . . . H(2)' H(1)'

as returned by CGELQF.


ARGUMENTS