SRC/zlatdf.f(3)
πΈ SRC/zlatdf.f πΈ
okay so this page is from the Library Functions Manual, and itβs all about the file SRC/zlatdf.f and its subroutine zlatdf. Buckle up bestie, itβs giving numerical linear algebra with main character energy. π
β¨ NAME β¨
SRC/zlatdf.f
Thatβs the name, no cap. π
π SYNOPSIS π
π Functions/Subroutines π
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.
π Function/Subroutine Documentation π
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 β¨
lowkey the whole point: 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). About5times 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 matrix Z.
Z
Z is COMPLEX*16 array, dimension (LDZ, N).
On entry, the LU part of the factorization of the n-by-n matrix Z computed by ZGETC2: Z = P * L * U * Q.
LDZ
LDZ is INTEGER.
The leading dimension of the array Z. LDA >= max(1, N). Yes bestie, the original says LDA right there β we keep it exactly as written. π
RHS
RHS is COMPLEX*16 array, dimension (N).
On entry, RHS contains contributions from other subsystems. On exit, RHS contains the solution of the subsystem with entries according to the value of IJOB (see above).
RDSUM
RDSUM is DOUBLE PRECISION.
On entry, the sum of squares of computed contributions to the Dif-estimate under computation by ZTGSYL, where the scaling factor RDSCAL (see below) has been factored out. On exit, the corresponding sum of squares updated with the contributions from the current sub-system. If TRANS = 'T' RDSUM is not touched.
NOTE:RDSUMonly makes sense whenZTGSY2is called byCTGSYL.
RDSCAL
RDSCAL is DOUBLE PRECISION.
On entry, scaling factor used to prevent overflow in RDSUM. On exit, RDSCAL is updated w.r.t. the current contributions in RDSUM. If TRANS = 'T', RDSCAL is not touched.
NOTE:RDSCALonly makes sense whenZTGSY2is called byZTGSYL.
IPIV
IPIV is INTEGER array, dimension (N).
The pivot indices; for 1 <= i <= N, row i of the matrix has been interchanged with row IPIV(i).
JPIV
JPIV is INTEGER array, dimension (N).
The pivot indices; for 1 <= j <= N, column j of the matrix has been interchanged with column JPIV(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.
okay bye bestie β this iconic little page is LAPACK Version 3.12.0, source SRC/zlatdf.f(3), and thatβs the whole vibe β¨π
π«Ά
π¦ 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