1CLANTR(1) LAPACK auxiliary routine (version 3.2) CLANTR(1)
2
3
4
6 CLANTR - returns the value of the one norm, or the Frobenius norm, or
7 the infinity norm, or the element of largest absolute value of a trape‐
8 zoidal or triangular matrix A
9
11 REAL FUNCTION CLANTR( NORM, UPLO, DIAG, M, N, A, LDA, WORK )
12
13 CHARACTER DIAG, NORM, UPLO
14
15 INTEGER LDA, M, N
16
17 REAL WORK( * )
18
19 COMPLEX A( LDA, * )
20
22 CLANTR returns the value of the one norm, or the Frobenius norm, or
23 the infinity norm, or the element of largest absolute value of a
24 trapezoidal or triangular matrix A.
25
27 CLANTR returns the value
28 CLANTR = ( max(abs(A(i,j))), NORM = 'M' or 'm'
29 (
30 ( norm1(A), NORM = '1', 'O' or 'o'
31 (
32 ( normI(A), NORM = 'I' or 'i'
33 (
34 ( normF(A), NORM = 'F', 'f', 'E' or 'e' where
35 norm1 denotes the one norm of a matrix (maximum column sum), normI
36 denotes the infinity norm of a matrix (maximum row sum) and normF
37 denotes the Frobenius norm of a matrix (square root of sum of
38 squares). Note that max(abs(A(i,j))) is not a consistent matrix
39 norm.
40
42 NORM (input) CHARACTER*1
43 Specifies the value to be returned in CLANTR as described
44 above.
45
46 UPLO (input) CHARACTER*1
47 Specifies whether the matrix A is upper or lower trapezoidal.
48 = 'U': Upper trapezoidal
49 = 'L': Lower trapezoidal Note that A is triangular instead of
50 trapezoidal if M = N.
51
52 DIAG (input) CHARACTER*1
53 Specifies whether or not the matrix A has unit diagonal. =
54 'N': Non-unit diagonal
55 = 'U': Unit diagonal
56
57 M (input) INTEGER
58 The number of rows of the matrix A. M >= 0, and if UPLO = 'U',
59 M <= N. When M = 0, CLANTR is set to zero.
60
61 N (input) INTEGER
62 The number of columns of the matrix A. N >= 0, and if UPLO =
63 'L', N <= M. When N = 0, CLANTR is set to zero.
64
65 A (input) COMPLEX array, dimension (LDA,N)
66 The trapezoidal matrix A (A is triangular if M = N). If UPLO =
67 'U', the leading m by n upper trapezoidal part of the array A
68 contains the upper trapezoidal matrix, and the strictly lower
69 triangular part of A is not referenced. If UPLO = 'L', the
70 leading m by n lower trapezoidal part of the array A contains
71 the lower trapezoidal matrix, and the strictly upper triangular
72 part of A is not referenced. Note that when DIAG = 'U', the
73 diagonal elements of A are not referenced and are assumed to be
74 one.
75
76 LDA (input) INTEGER
77 The leading dimension of the array A. LDA >= max(M,1).
78
79 WORK (workspace) REAL array, dimension (MAX(1,LWORK)),
80 where LWORK >= M when NORM = 'I'; otherwise, WORK is not refer‐
81 enced.
82
83
84
85 LAPACK auxiliary routine (versionNo3v.e2m)ber 2008 CLANTR(1)