?laswp
?laswp
Performs a series of row interchanges on a general rectangular matrix.
Syntax
lapack_int
LAPACKE_slaswp
(
int
matrix_layout
,
lapack_int
n
,
float
*
a
,
lapack_int
lda
,
lapack_int
k1
,
lapack_int
k2
,
const
lapack_int
*
ipiv
,
lapack_int
incx
);
lapack_int
LAPACKE_dlaswp
(
int
matrix_layout
,
lapack_int
n
,
double
*
a
,
lapack_int
lda
,
lapack_int
k1
,
lapack_int
k2
,
const
lapack_int
*
ipiv
,
lapack_int
incx
);
lapack_int
LAPACKE_claswp
(
int
matrix_layout
,
lapack_int
n
,
lapack_complex_float
*
a
,
lapack_int
lda
,
lapack_int
k1
,
lapack_int
k2
,
const
lapack_int
*
ipiv
,
lapack_int
incx
);
lapack_int
LAPACKE_zlaswp
(
int
matrix_layout
,
lapack_int
n
,
lapack_complex_double
*
a
,
lapack_int
lda
,
lapack_int
k1
,
lapack_int
k2
,
const
lapack_int
*
ipiv
,
lapack_int
incx
);
Include Files
- mkl.h
Description
The routine performs a series of row interchanges on the matrix
A
. One row interchange is initiated for each of rows k1
through k2
of 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.
- matrix_layout
- Specifies whether matrix storage layout is row major (LAPACK_ROW_MAJOR) or column major (LAPACK_COL_MAJOR).
- n
- The number of columns of the matrixA.
- a
- Array, sizemax(1,for column major andlda*n)max(1,for row major layout. Herelda*mm)mmis not less than maximum of values,ipiv[k1-1+j*|incx|]0≤.j<k2-k1Arrayacontains them-by-nmatrixA.
- lda
- The leading dimension of the arraya.
- k1
- The first element ofipivfor which a row interchange will be done.
- k2
- The last element ofipivfor which a row interchange will be done.
- ipiv
- Array, size.k1+(k2-k1)*|incx|)The vector of pivot indices. Only the elements in positionsk1throughk2ofipivare accessed.implies rowsipiv(k) =lkandlare to be interchanged.
- incx
- The increment between successive values ofipiv. Ifipivis negative, the pivots are applied in reverse order.
Output Parameters
- a
- On exit, the permuted matrix.
Return Values
This function returns a value
info
.If , the execution is successful.
info
= 0If , the
info
= -i
i
-th parameter had an illegal value.If
, memory allocation error occurred.info
= -1011