Intel® oneAPI Math Kernel Library Developer Reference - C
Copies all or part of a real two-dimensional array to a complex array.
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 );
The routine copies all or part of a real matrix A to another matrix B.
Specifies whether matrix storage layout is row major (LAPACK_ROW_MAJOR) or column major (LAPACK_COL_MAJOR).
Specifies the part of the matrix A to be copied to B.
If uplo = 'U', the upper triangular part of A;
if uplo = 'L', the lower triangular part of A.
Otherwise, all of the matrix A is copied.
The number of rows in the matrix A (m≥ 0).
The number of columns in A (n≥ 0).
Array, size at least max(1,lda*n) for column major and max(1,lda*m) for row major, contains the m-by-n matrix A.
If uplo = 'U', only the upper triangle or trapezoid is accessed; if uplo = 'L', only the lower triangle or trapezoid is accessed.
The leading dimension of a; lda≥ max(1, m) for column major and lda≥ max(1, n) for row major.
The leading dimension of the output array b; ldb≥ max(1, m) for column major and ldb≥ max(1, n) for row major.
Array, size at least max(1,ldb*n) for column major layout and max(1,ldb*m) for row major layout, contains the m-by-n matrix B.
On exit, B = A in the locations specified by uplo.
This function returns a value info.
If info = 0, the execution is successful.
If info < 0, the i-th parameter had an illegal value.
If info = -1011, memory allocation error occurred.