|
◆ Zlangb()
Function Zlangb |
( |
Norm As |
String, |
|
|
N As |
Long, |
|
|
Kl As |
Long, |
|
|
Ku As |
Long, |
|
|
Ab() As |
Complex, |
|
|
Optional Info As |
Long, |
|
|
Optional Offset As |
Long |
|
) |
| |
One norm, Frobenius norm, infinity norm, or largest absolute value of any element of a complex band matrix
- Purpose
- This routine returns the value of the one norm, the Frobenius norm, the infinity norm, or the largest absolute value of any element of an n x n complex band matrix A, with kl sub-diagonals and ku super-diagonals.
- Returns
- Double
max(abs(Aij)) when Norm = "M",
norm1(A) when Norm = "1" or "O",
normI(A) when Norm = "I", or
normF(A) when Norm = "F" or "E"
where norm1 denotes the one norm of a matrix (maximum column sum), normI denotes the infinity norm of a matrix (maximum row sum) and normF denotes the Frobenius norm of a matrix (square root of sum of squares). Note that max(abs(Aij)) is not a consistent matrix norm.
- Parameters
-
[in] | Norm | Specifies the value to be returned by Zlangb as described above. |
[in] | N | Order of the matrix A. (N >= 0) (If N = 0, returns 0) |
[in] | Kl | Number of sub-diagonals of the matrix A. (Kl >= 0) |
[in] | Ku | Number of super-diagonals of the matrix A. (Ku >= 0) |
[in] | Ab() | Array Ab(LAb1 - 1, LAb2 - 1) (LAb1 >= Kl + Ku + 1, LAb2 >= N)
M x N band matrix A in Kl+Ku+1 x N band matrix form. |
[out] | Info | (Optional)
= 0: Successful exit.
= -1: The argument Norm had an illegal value. (Norm <> "M", "1", "O", "I", "F" nor "E")
= -2: The argument N had an illegal value. (N < 0)
= -3: The argument Kl had an illegal value. (Kl < 0)
= -4: The argument Ku had an illegal value. (Ku < 0)
= -5: The argument Ab() is invalid. |
[in] | Offset | (Optional)
Number of rows from the top of array Ab() to the first row of M x N band matrix A. (Offset >= 0) (default = 0) |
- Reference
- LAPACK
|