1CLANGB(1) LAPACK auxiliary routine (version 3.1) CLANGB(1)
2
3
4
6 CLANGB - the value of the one norm, or the Frobenius norm, or the
7 infinity norm, or the element of largest absolute value of an n by n
8 band matrix A, with kl sub-diagonals and ku super-diagonals
9
11 REAL FUNCTION CLANGB( NORM, N, KL, KU, AB, LDAB, WORK )
12
13 CHARACTER NORM
14
15 INTEGER KL, KU, LDAB, N
16
17 REAL WORK( * )
18
19 COMPLEX AB( LDAB, * )
20
22 CLANGB returns the value of the one norm, or the Frobenius norm, or
23 the infinity norm, or the element of largest absolute value of an n
24 by n band matrix A, with kl sub-diagonals and ku super-diagonals.
25
26
28 CLANGB returns the value
29
30 CLANGB = ( max(abs(A(i,j))), NORM = 'M' or 'm'
31 (
32 ( norm1(A), NORM = '1', 'O' or 'o'
33 (
34 ( normI(A), NORM = 'I' or 'i'
35 (
36 ( normF(A), NORM = 'F', 'f', 'E' or 'e'
37
38 where norm1 denotes the one norm of a matrix (maximum column sum),
39 normI denotes the infinity norm of a matrix (maximum row sum) and
40 normF denotes the Frobenius norm of a matrix (square root of sum of
41 squares). Note that max(abs(A(i,j))) is not a consistent matrix
42 norm.
43
44
46 NORM (input) CHARACTER*1
47 Specifies the value to be returned in CLANGB as described
48 above.
49
50 N (input) INTEGER
51 The order of the matrix A. N >= 0. When N = 0, CLANGB is set
52 to zero.
53
54 KL (input) INTEGER
55 The number of sub-diagonals of the matrix A. KL >= 0.
56
57 KU (input) INTEGER
58 The number of super-diagonals of the matrix A. KU >= 0.
59
60 AB (input) COMPLEX array, dimension (LDAB,N)
61 The band matrix A, stored in rows 1 to KL+KU+1. The j-th col‐
62 umn of A is stored in the j-th column of the array AB as fol‐
63 lows: AB(ku+1+i-j,j) = A(i,j) for max(1,j-ku)<=i<=min(n,j+kl).
64
65 LDAB (input) INTEGER
66 The leading dimension of the array AB. LDAB >= KL+KU+1.
67
68 WORK (workspace) REAL array, dimension (MAX(1,LWORK)),
69 where LWORK >= N when NORM = 'I'; otherwise, WORK is not refer‐
70 enced.
71
72
73
74 LAPACK auxiliary routine (versionNo3v.e1m)ber 2006 CLANGB(1)