1CLANGE(1) LAPACK auxiliary routine (version 3.2) CLANGE(1)
2
3
4
6 CLANGE - 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 com‐
8 plex matrix A
9
11 REAL FUNCTION CLANGE( NORM, M, N, A, LDA, WORK )
12
13 CHARACTER NORM
14
15 INTEGER LDA, M, N
16
17 REAL WORK( * )
18
19 COMPLEX A( LDA, * )
20
22 CLANGE 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 complex matrix A.
25
27 CLANGE returns the value
28 CLANGE = ( 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 CLANGE as described
44 above.
45
46 M (input) INTEGER
47 The number of rows of the matrix A. M >= 0. When M = 0,
48 CLANGE is set to zero.
49
50 N (input) INTEGER
51 The number of columns of the matrix A. N >= 0. When N = 0,
52 CLANGE is set to zero.
53
54 A (input) COMPLEX array, dimension (LDA,N)
55 The m by n matrix A.
56
57 LDA (input) INTEGER
58 The leading dimension of the array A. LDA >= max(M,1).
59
60 WORK (workspace) REAL array, dimension (MAX(1,LWORK)),
61 where LWORK >= M when NORM = 'I'; otherwise, WORK is not refer‐
62 enced.
63
64
65
66 LAPACK auxiliary routine (versionNo3v.e2m)ber 2008 CLANGE(1)