|
|
◆ dlange()
| def dlange |
( |
norm |
, |
|
|
m |
, |
|
|
n |
, |
|
|
a |
|
|
) |
| |
One norm, Frobenius norm, infinity norm, or largest absolute value of any element of a general rectangular matrix
- Purpose
- dlange returns the value of the one norm, the Frobenius norm, the infinity norm, or the largest absolute value of any element of a real matrix A.
- Returns
- (anorm, info)
anorm (float):
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.
info (int):
= 0: Successful exit.
= -1: The argument norm had an illegal value. (norm != 'M', '1', 'O', 'I', 'F' nor 'E')
= -2: The argument m had an illegal value. (m < 0)
= -3: The argument n had an illegal value. (n < 0)
= -4: The argument a is invalid.
- Parameters
-
| [in] | norm | Specifies the value to be returned by Dlange as described above. |
| [in] | m | Number of rows of the matrix A. (m >= 0) (If m = 0, returns 0) |
| [in] | n | Number of columns of the matrix A. (n >= 0) (If n = 0, returns 0) |
| [in] | a | Numpy ndarray (2-dimensional, float, m x n)
m x n matrix A. |
- Reference
- LAPACK
- Example Program
- See example of dgesv.
|