 |
LAPACK
3.9.0
LAPACK: Linear Algebra PACKage
|
◆ dqrt13()
subroutine dqrt13 |
( |
integer |
SCALE, |
|
|
integer |
M, |
|
|
integer |
N, |
|
|
double precision, dimension( lda, * ) |
A, |
|
|
integer |
LDA, |
|
|
double precision |
NORMA, |
|
|
integer, dimension( 4 ) |
ISEED |
|
) |
| |
DQRT13
- Purpose:
DQRT13 generates a full-rank matrix that may be scaled to have large
or small norm.
- Parameters
-
[in] | SCALE | SCALE is INTEGER
SCALE = 1: normally scaled matrix
SCALE = 2: matrix scaled up
SCALE = 3: matrix scaled down |
[in] | M | M is INTEGER
The number of rows of the matrix A. |
[in] | N | N is INTEGER
The number of columns of A. |
[out] | A | A is DOUBLE PRECISION array, dimension (LDA,N)
The M-by-N matrix A. |
[in] | LDA | LDA is INTEGER
The leading dimension of the array A. |
[out] | NORMA | NORMA is DOUBLE PRECISION
The one-norm of A. |
[in,out] | ISEED | ISEED is integer array, dimension (4)
Seed for random number generator |
- Author
- Univ. of Tennessee
-
Univ. of California Berkeley
-
Univ. of Colorado Denver
-
NAG Ltd.
- Date
- December 2016
Definition at line 93 of file dqrt13.f.
100 INTEGER LDA, M, N, SCALE
101 DOUBLE PRECISION NORMA
105 DOUBLE PRECISION A( LDA, * )
112 parameter( one = 1.0d0 )
116 DOUBLE PRECISION BIGNUM, SMLNUM
119 DOUBLE PRECISION DASUM, DLAMCH, DLANGE
129 DOUBLE PRECISION DUMMY( 1 )
133 IF( m.LE.0 .OR. n.LE.0 )
139 CALL dlarnv( 2, iseed, m, a( 1, j ) )
141 a( j, j ) = a( j, j ) + sign(
dasum( m, a( 1, j ), 1 ),
148 IF( scale.NE.1 )
THEN
149 norma =
dlange(
'Max', m, n, a, lda, dummy )
150 smlnum =
dlamch(
'Safe minimum' )
151 bignum = one / smlnum
152 CALL dlabad( smlnum, bignum )
153 smlnum = smlnum /
dlamch(
'Epsilon' )
154 bignum = one / smlnum
156 IF( scale.EQ.2 )
THEN
160 CALL dlascl(
'General', 0, 0, norma, bignum, m, n, a, lda,
162 ELSE IF( scale.EQ.3 )
THEN
166 CALL dlascl(
'General', 0, 0, norma, smlnum, m, n, a, lda,
171 norma =
dlange(
'One-norm', m, n, a, lda, dummy )
subroutine dlascl(TYPE, KL, KU, CFROM, CTO, M, N, A, LDA, INFO)
DLASCL multiplies a general rectangular matrix by a real scalar defined as cto/cfrom.
double precision function dlange(NORM, M, N, A, LDA, WORK)
DLANGE returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value ...
subroutine dlarnv(IDIST, ISEED, N, X)
DLARNV returns a vector of random numbers from a uniform or normal distribution.
subroutine dlabad(SMALL, LARGE)
DLABAD
double precision function dasum(N, DX, INCX)
DASUM
double precision function dlamch(CMACH)
DLAMCH