?lacp2
?lacp2
Copies all or part of a real two-dimensional array to a complex array.
Syntax
lapack_int
LAPACKE_clacp2
(
int
matrix_layout
,
char
uplo
,
lapack_int
m
,
lapack_int
n
,
const
float
*
a
,
lapack_int
lda
,
lapack_complex_float
*
b
,
lapack_int
ldb
);
lapack_int
LAPACKE_zlacp2
(
int
matrix_layout
,
char
uplo
,
lapack_int
m
,
lapack_int
n
,
const
double
*
a
,
lapack_int
lda
,
lapack_complex_double
*
b
,
lapack_int
ldb
);
Include Files
- mkl.h
Description
The routine copies all or part of a real matrix
A
to another matrix B
. Input Parameters
- matrix_layout
- Specifies whether matrix storage layout is row major (LAPACK_ROW_MAJOR) or column major (LAPACK_COL_MAJOR).
- uplo
- Specifies the part of the matrixAto be copied toB.If, the upper triangular part ofuplo='U'A;if, the lower triangular part ofuplo='L'A.Otherwise, all of the matrixAis copied.
- m
- The number of rows in the matrixA().m≥0
- n
- The number of columns inA().n≥0
- a
- Array, size at leastmax, contains the(1,for column major and maxlda*n)(1,for row majorlda*m)m-by-nmatrixA.If, only the upper triangle or trapezoid is accessed; ifuplo='U', only the lower triangle or trapezoid is accessed.uplo='L'
- lda
- The leading dimension ofa;lda≥max(1,m)for column major and.for row majorlda≥max(1,n)
- ldb
- The leading dimension of the output arrayb;ldb≥max(1,m)for column major and.for row majorldb≥max(1,n)
Output Parameters
- b
- Array, sizeat least max(1,.ldb*n) for column major layout and max(1,ldb*m) for row major layout, contains them-by-nmatrixBOn exit,in the locations specified byB=Auplo.
Return Values
This function returns a value
info
.If , the execution is successful.
info
= 0If , the
info
< 0i
-th parameter had an illegal value.If , memory allocation error occurred.
info
= -1011