?lange
?lange
Returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value of any element of a general rectangular matrix.
Syntax
float
LAPACKE_slange
(
int
matrix_layout
,
char
norm
,
lapack_int
m
,
lapack_int
n
,
const
float
*
a
,
lapack_int
lda
);
double
LAPACKE_dlange
(
int
matrix_layout
,
char
norm
,
lapack_int
m
,
lapack_int
n
,
const
double
*
a
,
lapack_int
lda
);
float
LAPACKE_clange
(
int
matrix_layout
,
char
norm
,
lapack_int
m
,
lapack_int
n
,
const
lapack_complex_float
*
a
,
lapack_int
lda
);
double
LAPACKE_zlange
(
int
matrix_layout
,
char
norm
,
lapack_int
m
,
lapack_int
n
,
const
lapack_complex_double
*
a
,
lapack_int
lda
);
Include Files
- mkl.h
Description
The function
?lange
returns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a real/complex matrix A
.Input Parameters
A
<datatype>
placeholder, if present, is used for the C interface data types in the C interface section above. See
C Interface Conventions
for the C interface principal conventions and type definitions.
- norm
- Specifies the value to be returned by the routine:='M'or'm':, largest absolute value of the matrixval=max(abs(A))ijA.='1'or'O'or'o':, 1-norm of the matrixval=norm1(A)A(maximum column sum),='I'or'i':, infinity norm of the matrixval=normI(A)A(maximum row sum),='F','f','E'or'e':, Frobenius norm of the matrixval=normF(A)A(square root of sum of squares).
- m
- The number of rows of the matrixA.. Whenm≥0,m= 0?langeis set to zero.
- n
- The number of columns of the matrixA.. Whenn≥0,n= 0?langeis set to zero.
- a
- Array, size at leastArraymax(1,for column major andlda*n)max(1,for row major layout.lda*m)acontains them-by-nmatrixA.
- lda
- The leading dimension of the arraya..for column major layout and max(1,lda≥max(n,1)n) for row major layout