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 partOtherwise: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. IfUPLO = 'U', only the upper trapezium is accessed; ifUPLO = '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 = Ain the locations specified byUPLO.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 partOtherwise: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. IfUPLO = 'U', only the upper triangle or trapezoid is accessed; ifUPLO = '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 = Ain the locations specified byUPLO.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 partOtherwise: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. IfUPLO = 'U', only the upper triangle or trapezoid is accessed; ifUPLO = '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 = Ain the locations specified byUPLO.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 partOtherwise: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. IfUPLO = 'U', only the upper trapezium is accessed; ifUPLO = '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 = Ain the locations specified byUPLO.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
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms