lacpy(3)

πŸ’… lacpy(3) β€” copy matrix, bestie πŸ’…

okay so welcome to the lacpy(3) page from the Library Functions Manual. This is the LAPACK corner where four subroutines β€” clacpy, dlacpy, slacpy, and zlacpy β€” all do the copy-matrix thing in different precisions/types. It's giving "same fit, different colorway," and honestly? iconic. ✨


πŸŽ€ NAME πŸŽ€

lacpy β€” lacpy: copy matrix πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

🌸 Functions 🌸

  • subroutine clacpy (uplo, m, n, a, lda, b, ldb) β€” CLACPY copies all or part of one two-dimensional array to another.
  • subroutine dlacpy (uplo, m, n, a, lda, b, ldb) β€” DLACPY copies all or part of one two-dimensional array to another.
  • subroutine slacpy (uplo, m, n, a, lda, b, ldb) β€” SLACPY copies all or part of one two-dimensional array to another.
  • subroutine zlacpy (uplo, m, n, a, lda, b, ldb) β€” ZLACPY copies all or part of one two-dimensional array to another.

πŸ’« Detailed Description πŸ’«

The original page has this heading but doesn't put any extra tea under it, so bestie, we're not inventing any. The actual details are in Function Documentation right below. πŸ‘‡

πŸ”₯ Function Documentation πŸ”₯

πŸ’– clacpy β€” complex copy energy πŸ’–

subroutine clacpy (character uplo, integer m, integer n, complex, dimension(
       lda, * ) a, integer lda, complex, dimension( ldb, * ) b, integer ldb)

CLACPY copies all or part of one two-dimensional array to another. 🫢

🎯 Purpose

CLACPY copies all or part of a two-dimensional matrix A to another matrix B.

🌈 Parameters 🌈

  • UPLO β€” 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 β€” M is INTEGER. The number of rows of the matrix A. M >= 0.
  • N β€” N is INTEGER. The number of columns of the matrix A. N >= 0.
  • A β€” A is COMPLEX 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 β€” LDA is INTEGER. The leading dimension of the array A. LDA >= max(1,M).
  • B β€” B is COMPLEX array, dimension (LDB,N). On exit, B = A in the locations specified by UPLO.
  • LDB β€” LDB is INTEGER. The leading dimension of the array B. LDB >= max(1,M).

πŸ‘‘ Author πŸ‘‘

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Definition at line 102 of file clacpy.f. πŸ“Œ


πŸ¦‹ dlacpy β€” double-precision copy moment πŸ¦‹

subroutine dlacpy (character uplo, integer m, integer n, double precision,
       dimension( lda, * ) a, integer lda, double precision, dimension( ldb, *
       ) b, integer ldb)

DLACPY copies all or part of one two-dimensional array to another. πŸ’œ

🎯 Purpose

DLACPY copies all or part of a two-dimensional matrix A to another matrix B.

🌈 Parameters 🌈

  • UPLO β€” 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 β€” M is INTEGER. The number of rows of the matrix A. M >= 0.
  • N β€” N is INTEGER. The number of columns of the matrix A. N >= 0.
  • A β€” A is DOUBLE PRECISION array, dimension (LDA,N). 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.
  • LDA β€” LDA is INTEGER. The leading dimension of the array A. LDA >= max(1,M).
  • B β€” B is DOUBLE PRECISION array, dimension (LDB,N). On exit, B = A in the locations specified by UPLO.
  • LDB β€” LDB is INTEGER. The leading dimension of the array B. LDB >= max(1,M).

πŸ‘‘ Author πŸ‘‘

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Definition at line 102 of file dlacpy.f. πŸ“Œ


🌸 slacpy β€” real-copy slay 🌸

subroutine slacpy (character uplo, integer m, integer n, real, dimension(
       lda, * ) a, integer lda, real, dimension( ldb, * ) b, integer ldb)

SLACPY copies all or part of one two-dimensional array to another. πŸŽ€

🎯 Purpose

SLACPY copies all or part of a two-dimensional matrix A to another matrix B.

🌈 Parameters 🌈

  • UPLO β€” 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 β€” M is INTEGER. The number of rows of the matrix A. M >= 0.
  • N β€” N is INTEGER. The number of columns of the matrix A. N >= 0.
  • A β€” A is REAL array, dimension (LDA,N). 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.
  • LDA β€” LDA is INTEGER. The leading dimension of the array A. LDA >= max(1,M).
  • B β€” B is REAL array, dimension (LDB,N). On exit, B = A in the locations specified by UPLO.
  • LDB β€” LDB is INTEGER. The leading dimension of the array B. LDB >= max(1,M).

πŸ‘‘ Author πŸ‘‘

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Definition at line 102 of file slacpy.f. πŸ“Œ


⭐ zlacpy β€” complex*16 copy royalty ⭐

subroutine zlacpy (character uplo, integer m, integer n, complex*16,
       dimension( lda, * ) a, integer lda, complex*16, dimension( ldb, * ) b,
       integer ldb)

ZLACPY copies all or part of one two-dimensional array to another. πŸ‘‘

🎯 Purpose

ZLACPY copies all or part of a two-dimensional matrix A to another matrix B.

🌈 Parameters 🌈

  • UPLO β€” 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 β€” M is INTEGER. The number of rows of the matrix A. M >= 0.
  • N β€” N is INTEGER. The number of columns of the matrix A. N >= 0.
  • A β€” A is COMPLEX*16 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 β€” LDA is INTEGER. The leading dimension of the array A. LDA >= max(1,M).
  • B β€” B is COMPLEX*16 array, dimension (LDB,N). On exit, B = A in the locations specified by UPLO.
  • LDB β€” LDB is INTEGER. The leading dimension of the array B. LDB >= max(1,M).

πŸ‘‘ Author πŸ‘‘

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Definition at line 102 of file zlacpy.f. πŸ“Œ


🌟 Author 🌟

Generated automatically by Doxygen for LAPACK from the source code. πŸ€–


And that's the page, bestie! Source/version: LAPACK Version 3.12.0. Manual: lacpy(3). Date: the footer doesn't print one here, so I'm not making one up. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from