 |
LAPACK
3.9.0
LAPACK: Linear Algebra PACKage
|
◆ crzt01()
real function crzt01 |
( |
integer |
M, |
|
|
integer |
N, |
|
|
complex, dimension( lda, * ) |
A, |
|
|
complex, dimension( lda, * ) |
AF, |
|
|
integer |
LDA, |
|
|
complex, dimension( * ) |
TAU, |
|
|
complex, dimension( lwork ) |
WORK, |
|
|
integer |
LWORK |
|
) |
| |
CRZT01
- Purpose:
CRZT01 returns
|| A - R*Q || / ( M * eps * ||A|| )
for an upper trapezoidal A that was factored with CTZRZF.
- Parameters
-
[in] | M | M is INTEGER
The number of rows of the matrices A and AF. |
[in] | N | N is INTEGER
The number of columns of the matrices A and AF. |
[in] | A | A is COMPLEX array, dimension (LDA,N)
The original upper trapezoidal M by N matrix A. |
[in] | AF | AF is COMPLEX array, dimension (LDA,N)
The output of CTZRZF for input matrix A.
The lower triangle is not referenced. |
[in] | LDA | LDA is INTEGER
The leading dimension of the arrays A and AF. |
[in] | TAU | TAU is COMPLEX array, dimension (M)
Details of the Householder transformations as returned by
CTZRZF. |
[out] | WORK | WORK is COMPLEX array, dimension (LWORK) |
[in] | LWORK | LWORK is INTEGER
The length of the array WORK. LWORK >= m*n + m. |
- Author
- Univ. of Tennessee
-
Univ. of California Berkeley
-
Univ. of Colorado Denver
-
NAG Ltd.
- Date
- December 2016
Definition at line 100 of file crzt01.f.
107 INTEGER LDA, LWORK, M, N
110 COMPLEX A( LDA, * ), AF( LDA, * ), TAU( * ),
118 parameter( zero = 0.0e0, one = 1.0e0 )
135 INTRINSIC cmplx, max, real
141 IF( lwork.LT.m*n+m )
THEN
142 CALL xerbla(
'CRZT01', 8 )
148 IF( m.LE.0 .OR. n.LE.0 )
151 norma =
clange(
'One-norm', m, n, a, lda, rwork )
155 CALL claset(
'Full', m, n, cmplx( zero ), cmplx( zero ), work, m )
158 work( ( j-1 )*m+i ) = af( i, j )
164 CALL cunmrz(
'Right',
'No tranpose', m, n, m, n-m, af, lda, tau,
165 $ work, m, work( m*n+1 ), lwork-m*n, info )
170 CALL caxpy( m, cmplx( -one ), a( 1, i ), 1,
171 $ work( ( i-1 )*m+1 ), 1 )
real function crzt01(M, N, A, AF, LDA, TAU, WORK, LWORK)
CRZT01
real function clange(NORM, M, N, A, LDA, WORK)
CLANGE returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value ...
subroutine cunmrz(SIDE, TRANS, M, N, K, L, A, LDA, TAU, C, LDC, WORK, LWORK, INFO)
CUNMRZ
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine claset(UPLO, M, N, ALPHA, BETA, A, LDA)
CLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values.
real function slamch(CMACH)
SLAMCH
subroutine caxpy(N, CA, CX, INCX, CY, INCY)
CAXPY