?lascl
?lascl
Multiplies a general rectangular matrix by a real scalar defined as c
to
/cfrom
.Syntax
lapack_int
LAPACKE_slascl
(
int
matrix_layout
,
char
type
,
lapack_int
kl
,
lapack_int
ku
,
float
cfrom
,
float
cto
,
lapack_int
m
,
lapack_int
n
,
float
*
a
,
lapack_int
lda
);
lapack_int
LAPACKE_dlascl
(
int
matrix_layout
,
char
type
,
lapack_int
kl
,
lapack_int
ku
,
double
cfrom
,
double
cto
,
lapack_int
m
,
lapack_int
n
,
double
*
a
,
lapack_int
lda
);
lapack_int
LAPACKE_clascl
(
int
matrix_layout
,
char
type
,
lapack_int
kl
,
lapack_int
ku
,
float
cfrom
,
float
cto
,
lapack_int
m
,
lapack_int
n
,
lapack_complex_float
*
a
,
lapack_int
lda
);
lapack_int
LAPACKE_zlascl
(
int
matrix_layout
,
char
type
,
lapack_int
kl
,
lapack_int
ku
,
double
cfrom
,
double
cto
,
lapack_int
m
,
lapack_int
n
,
lapack_complex_double
*
a
,
lapack_int
lda
);
Include Files
- mkl.h
Description
The routine . The operation is performed without over/underflow as long as the final result does not over/underflow.
?lascl
multiplies the m
-by-n
real/complex matrix A
by the real scalar c
to
/c
from
c
to
*A
(i
,j
)/c
from
type
specifies that A
may be full, upper triangular, lower triangular, upper Hessenberg, or banded.Input Parameters
- matrix_layout
- Specifies whether matrix storage layout is row major (LAPACK_ROW_MAJOR) or column major (LAPACK_COL_MAJOR).
- type
- This parameter specifies the storage type of the input matrix.='G':Ais a full matrix.='L':Ais a lower triangular matrix.='U':Ais an upper triangular matrix.='H':Ais an upper Hessenberg matrix.='B':Ais a symmetric band matrix with lower bandwidthkland upper bandwidthkuand with the only the lower half stored='Q':Ais a symmetric band matrix with lower bandwidthkland upper bandwidthkuand with the only the upper half stored.='Z':Ais a band matrix with lower bandwidthkland upper bandwidthku. See description of the?gbtrffunction for storage details.
- kl
- The lower bandwidth ofA. Referenced only if,type='B''Q'or'Z'.
- ku
- The upper bandwidth ofA. Referenced only if,type='B''Q'or'Z'.
- cfrom,cto
- The matrixAis multiplied bycto/cfrom.is computed without over/underflow if the final resultA(i,j)can be represented without over/underflow.cto*A(i,j)/cfromcfrommust be nonzero.
- m
- The number of rows of the matrixA..m≥0
- n
- The number of columns of the matrixA.n≥0.
- a
- Array, size(. The matrix to be multiplied bylda*n)cto/cfrom. Seetypefor the storage type.
- lda
- The leading dimension of the arraya..lda≥max(1,m)
Output Parameters
- a
- The multiplied matrixA.
- info
- If- successful exitinfo= 0If, theinfo= -i< 0i-th argument had an illegal value.