latdf(3)
π latdf(3) β Library Functions Manual
okay so bestie, this page lives in the Library Functions Manual section, and it's the whole latdf girlie family: clatdf, dlatdf, slatdf, zlatdf. Same algorithm, four different precisions/types. It's giving "one brain cell, four outfits" and honestly we love that for her β¨
π NAME π
latdf β latdf: Dif-estimate with complete pivoting LU, step in tgsen
πΈ SYNOPSIS πΈ
Functions
subroutine clatdf (ijob, n, z, ldz, rhs, rdsum, rdscal, ipiv, jpiv)β CLATDF uses the LU factorization of the n-by-n matrix computed bysgetc2and computes a contribution to the reciprocal Dif-estimate.subroutine dlatdf (ijob, n, z, ldz, rhs, rdsum, rdscal, ipiv, jpiv)β DLATDF uses the LU factorization of the n-by-n matrix computed bysgetc2and computes a contribution to the reciprocal Dif-estimate.subroutine slatdf (ijob, n, z, ldz, rhs, rdsum, rdscal, ipiv, jpiv)β SLATDF uses the LU factorization of the n-by-n matrix computed bysgetc2and computes a contribution to the reciprocal Dif-estimate.subroutine zlatdf (ijob, n, z, ldz, rhs, rdsum, rdscal, ipiv, jpiv)β ZLATDF uses the LU factorization of the n-by-n matrix computed bysgetc2and computes a contribution to the reciprocal Dif-estimate.
π¦ Detailed Description π¦
Like, genuinely nothing extra here β the whole page is just the function documentation below. No lore, no backstory, just vibes and pivots π
π Function Documentation π
π clatdf π
subroutine clatdf (integer ijob, integer n, complex, dimension( ldz, * ) z,
integer ldz, complex, dimension( * ) rhs, real rdsum, real rdscal,
integer, dimension( * ) ipiv, integer, dimension( * ) jpiv)
CLATDF uses the LU factorization of the n-by-n matrix computed by sgetc2 and computes a contribution to the reciprocal Dif-estimate.
β Purpose
CLATDF computes the contribution to the reciprocal Dif-estimate by solving for x in Z * x = b, where b is chosen such that the norm of x is as large as possible. It is assumed that LU decomposition of Z has been computed by CGETC2. On entry RHS = f holds the contribution from earlier solved sub-systems, and on return RHS = x.
The factorization of Z returned by CGETC2 has the form Z = P * L * U * Q, where P and Q are permutation matrices. L is lower triangular with unit diagonal elements and U is upper triangular.
π₯ Parameters
IJOBβIJOB is INTEGER.IJOB = 2: First compute an approximative null-vectoreofZusingCGECON,eis normalized and solve forZx = +-e - fwith the sign giving the greater value of 2-norm(x). About 5 times as expensive as Default.IJOB .ne. 2: Local look ahead strategy where all entries of the r.h.s.bis chosen as either+1or-1. Default.
NβN is INTEGER. The number of columns of the matrixZ.ZβZ is COMPLEX array, dimension (LDZ, N). On entry, the LU part of the factorization of the n-by-n matrixZcomputed byCGETC2:Z = P * L * U * Q.LDZβLDZ is INTEGER. The leading dimension of the arrayZ.LDA >= max(1, N).RHSβRHS is COMPLEX array, dimension (N). On entry,RHScontains contributions from other subsystems. On exit,RHScontains the solution of the subsystem with entries according to the value ofIJOB(see above).RDSUMβRDSUM is REAL. On entry, the sum of squares of computed contributions to the Dif-estimate under computation byCTGSYL, where the scaling factorRDSCAL(see below) has been factored out. On exit, the corresponding sum of squares updated with the contributions from the current sub-system. IfTRANS = 'T'RDSUMis not touched.
NOTE:RDSUMonly makes sense whenCTGSY2is called byCTGSYL.
RDSCALβRDSCAL is REAL. On entry, scaling factor used to prevent overflow inRDSUM. On exit,RDSCALis updated w.r.t. the current contributions inRDSUM. IfTRANS = 'T',RDSCALis not touched.
NOTE:RDSCALonly makes sense whenCTGSY2is called byCTGSYL.
IPIVβIPIV is INTEGER array, dimension (N). The pivot indices; for1 <= i <= N, rowiof the matrix has been interchanged with rowIPIV(i).JPIVβJPIV is INTEGER array, dimension (N). The pivot indices; for1 <= j <= N, columnjof the matrix has been interchanged with columnJPIV(j).
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
π§ Further Details
This routine is a further developed implementation of algorithm BSOLVE in [1] using complete pivoting in the LU factorization.
π Contributors
Bo Kagstrom and Peter Poromaa, Department of Computing Science, Umea University, S-901 87 Umea, Sweden.
π References
[1] Bo Kagstrom and Lars Westin, Generalized Schur Methods with Condition Estimators for Solving the Generalized Sylvester Equation, IEEE Transactions on Automatic Control, Vol. 34, No. 7, July 1989, pp 745-751.
[2] Peter Poromaa, On Efficient and Robust Estimators for the Separation between two Regular Matrix Pairs with Applications in Condition Estimation. Report UMINF-95.05, Department of Computing Science, Umea University, S-901 87 Umea, Sweden, 1995.
Definition at line 167 of file clatdf.f.
π dlatdf π
subroutine dlatdf (integer ijob, integer n, double precision, dimension(
ldz, * ) z, integer ldz, double precision, dimension( * ) rhs, double
precision rdsum, double precision rdscal, integer, dimension( * ) ipiv,
integer, dimension( * ) jpiv)
DLATDF uses the LU factorization of the n-by-n matrix computed by sgetc2 and computes a contribution to the reciprocal Dif-estimate.
β Purpose
DLATDF uses the LU factorization of the n-by-n matrix Z computed by DGETC2 and computes a contribution to the reciprocal Dif-estimate by solving Z * x = b for x, and choosing the r.h.s. b such that the norm of x is as large as possible. On entry RHS = b holds the contribution from earlier solved sub-systems, and on return RHS = x.
The factorization of Z returned by DGETC2 has the form Z = P*L*U*Q, where P and Q are permutation matrices. L is lower triangular with unit diagonal elements and U is upper triangular.
π₯ Parameters
IJOBβIJOB is INTEGER.IJOB = 2: First compute an approximative null-vectoreofZusingDGECON,eis normalized and solve forZx = +-e - fwith the sign giving the greater value of 2-norm(x). About 5 times as expensive as Default.IJOB .ne. 2: Local look ahead strategy where all entries of the r.h.s.bis chosen as either+1or-1(Default).
NβN is INTEGER. The number of columns of the matrixZ.ZβZ is DOUBLE PRECISION array, dimension (LDZ, N). On entry, the LU part of the factorization of the n-by-n matrixZcomputed byDGETC2:Z = P * L * U * Q.LDZβLDZ is INTEGER. The leading dimension of the arrayZ.LDA >= max(1, N).RHSβRHS is DOUBLE PRECISION array, dimension (N). On entry,RHScontains contributions from other subsystems. On exit,RHScontains the solution of the subsystem with entries according to the value ofIJOB(see above).RDSUMβRDSUM is DOUBLE PRECISION. On entry, the sum of squares of computed contributions to the Dif-estimate under computation byDTGSYL, where the scaling factorRDSCAL(see below) has been factored out. On exit, the corresponding sum of squares updated with the contributions from the current sub-system. IfTRANS = 'T'RDSUMis not touched.
NOTE:RDSUMonly makes sense whenDTGSY2is called bySTGSYL.
RDSCALβRDSCAL is DOUBLE PRECISION. On entry, scaling factor used to prevent overflow inRDSUM. On exit,RDSCALis updated w.r.t. the current contributions inRDSUM. IfTRANS = 'T',RDSCALis not touched.
NOTE:RDSCALonly makes sense whenDTGSY2is called byDTGSYL.
IPIVβIPIV is INTEGER array, dimension (N). The pivot indices; for1 <= i <= N, rowiof the matrix has been interchanged with rowIPIV(i).JPIVβJPIV is INTEGER array, dimension (N). The pivot indices; for1 <= j <= N, columnjof the matrix has been interchanged with columnJPIV(j).
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
π§ Further Details
This routine is a further developed implementation of algorithm BSOLVE in [1] using complete pivoting in the LU factorization.
π Contributors
Bo Kagstrom and Peter Poromaa, Department of Computing Science, Umea University, S-901 87 Umea, Sweden.
π References
[1] Bo Kagstrom and Lars Westin, Generalized Schur Methods with Condition Estimators for Solving the Generalized Sylvester Equation, IEEE Transactions on Automatic Control, Vol. 34, No. 7, July 1989, pp 745-751.
[2] Peter Poromaa, On Efficient and Robust Estimators for the Separation between two Regular Matrix Pairs with Applications in Condition Estimation. Report IMINF-95.05, Departement of Computing Science, Umea University, S-901 87 Umea, Sweden, 1995.
Definition at line 169 of file dlatdf.f.
β¨ slatdf β¨
subroutine slatdf (integer ijob, integer n, real, dimension( ldz, * ) z,
integer ldz, real, dimension( * ) rhs, real rdsum, real rdscal, integer,
dimension( * ) ipiv, integer, dimension( * ) jpiv)
SLATDF uses the LU factorization of the n-by-n matrix computed by sgetc2 and computes a contribution to the reciprocal Dif-estimate.
(bestie the slatdf purpose + params are literally right there in part 2, hold on π
)
SLATDF literally uses the LU factorization of the n-by-n matrix Z computed by SGETC2, and it computes a contribution to the reciprocal Dif-estimate by solving Z * x = b for x, and choosing the r.h.s. b such that the norm of x is as large as possible. On entry RHS = b holds the contribution from earlier solved sub-systems, and on return RHS = x. Periodt. π
The factorization of Z returned by SGETC2 has the form Z = P*L*U*Q, where P and Q are permutation matrices. L is lower triangular with unit diagonal elements and U is upper triangular. Iconic. β¨
π Parameters π
IJOBβIJOB is INTEGER.IJOB = 2: First compute an approximative null-vectoreofZusingSGECON;eis normalized and solve forZx = +-e - fwith the sign giving the greater value of2-norm(x). About 5 times as expensive as Default. πIJOB .ne. 2: Local look ahead strategy where all entries of the r.h.s.bis chosen as either+1or-1(Default). Slay.
NβN is INTEGER. The number of columns of the matrixZ.ZβZ is REAL array, dimension (LDZ, N). On entry, the LU part of the factorization of the n-by-n matrixZcomputed bySGETC2:Z = P * L * U * Q.LDZβLDZ is INTEGER. The leading dimension of the arrayZ.LDA >= max(1, N).RHSβRHS is REAL array, dimension N.On entry,RHScontains contributions from other subsystems. On exit,RHScontains the solution of the subsystem with entries according to the value ofIJOB(see above).RDSUMβRDSUM is REAL. On entry, the sum of squares of computed contributions to the Dif-estimate under computation bySTGSYL, where the scaling factorRDSCAL(see below) has been factored out. On exit, the corresponding sum of squares updated with the contributions from the current sub-system. IfTRANS = 'T'RDSUMis not touched. NOTE:RDSUMonly makes sense whenSTGSY2is called bySTGSYL.RDSCALβRDSCAL is REAL. On entry, scaling factor used to prevent overflow inRDSUM. On exit,RDSCALis updated w.r.t. the current contributions inRDSUM. IfTRANS = 'T',RDSCALis not touched. NOTE:RDSCALonly makes sense whenSTGSY2is called bySTGSYL.IPIVβIPIV is INTEGER array, dimension (N).The pivot indices; for1 <= i <= N, rowiof the matrix has been interchanged with rowIPIV(i).JPIVβJPIV is INTEGER array, dimension (N).The pivot indices; for1 <= j <= N, columnjof the matrix has been interchanged with columnJPIV(j).
π Author π
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
β¨ Further Details β¨
This routine is a further developed implementation of algorithm BSOLVE in [1] using complete pivoting in the LU factorization.
π«Ά Contributors π«Ά
Bo Kagstrom and Peter Poromaa, Department of Computing Science, Umea University, S-901 87 Umea, Sweden.
π References π
[1] Bo Kagstrom and Lars Westin, Generalized Schur Methods with Condition Estimators for Solving the Generalized Sylvester Equation, IEEE Transactions on Automatic Control, Vol. 34, No. 7, July 1989, pp 745-751.
[2] Peter Poromaa, On Efficient and Robust Estimators for the Separation between two Regular Matrix Pairs with Applications in Condition Estimation. Report IMINF-95.05, Departement of Computing Science, Umea University, S-901 87 Umea, Sweden, 1995.
Definition at line 169 of file slatdf.f.
π¦ subroutine zlatdf π¦
subroutine zlatdf (integer ijob, integer n, complex*16, dimension( ldz, * )
z, integer ldz, complex*16, dimension( * ) rhs, double precision rdsum,
double precision rdscal, integer, dimension( * ) ipiv, integer,
dimension( * ) jpiv)
ZLATDF uses the LU factorization of the n-by-n matrix computed by sgetc2 and computes a contribution to the reciprocal Dif-estimate. π
β¨ Purpose β¨
ZLATDF computes the contribution to the reciprocal Dif-estimate by solving for x in Z * x = b, where b is chosen such that the norm of x is as large as possible. It is assumed that LU decomposition of Z has been computed by ZGETC2. On entry RHS = f holds the contribution from earlier solved sub-systems, and on return RHS = x.
The factorization of Z returned by ZGETC2 has the form Z = P * L * U * Q, where P and Q are permutation matrices. L is lower triangular with unit diagonal elements and U is upper triangular.
π Parameters π
IJOBβIJOB is INTEGER.IJOB = 2: First compute an approximative null-vectoreofZusingZGECON;eis normalized and solve forZx = +-e - fwith the sign giving the greater value of2-norm(x). About 5 times as expensive as Default. πIJOB .ne. 2: Local look ahead strategy where all entries of the r.h.s.bis chosen as either+1or-1. Default. Slay.
NβN is INTEGER. The number of columns of the matrixZ.ZβZ is COMPLEX*16 array, dimension (LDZ, N). On entry, the LU part of the factorization of the n-by-n matrixZcomputed byZGETC2:Z = P * L * U * Q.LDZβLDZ is INTEGER. The leading dimension of the arrayZ.LDA >= max(1, N).RHSβRHS is COMPLEX*16 array, dimension (N).On entry,RHScontains contributions from other subsystems. On exit,RHScontains the solution of the subsystem with entries according to the value ofIJOB(see above).RDSUMβRDSUM is DOUBLE PRECISION. On entry, the sum of squares of computed contributions to the Dif-estimate under computation byZTGSYL, where the scaling factorRDSCAL(see below) has been factored out. On exit, the corresponding sum of squares updated with the contributions from the current sub-system. IfTRANS = 'T'RDSUMis not touched. NOTE:RDSUMonly makes sense whenZTGSY2is called byCTGSYL.RDSCALβRDSCAL is DOUBLE PRECISION. On entry, scaling factor used to prevent overflow inRDSUM. On exit,RDSCALis updated w.r.t. the current contributions inRDSUM. IfTRANS = 'T',RDSCALis not touched. NOTE:RDSCALonly makes sense whenZTGSY2is called byZTGSYL.IPIVβIPIV is INTEGER array, dimension (N).The pivot indices; for1 <= i <= N, rowiof the matrix has been interchanged with rowIPIV(i).JPIVβJPIV is INTEGER array, dimension (N).The pivot indices; for1 <= j <= N, columnjof the matrix has been interchanged with columnJPIV(j).
π Author π
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
β¨ Further Details β¨
This routine is a further developed implementation of algorithm BSOLVE in [1] using complete pivoting in the LU factorization.
π«Ά Contributors π«Ά
Bo Kagstrom and Peter Poromaa, Department of Computing Science, Umea University, S-901 87 Umea, Sweden.
π References π
[1] Bo Kagstrom and Lars Westin, Generalized Schur Methods with Condition Estimators for Solving the Generalized Sylvester Equation, IEEE Transactions on Automatic Control, Vol. 34, No. 7, July 1989, pp 745-751.
[2] Peter Poromaa, On Efficient and Robust Estimators for the Separation between two Regular Matrix Pairs with Applications in Condition Estimation. Report UMINF-95.05, Department of Computing Science, Umea University, S-901 87 Umea, Sweden, 1995.
Definition at line 167 of file zlatdf.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Generated automatically by Doxygen for LAPACK from the source code β LAPACK Version 3.12.0, latdf(3). Thatβs the whole page, bestie. π β¨
π¦ 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