LACP2 - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 English
template<typename T, typename Ta>
void lacp2(char *uplo, integer *m, integer *n, T *a, integer *lda, Ta *b, integer *ldb)#

LACP2 copies all or part of a real two-dimensional array to a complex array.

Purpose:

  LACP2 copies all or part of a real two-dimensional matrix A to a
  complex matrix B.
Parameters:
  • UPLO[in]

    UPLO is CHARACTER*1

    Specifies the part of the matrix A to be copied to B.

    = ‘U’: Upper triangular part

    = ‘L’: Lower triangular part

    Otherwise: All of the matrix A
  • M[in]

    M is INTEGER

    The number of rows of the matrix A. M >= 0.

  • N[in]

    N is INTEGER

    The number of columns of the matrix A. N >= 0.

  • A[in]

    A is REAL array, dimension (LDA,N)

    The m by n matrix A. If UPLO = ‘U’, only the upper trapezium is accessed; if UPLO = ‘L’, only the lower trapezium is accessed.

  • LDA[in]

    LDA is INTEGER

    The leading dimension of the array A. LDA >= fla_max(1,M).

  • B[out]

    B is COMPLEX array, dimension (LDB,N)

    On exit, B = A in the locations specified by UPLO.

  • LDB[in]

    LDB is INTEGER

    The leading dimension of the array B. LDB >= fla_max(1,M).