 |
LAPACK
3.9.0
LAPACK: Linear Algebra PACKage
|
◆ srzt01()
real function srzt01 |
( |
integer |
M, |
|
|
integer |
N, |
|
|
real, dimension( lda, * ) |
A, |
|
|
real, dimension( lda, * ) |
AF, |
|
|
integer |
LDA, |
|
|
real, dimension( * ) |
TAU, |
|
|
real, dimension( lwork ) |
WORK, |
|
|
integer |
LWORK |
|
) |
| |
SRZT01
- Purpose:
SRZT01 returns
|| A - R*Q || / ( M * eps * ||A|| )
for an upper trapezoidal A that was factored with STZRZF.
- 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 REAL array, dimension (LDA,N)
The original upper trapezoidal M by N matrix A. |
[in] | AF | AF is REAL array, dimension (LDA,N)
The output of STZRZF 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 REAL array, dimension (M)
Details of the Householder transformations as returned by
STZRZF. |
[out] | WORK | WORK is REAL array, dimension (LWORK) |
[in] | LWORK | LWORK is INTEGER
The length of the array WORK. LWORK >= m*n + m*nb. |
- Author
- Univ. of Tennessee
-
Univ. of California Berkeley
-
Univ. of Colorado Denver
-
NAG Ltd.
- Date
- December 2016
Definition at line 100 of file srzt01.f.
107 INTEGER LDA, LWORK, M, N
110 REAL A( LDA, * ), AF( LDA, * ), TAU( * ),
118 parameter( zero = 0.0e+0, one = 1.0e+0 )
141 IF( lwork.LT.m*n+m )
THEN
142 CALL xerbla(
'SRZT01', 8 )
148 IF( m.LE.0 .OR. n.LE.0 )
151 norma =
slange(
'One-norm', m, n, a, lda, rwork )
155 CALL slaset(
'Full', m, n, zero, zero, work, m )
158 work( ( j-1 )*m+i ) = af( i, j )
164 CALL sormrz(
'Right',
'No tranpose', m, n, m, n-m, af, lda, tau,
165 $ work, m, work( m*n+1 ), lwork-m*n, info )
170 CALL saxpy( m, -one, a( 1, i ), 1, work( ( i-1 )*m+1 ), 1 )
real function srzt01(M, N, A, AF, LDA, TAU, WORK, LWORK)
SRZT01
real function slange(NORM, M, N, A, LDA, WORK)
SLANGE returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value ...
subroutine sormrz(SIDE, TRANS, M, N, K, L, A, LDA, TAU, C, LDC, WORK, LWORK, INFO)
SORMRZ
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine slaset(UPLO, M, N, ALPHA, BETA, A, LDA)
SLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values.
real function slamch(CMACH)
SLAMCH
subroutine saxpy(N, SA, SX, INCX, SY, INCY)
SAXPY