XLPack 6.1
C/C++ API Reference Manual (Basic module)
Loading...
Searching...
No Matches

◆ _dlange()

double _dlange ( char  norm,
int  m,
int  n,
int  lda,
double  a[],
double  work[] 
)

One norm, Frobenius norm, infinity norm, or largest absolute value of any element of a general rectangular 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 a real matrix A.
Returns
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]normSpecifies the value to be returned by dlange as described above.
[in]mNumber of rows of the matrix A. (m >= 0) (If m = 0, returns 0)
[in]nNumber of columns of the matrix A. (n >= 0) (If n = 0, returns 0)
[in]ldaLeading dimension of the two dimensional array a[][]. (lda >= max(1, m))
[in]a[][]Array a[la][lda] (la >= n)
m×n matrix A.
[out]work[]Array work[lwork] (lwork >= max(1, m) when norm = 'I', otherwise work[] is not referenced)
Work array.
Reference
LAPACK