complex16GBcomputational(3)
π complex16GBcomputational (3) β LAPACK π
okay so bestie, you've wandered into the band-matrix corner of LAPACK and honestly? it's a whole vibe π
β¨ NAME β¨
complex16GBcomputational β complex16
πΈ SYNOPSIS πΈ
Functions
zgbbrdβZGBBRD
subroutine zgbbrd (VECT, M, N, NCC, KL, KU, AB, LDAB, D, E, Q, LDQ, PT,
LDPT, C, LDC, WORK, RWORK, INFO)
zgbconβZGBCON
subroutine zgbcon (NORM, N, KL, KU, AB, LDAB, IPIV, ANORM, RCOND, WORK,
RWORK, INFO)
zgbequβZGBEQU
subroutine zgbequ (M, N, KL, KU, AB, LDAB, R, C, ROWCND, COLCND, AMAX,
INFO)
zgbequbβZGBEQUB
subroutine zgbequb (M, N, KL, KU, AB, LDAB, R, C, ROWCND, COLCND, AMAX,
INFO)
zgbrfsβZGBRFS
subroutine zgbrfs (TRANS, N, KL, KU, NRHS, AB, LDAB, AFB, LDAFB, IPIV,
B, LDB, X, LDX, FERR, BERR, WORK, RWORK, INFO)
zgbrfsxβZGBRFSX
subroutine zgbrfsx (TRANS, EQUED, N, KL, KU, NRHS, AB, LDAB, AFB, LDAFB,
IPIV, R, C, B, LDB, X, LDX, RCOND, BERR, N_ERR_BNDS, ERR_BNDS_NORM,
ERR_BNDS_COMP, NPARAMS, PARAMS, WORK, RWORK, INFO)
zgbtf2βZGBTF2computes the LU factorization of a general band matrix using the unblocked version of the algorithm. no blocking, just raw unblocked energy β¨
subroutine zgbtf2 (M, N, KL, KU, AB, LDAB, IPIV, INFO)
zgbtrfβZGBTRF
subroutine zgbtrf (M, N, KL, KU, AB, LDAB, IPIV, INFO)
zgbtrsβZGBTRS
subroutine zgbtrs (TRANS, N, KL, KU, NRHS, AB, LDAB, IPIV, B, LDB, INFO)
zggbakβZGGBAK
subroutine zggbak (JOB, SIDE, N, ILO, IHI, LSCALE, RSCALE, M, V, LDV,
INFO)
zggbalβZGGBAL
subroutine zggbal (JOB, N, A, LDA, B, LDB, ILO, IHI, LSCALE, RSCALE,
WORK, INFO)
zla_gbamvβZLA_GBAMVperforms a matrix-vector operation to calculate error bounds. it's giving "i'm here to do math for error bounds" π
subroutine zla_gbamv (TRANS, M, N, KL, KU, ALPHA, AB, LDAB, X, INCX,
BETA, Y, INCY)
zla_gbrcond_cβZLA_GBRCOND_Ccomputes the infinity norm condition number ofop(A)*inv(diag(c))for general banded matrices.
double precision function zla_gbrcond_c (TRANS, N, KL, KU, AB, LDAB,
AFB, LDAFB, IPIV, C, CAPPLY, INFO, WORK, RWORK)
zla_gbrcond_xβZLA_GBRCOND_Xcomputes the infinity norm condition number ofop(A)*diag(x)for general banded matrices.
double precision function zla_gbrcond_x (TRANS, N, KL, KU, AB, LDAB,
AFB, LDAFB, IPIV, X, INFO, WORK, RWORK)
zla_gbrfsx_extendedβZLA_GBRFSX_EXTENDEDimproves the computed solution to a system of linear equations for general banded matrices by performing extra-precise iterative refinement and provides error bounds and backward error estimates for the solution. extra precise. extra refined. extra everything π
subroutine zla_gbrfsx_extended (PREC_TYPE, TRANS_TYPE, N, KL, KU, NRHS,
AB, LDAB, AFB, LDAFB, IPIV, COLEQU, C, B, LDB, Y, LDY, BERR_OUT,
N_NORMS, ERR_BNDS_NORM, ERR_BNDS_COMP, RES, AYB, DY, Y_TAIL, RCOND,
ITHRESH, RTHRESH, DZ_UB, IGNORE_CWISE, INFO)
zla_gbrpvgrwβZLA_GBRPVGRWcomputes the reciprocal pivot growth factornorm(A)/norm(U)for a general banded matrix.
double precision function zla_gbrpvgrw (N, KL, KU, NCOLS, AB, LDAB, AFB,
LDAFB)
zungbrβZUNGBR
subroutine zungbr (VECT, M, N, K, A, LDA, TAU, WORK, LWORK, INFO)
π¦ DETAILED DESCRIPTION π¦
This is the group of complex16 computational functions for GB matrices β¨ (GB = general band, iykyk)
π FUNCTION DOCUMENTATION π
π
subroutine zgbbrd
subroutine zgbbrd (character VECT, integer M, integer N, integer NCC,
integer KL, integer KU, complex*16, dimension( ldab, * ) AB, integer
LDAB, double precision, dimension( * ) D, double precision, dimension( *
) E, complex*16, dimension( ldq, * ) Q, integer LDQ, complex*16,
dimension( ldpt, * ) PT, integer LDPT, complex*16, dimension( ldc, * )
C, integer LDC, complex*16, dimension( * ) WORK, double precision,
dimension( * ) RWORK, integer INFO)
ZGBBRD
Purpose
ZGBBRD reduces a complex general m-by-n band matrix A to real upper bidiagonal form B by a unitary transformation: Q**H * A * P = B. literally transforming your whole matrix into something slimmer, periodt π
The routine computes B, and optionally forms Q or P**H, or computes Q**H*C for a given matrix C.
Parameters
VECTβVECTisCHARACTER*1. Specifies whether or not the matricesQandP**Hare to be formed.= 'N': do not formQorP**H;= 'Q': formQonly;= 'P': formP**Honly;= 'B': form both.
MβMisINTEGER. The number of rows of the matrixA.M >= 0.NβNisINTEGER. The number of columns of the matrixA.N >= 0.NCCβNCCisINTEGER. The number of columns of the matrixC.NCC >= 0.KLβKLisINTEGER. The number of subdiagonals of the matrixA.KL >= 0.KUβKUisINTEGER. The number of superdiagonals of the matrixA.KU >= 0.ABβABisCOMPLEX*16array, dimension(LDAB,N). On entry, the m-by-n band matrixA, stored in rows 1 toKL+KU+1. The j-th column ofAis stored in the j-th column of the arrayABas follows:
AB(ku+1+i-j,j) = A(i,j) for max(1,j-ku)<=i<=min(m,j+kl).
On exit, A is overwritten by values generated during the reduction.
LDABβLDABisINTEGER. The leading dimension of the arrayA.LDAB >= KL+KU+1.DβDisDOUBLE PRECISIONarray, dimension(min(M,N)). The diagonal elements of the bidiagonal matrixB.EβEisDOUBLE PRECISIONarray, dimension(min(M,N)-1). The superdiagonal elements of the bidiagonal matrixB.QβQisCOMPLEX*16array, dimension(LDQ,M). IfVECT = 'Q'or'B', the m-by-m unitary matrixQ. IfVECT = 'N'or'P', the arrayQis not referenced.LDQβLDQisINTEGER. The leading dimension of the arrayQ.LDQ >= max(1,M)ifVECT = 'Q'or'B';LDQ >= 1otherwise.PTβPTisCOMPLEX*16array, dimension(LDPT,N). IfVECT = 'P'or'B', the n-by-n unitary matrixP'. IfVECT = 'N'or'Q', the arrayPTis not referenced.LDPTβLDPTisINTEGER. The leading dimension of the arrayPT.LDPT >= max(1,N)ifVECT = 'P'or'B';LDPT >= 1otherwise.CβCisCOMPLEX*16array, dimension(LDC,NCC). On entry, an m-by-ncc matrixC. On exit,Cis overwritten byQ**H*C.Cis not referenced ifNCC = 0.LDCβLDCisINTEGER. The leading dimension of the arrayC.LDC >= max(1,M)ifNCC > 0;LDC >= 1ifNCC = 0.WORKβWORKisCOMPLEX*16array, dimension(max(M,N))RWORKβRWORKisDOUBLE PRECISIONarray, dimension(max(M,N))INFOβINFOisINTEGER= 0: successful exit.< 0: ifINFO = -i, the i-th argument had an illegal value.
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
π
subroutine zgbcon
subroutine zgbcon (character NORM, integer N, integer KL, integer KU,
complex*16, dimension( ldab, * ) AB, integer LDAB, integer, dimension( *
) IPIV, double precision ANORM, double precision RCOND, complex*16,
dimension( * ) WORK, double precision, dimension( * ) RWORK, integer
INFO)
ZGBCON
Purpose
ZGBCON estimates the reciprocal of the condition number of a complex general band matrix A, in either the 1-norm or the infinity-norm, using the LU factorization computed by ZGBTRF. it's the vibe check for how sketchy your matrix is π
An estimate is obtained for norm(inv(A)), and the reciprocal of the condition number is computed as
RCOND = 1 / ( norm(A) * norm(inv(A)) ).
Parameters
NORMβNORMisCHARACTER*1. Specifies whether the 1-norm condition number or the infinity-norm condition number is required:= '1'or'O': 1-norm;= 'I': Infinity-norm.
NβNisINTEGER. The order of the matrixA.N >= 0.KLβKLisINTEGER. The number of subdiagonals within the band ofA.KL >= 0.KUβKUisINTEGER. The number of superdiagonals within the band ofA.KU >= 0.ABβABisCOMPLEX*16array, dimension(LDAB,N). Details of the LU factorization of the band matrixA, as computed byZGBTRF.Uis stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows 1 toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1.LDABβLDABisINTEGER. The leading dimension of the arrayAB.LDAB >= 2*KL+KU+1.IPIVβIPIVisINTEGERarray, dimension(N). The pivot indices; for1 <= i <= N, row i of the matrix was interchanged with rowIPIV(i).ANORMβANORMisDOUBLE PRECISION. IfNORM = '1'or'O', the 1-norm of the original matrixA. IfNORM = 'I', the infinity-norm of the original matrixA.RCONDβRCONDisDOUBLE PRECISION. The reciprocal of the condition number of the matrixA, computed asRCOND = 1/(norm(A) * norm(inv(A))).WORKβWORKisCOMPLEX*16array, dimension(2*N)RWORKβRWORKisDOUBLE PRECISIONarray, dimension(N)INFOβINFOisINTEGER= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
π
subroutine zgbequ
subroutine zgbequ (integer M, integer N, integer KL, integer KU, complex*16,
dimension( ldab, * ) AB, integer LDAB, double precision, dimension( * )
R, double precision, dimension( * ) C, double precision ROWCND, double
precision COLCND, double precision AMAX, integer INFO)
ZGBEQU
Purpose
ZGBEQU computes row and column scalings intended to equilibrate an M-by-N band matrix A and reduce its condition number. R returns the row scale factors and C the column scale factors, chosen to try to make the largest element in each row and column of the matrix B with elements B(i,j)=R(i)*A(i,j)*C(j) have absolute value 1. balancing your matrix so nothing is screaming louder than everything else β¨
R(i) and C(j) are restricted to be between SMLNUM = smallest safe number and BIGNUM = largest safe number. Use of these scaling factors is not guaranteed to reduce the condition number of A but works well in practice.
Parameters
Mβ β¦Mβ INTEGER. The number of rows of the matrixA.M >= 0. (no negative rows bestie, that's not a thing π)Nβ INTEGER. The number of columns of the matrixA.N >= 0.KLβ INTEGER. The number of subdiagonals within the band ofA.KL >= 0.KUβ INTEGER. The number of superdiagonals within the band ofA.KU >= 0.ABβ COMPLEX*16 array, dimension (LDAB,N). The band matrixA, stored in rows 1 toKL+KU+1. The j-th column ofAis stored in the j-th column of the arrayABas follows:
AB(ku+1+i-j,j) = A(i,j) for max(1,j-ku)<=i<=min(m,j+kl).
LDABβ INTEGER. The leading dimension of the arrayAB.LDAB >= KL+KU+1. (respect the leading dimension, she's sensitive β¨)Rβ DOUBLE PRECISION array, dimension (M). IfINFO = 0, orINFO > M,Rcontains the row scale factors forA.Cβ DOUBLE PRECISION array, dimension (N). IfINFO = 0,Ccontains the column scale factors forA.ROWCNDβ DOUBLE PRECISION. IfINFO = 0orINFO > M,ROWCNDcontains the ratio of the smallestR(i)to the largestR(i). IfROWCND >= 0.1andAMAXis neither too large nor too small, it is not worth scaling byR.COLCNDβ DOUBLE PRECISION. IfINFO = 0,COLCNDcontains the ratio of the smallestC(i)to the largestC(i). IfCOLCND >= 0.1, it is not worth scaling byC.AMAXβ DOUBLE PRECISION. Absolute value of largest matrix element. IfAMAXis very close to overflow or very close to underflow, the matrix should be scaled. (overflow and underflow are the two toxic exes of floating point, we do not let them in the group chat π)INFOβ INTEGER:= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value> 0: ifINFO = i, and i is<= M: the i-th row ofAis exactly zero> M: the (i-M)-th column ofAis exactly zero
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
π
subroutine zgbequb (integer M, integer N, integer KL, integer KU, complex*16, dimension( ldab, * ) AB, integer LDAB, double precision, dimension( * ) R, double precision, dimension( * ) C, double precision ROWCND, double precision COLCND, double precision AMAX, integer INFO)
ZGBEQUB
β¨ Purpose:
ZGBEQUB computes row and column scalings intended to equilibrate an M-by-N matrix A and reduce its condition number. R returns the row scale factors and C the column scale factors, chosen to try to make the largest element in each row and column of the matrix B with elements B(i,j)=R(i)*A(i,j)*C(j) have an absolute value of at most the radix. β¨ glow-up for your matrix, no cap β¨
R(i) and C(j) are restricted to be a power of the radix between SMLNUM = smallest safe number and BIGNUM = largest safe number. Use of these scaling factors is not guaranteed to reduce the condition number of A but works well in practice.
This routine differs from ZGEEQU by restricting the scaling factors to a power of the radix. Barring over- and underflow, scaling by these factors introduces no additional rounding errors. However, the scaled entries' magnitudes are no longer approximately 1 but lie between sqrt(radix) and 1/sqrt(radix). (she's giving "still cute, just different vibe" π¦)
πΈ Parameters
Mβ INTEGER. The number of rows of the matrixA.M >= 0.Nβ INTEGER. The number of columns of the matrixA.N >= 0.KLβ INTEGER. The number of subdiagonals within the band ofA.KL >= 0.KUβ INTEGER. The number of superdiagonals within the band ofA.KU >= 0.ABβ COMPLEX*16 array, dimension (LDAB,N). On entry, the matrixAin band storage, in rows 1 toKL+KU+1. The j-th column ofAis stored in the j-th column of the arrayABas follows:
AB(KU+1+i-j,j) = A(i,j) for max(1,j-KU)<=i<=min(N,j+kl)
LDABβ INTEGER. The leading dimension of the arrayA.LDAB >= max(1,M).Rβ DOUBLE PRECISION array, dimension (M). IfINFO = 0orINFO > M,Rcontains the row scale factors forA.Cβ DOUBLE PRECISION array, dimension (N). IfINFO = 0,Ccontains the column scale factors forA.ROWCNDβ DOUBLE PRECISION. IfINFO = 0orINFO > M,ROWCNDcontains the ratio of the smallestR(i)to the largestR(i). IfROWCND >= 0.1andAMAXis neither too large nor too small, it is not worth scaling byR.COLCNDβ DOUBLE PRECISION. IfINFO = 0,COLCNDcontains the ratio of the smallestC(i)to the largestC(i). IfCOLCND >= 0.1, it is not worth scaling byC.AMAXβ DOUBLE PRECISION. Absolute value of largest matrix element. IfAMAXis very close to overflow or very close to underflow, the matrix should be scaled.INFOβ INTEGER:= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value> 0: ifINFO = i, and i is<= M: the i-th row ofAis exactly zero> M: the (i-M)-th column ofAis exactly zero
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
π
subroutine zgbrfs (character TRANS, integer N, integer KL, integer KU, integer NRHS, complex*16, dimension( ldab, * ) AB, integer LDAB, complex*16, dimension( ldafb, * ) AFB, integer LDAFB, integer, dimension( * ) IPIV, complex*16, dimension( ldb, * ) B, integer LDB, complex*16, dimension( ldx, * ) X, integer LDX, double precision, dimension( * ) FERR, double precision, dimension( * ) BERR, complex*16, dimension( * ) WORK, double precision, dimension( * ) RWORK, integer INFO)
ZGBRFS
β¨ Purpose:
ZGBRFS improves the computed solution to a system of linear equations when the coefficient matrix is banded, and provides error bounds and backward error estimates for the solution. (she's the "let me double check that for you bestie" friend and honestly we stan π)
πΈ Parameters
TRANSβ CHARACTER*1. Specifies the form of the system of equations:= 'N':A * X = B(No transpose)= 'T':A**T * X = B(Transpose)= 'C':A**H * X = B(Conjugate transpose)
Nβ INTEGER. The order of the matrixA.N >= 0.KLβ INTEGER. The number of subdiagonals within the band ofA.KL >= 0.KUβ INTEGER. The number of superdiagonals within the band ofA.KU >= 0.NRHSβ INTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.ABβ COMPLEX*16 array, dimension (LDAB,N). The original band matrixA, stored in rows 1 toKL+KU+1. The j-th column ofAis stored in the j-th column of the arrayABas follows:
AB(ku+1+i-j,j) = A(i,j) for max(1,j-ku)<=i<=min(n,j+kl).
LDABβ INTEGER. The leading dimension of the arrayAB.LDAB >= KL+KU+1.AFBβ COMPLEX*16 array, dimension (LDAFB,N). Details of the LU factorization of the band matrixA, as computed byZGBTRF.Uis stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows 1 toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1.LDAFBβ INTEGER. The leading dimension of the arrayAFB.LDAFB >= 2*KL*KU+1.IPIVβ INTEGER array, dimension (N). The pivot indices fromZGBTRF; for1<=i<=N, row i of the matrix was interchanged with rowIPIV(i). (yes queen, we swapped those rows, it's called pivoting and it's iconic π)Bβ COMPLEX*16 array, dimension (LDB,NRHS). The right hand side matrixB.LDBβ INTEGER. The leading dimension of the arrayB.LDB >= max(1,N).Xβ COMPLEX*16 array, dimension (LDX,NRHS). On entry, the solution matrixX, as computed byZGBTRS. On exit, the improved solution matrixX. (she came in mid, she's leaving upgraded π )LDXβ INTEGER. The leading dimension of the arrayX.LDX >= max(1,N).FERRβ DOUBLE PRECISION array, dimension (NRHS). The estimated forward error bound for each solution vectorX(j)(the j-th column of the solution matrixX). IfXTRUEis the true solution corresponding toX(j),FERR(j)is an estimated upper bound for the magnitude of the largest element in(X(j) - XTRUE)divided by the magnitude of the largest element inX(j). The estimate is as reliable as the estimate forRCOND, and is almost always a slight overestimate of the true error. (she's dramatic, she rounds up, but she's never lying to you fr fr)BERRβ DOUBLE PRECISION array, dimension (NRHS). The componentwise relative backward error of each solution vectorX(j)(i.e., the smallest relative change in any element ofAorBthat makesX(j)an exact solution).WORKβ COMPLEX*16 array, dimension (2*N)RWORKβ DOUBLE PRECISION array, dimension (N)INFOβ INTEGER:= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value
π₯ Internal Parameters:
ITMAX is the maximum number of steps of iterative refinement.
Not a parameter you pass in, bestie β it's internal. She handles her own business. π
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
subroutine zgbrfsx π
okay bestie, here's the whole glow-up β signature first, no edits, no cap:
subroutine zgbrfsx (character TRANS, character EQUED, integer N, integer KL,
integer KU, integer NRHS, complex*16, dimension( ldab, * ) AB, integer
LDAB, complex*16, dimension( ldafb, * ) AFB, integer LDAFB, integer,
dimension( * ) IPIV, double precision, dimension( * ) R, double
precision, dimension( * ) C, complex*16, dimension( ldb, * ) B, integer
LDB, complex*16, dimension( ldx , * ) X, integer LDX, double precision
RCOND, double precision, dimension( * ) BERR, integer N_ERR_BNDS, double
precision, dimension( nrhs, * ) ERR_BNDS_NORM, double precision,
dimension( nrhs, * ) ERR_BNDS_COMP, integer NPARAMS, double precision,
dimension( * ) PARAMS, complex*16, dimension( * ) WORK, double
precision, dimension( * ) RWORK, integer INFO)
ZGBRFSX
Purpose β¨
So what does ZGBRFSX actually do, you ask? It takes your computed solution to a system of linear equations and levels it up β plus it hands you error bounds and backward error estimates for that solution. And not just the normwise error bound either: this one gives you the maximum componentwise error bound too, if it can. The deets on all those bounds live in the comments for ERR_BNDS_NORM and ERR_BNDS_COMP. π
Heads up though: your original system of linear equations might have already been equilibrated before you called this routine β that's exactly what the EQUED, R and C arguments are telling you about. And if that happened? The solution and error bounds that come back are for the original, unequilibrated system. Periodt.
Also, a lil bundle of optional parameters is hanging out inside the PARAMS array. Those settings decide how the refinement gets done, but honestly the defaults are usually giving exactly what you need. If the defaults are fine by you, you can just pass NPARAMS = 0 and that stops the source code from ever touching the PARAMS argument. Frugal. Efficient. Iconic. π
Parameters π
TRANSβTRANSisCHARACTER*1, and it says which form of the system of equations we're working with:= 'N':A * X = B(No transpose)= 'T':A**T * X = B(Transpose)= 'C':A**H * X = B(Conjugate transpose)
EQUEDβEQUEDisCHARACTER*1and it tells you what kind of equilibration got done toAbefore this routine was called. You genuinely need this, because it's how the solution and error bounds get computed correctly:= 'N': No equilibration= 'R': Row equilibration, i.e.,Ahas been premultiplied bydiag(R).= 'C': Column equilibration, i.e.,Ahas been postmultiplied bydiag(C).= 'B': Both row and column equilibration, i.e.,Ahas been replaced bydiag(R) * A * diag(C). The right hand sideBhas been changed accordingly.
NβNisINTEGER. The order of the matrixA.N >= 0.KLβKLisINTEGER. The number of subdiagonals within the band ofA.KL >= 0.KUβKUisINTEGER. The number of superdiagonals within the band ofA.KU >= 0.NRHSβNRHSisINTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.ABβABisCOMPLEX*16 array, dimension (LDAB,N). It's your original band matrixA, stored in rows1toKL+KU+1. Thej-th column ofAlives in thej-th column of the arrayABlike so:AB(ku+1+i-j,j) = A(i,j) for max(1,j-ku)<=i<=min(n,j+kl).LDABβLDABisINTEGER. The leading dimension of the arrayAB.LDAB >= KL+KU+1.AFBβAFBisCOMPLEX*16 array, dimension (LDAFB,N). All the deets of the LU factorization of the band matrixA, as computed byZGBTRF.Uis stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows1toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1. π«ΆLDAFBβLDAFBisINTEGER. The leading dimension of the arrayAFB.LDAFB >= 2*KL*KU+1.IPIVβIPIVisINTEGER array, dimension (N). The pivot indices fromZGETRF; for1<=i<=N, rowiof the matrix was interchanged with rowIPIV(i).RβRisDOUBLE PRECISION array, dimension (N). The row scale factors forA. IfEQUED = 'R'or'B',Ais multiplied on the left bydiag(R); ifEQUED = 'N'or'C',Ris not accessed.Ris an input argument ifFACT = 'F'; otherwise,Ris an output argument. IfFACT = 'F'andEQUED = 'R'or'B', each element ofRmust be positive. IfRis output, each element ofRis a power of the radix. IfRis input, each element ofRshould be a power of the radix to ensure a reliable solution and error estimates. Scaling by powers of the radix does not cause rounding errors unless the result underflows or overflows. Rounding errors during scaling lead to refining with a matrix that is not equivalent to the input matrix, producing error estimates that may not be reliable.CβCisDOUBLE PRECISION array, dimension (N). The column scale factors forA. IfEQUED = 'C'or'B',Ais multiplied on the right bydiag(C); ifEQUED = 'N'or'R',Cis not accessed.Cis an input argument ifFACT = 'F'; otherwise,Cis an output argument. IfFACT = 'F'andEQUED = 'C'or'B', each element ofCmust be positive. IfCis output, each element ofCis a power of the radix. IfCis input, each element ofCshould be a power of the radix to ensure a reliable solution and error estimates. Scaling by powers of the radix does not cause rounding errors unless the result underflows or overflows. Rounding errors during scaling lead to refining with a matrix that is not equivalent to the input matrix, producing error estimates that may not be reliable.BβBisCOMPLEX*16 array, dimension (LDB,NRHS). The right hand side matrixB.LDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).XβXisCOMPLEX*16 array, dimension (LDX,NRHS). On entry: the solution matrixX, as computed byZGETRS. On exit: the improved solution matrixX. glow up complete. β¨LDXβLDXisINTEGER. The leading dimension of the arrayX.LDX >= max(1,N).RCONDβRCONDisDOUBLE PRECISION. Reciprocal scaled condition number β an estimate of the reciprocal Skeel condition number of the matrixAafter equilibration (if that happened). If this is less than the machine precision (and especially if it's zero), then the matrix is singular to working precision. π But wait β note that the error may still be small even if this number is very small and the matrix appears ill-conditioned. Don't let the vibe check alone ruin your day.BERRβBERRisDOUBLE PRECISION array, dimension (NRHS). Componentwise relative backward error. That's the componentwise relative backward error of each solution vectorX(j)β i.e., the smallest relative change in any element ofAorBthat makesX(j)an exact solution.N_ERR_BNDSβN_ERR_BNDSisINTEGER. The number of error bounds to return for each right hand side and each type (normwise or componentwise). SeeERR_BNDS_NORMandERR_BNDS_COMPbelow. πERR_BNDS_NORMβERR_BNDS_NORMisDOUBLE PRECISION array, dimension (NRHS, N_ERR_BNDS). For each right-hand side, this array is carrying info about various error bounds and condition numbers for the normwise relative error, which is defined as follows:
Normwise relative error in the ith solution vector:
max_j (abs(XTRUE(j,i) - X(j,i)))
------------------------------
max_j abs(X(j,i))
The array is indexed by the type of error information, described below. There are currently up to three pieces of information returned.
The first index in ERR_BNDS_NORM(i,:) corresponds to the ith right-hand side.
The second index in ERR_BNDS_NORM(:,err) contains the following three fields:
err = 1β'Trust/don't trust'boolean. Trust the answer if the reciprocal condition number is less than the thresholdsqrt(n) * dlamch('Epsilon').err = 2β'Guaranteed'error bound: the estimated forward error, almost certainly within a factor of10of the true error so long as the next entry is greater than the thresholdsqrt(n) * dlamch('Epsilon'). This error bound should only be trusted if the previous boolean is true.err = 3β Reciprocal condition number: estimated normwise reciprocal condition number. Compared with the thresholdsqrt(n) * dlamch('Epsilon')to determine if the error estimate is'guaranteed'. These reciprocal condition numbers are1 / (norm(Z^{-1},inf) * norm(Z,inf))for some appropriately scaled matrixZ. LetZ = S*A, whereSscales each row by a power of the radix so all absolute row sums ofZare approximately1.
See Lapack Working Note 165 for further details and extra cautions. π
ERR_BNDS_COMPβERR_BNDS_COMPisDOUBLE PRECISION array, dimension (NRHS, N_ERR_BNDS). For each right-hand side, this array is carrying info about various error bounds and condition numbers for the componentwise relative error, which is defined as follows:
Componentwise relative error in the ith solution vector:
abs(XTRUE(j,i) - X(j,i))
max_j ----------------------
abs(X(j,i))
The array is indexed by the right-hand side i (because that's what the componentwise relative error depends on), and the type of error information described below. There are currently up to three pieces of information returned for each right-hand side. If componentwise accuracy is not requested (PARAMS(3) = 0.0), then ERR_BNDS_COMP is not accessed. And if N_ERR_BNDS < 3, then at most the first (:,N_ERR_BNDS) entries are returned.
The first index in ERR_BNDS_COMP(i,:) corresponds to the *i*th right-hand side.
The second index in ERR_BNDS_COMP(:,err) holds these three fields, and bestie they are not interchangeable, ok:
err = 1β the 'Trust/don't trust' boolean. Trust the answer if the reciprocal condition number is less than the thresholdsqrt(n) * dlamch('Epsilon').err = 2β the 'Guaranteed' error bound: the estimated forward error, almost certainly within a factor of10of the true error so long as the next entry is greater than the thresholdsqrt(n) * dlamch('Epsilon'). This error bound should only be trusted if the previous boolean is true. πerr = 3β Reciprocal condition number: estimated componentwise reciprocal condition number. Compared with the thresholdsqrt(n) * dlamch('Epsilon')to determine if the error estimate is 'guaranteed'. These reciprocal condition numbers are1 / (norm(Z^{-1},inf) * norm(Z,inf))for some appropriately scaled matrixZ.
Let Z = S*(A*diag(x)), where x is the solution for the current right-hand side and S scales each row of A*diag(x) by a power of the radix so all absolute row sums of Z are approximately 1.
See Lapack Working Note 165 for further details and extra cautions. π
NPARAMS
NPARAMS is INTEGER
Specifies the number of parameters set in PARAMS. If <= 0, the PARAMS array is never referenced and default values are used.
PARAMS
PARAMS is DOUBLE PRECISION array, dimension NPARAMS
Specifies algorithm parameters. If an entry is < 0.0, then that entry will be filled with the default value used for that parameter. Only positions up to NPARAMS are accessed; defaults are used for higher-numbered parameters.
PARAMS(LA_LINRX_ITREF_I = 1): Whether to perform iterative refinement or not.- Default:
1.0D+0= 0.0: No refinement is performed, and no error bounds are computed.= 1.0: Use the double-precision refinement algorithm, possibly with doubled-single computations if the compilation environment does not supportDOUBLE PRECISION.- (other values are reserved for future use)
- Default:
PARAMS(LA_LINRX_ITHRESH_I = 2): Maximum number of residual computations allowed for refinement.- Default:
10 - Aggressive: Set to
100to permit convergence using approximate factorizations or factorizations other thanLU. If the factorization uses a technique other than Gaussian elimination, the guarantees inerr_bnds_normanderr_bnds_compmay no longer be trustworthy. β οΈ
- Default:
PARAMS(LA_LINRX_CWISE_I = 3): Flag determining if the code will attempt to find a solution with small componentwise relative error in the double-precision algorithm. Positive is true,0.0is false.- Default:
1.0(attempt componentwise convergence)
- Default:
WORK
WORK is COMPLEX*16 array, dimension (2*N)
RWORK
RWORK is DOUBLE PRECISION array, dimension (2*N)
INFO
INFO is INTEGER
= 0: Successful exit. The solution to every right-hand side is guaranteed. π< 0: IfINFO = -i, the *i*th argument had an illegal value.> 0and<= N:U(INFO,INFO)is exactly zero. The factorization has been completed, but the factorUis exactly singular, so the solution and error bounds could not be computed.RCOND = 0is returned. π= N+J: The solution corresponding to the *J*th right-hand side is not guaranteed. The solutions corresponding to other right-hand sidesKwithK > Jmay not be guaranteed as well, but only the first such right-hand side is reported. If a small componentwise error is not requested (PARAMS(3) = 0.0) then the *J*th right-hand side is the first with a normwise error bound that is not guaranteed (the smallestJsuch thatERR_BNDS_NORM(J,1) = 0.0). By default (PARAMS(3) = 1.0) the *J*th right-hand side is the first with either a normwise or componentwise error bound that is not guaranteed (the smallestJsuch that eitherERR_BNDS_NORM(J,1) = 0.0orERR_BNDS_COMP(J,1) = 0.0). See the definition ofERR_BNDS_NORM(:,1)andERR_BNDS_COMP(:,1). To get information about all of the right-hand sides checkERR_BNDS_NORMorERR_BNDS_COMP.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π
subroutine zgbtf2 π
subroutine zgbtf2 (integer M, integer N, integer KL, integer KU, complex*16,
dimension( ldab, * ) AB, integer LDAB, integer, dimension( * ) IPIV,
integer INFO)
ZGBTF2 computes the LU factorization of a general band matrix using the unblocked version of the algorithm. (unblocked = the chill, no-frills, Level 2 BLAS one, iykyk)
Purpose
ZGBTF2 computes an LU factorization of a complex m-by-n band matrix A using partial pivoting with row interchanges.
This is the unblocked version of the algorithm, calling Level 2 BLAS.
Parameters
MβMisINTEGER. The number of rows of the matrixA.M >= 0.NβNisINTEGER. The number of columns of the matrixA.N >= 0.KLβKLisINTEGER. The number of subdiagonals within the band ofA.KL >= 0.KUβKUisINTEGER. The number of superdiagonals within the band ofA.KU >= 0.ABβABisCOMPLEX*16array, dimension(LDAB,N).- On entry, the matrix
Ain band storage, in rowsKL+1to2*KL+KU+1; rows1toKLof the array need not be set. The *j*th column ofAis stored in the *j*th column of the arrayABas follows:
- On entry, the matrix
AB(kl+ku+1+i-j,j) = A(i,j) for max(1,j-ku)<=i<=min(m,j+kl)
- On exit, details of the factorization:
Uis stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows1toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1. See below for further details.
LDABβLDABisINTEGER. The leading dimension of the arrayAB.LDAB >= 2*KL+KU+1.IPIVβIPIVisINTEGERarray, dimension(min(M,N)). The pivot indices; for1 <= i <= min(M,N), rowiof the matrix was interchanged with rowIPIV(i).INFOβINFOisINTEGER.= 0: successful exit< 0: ifINFO = -i, the *i*th argument had an illegal value> 0: ifINFO = +i,U(i,i)is exactly zero. The factorization has been completed, but the factorUis exactly singular, and division by zero will occur if it is used to solve a system of equations. π¨
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Further Details
The band storage scheme is illustrated by the following example, when M = N = 6, KL = 2, KU = 1:
On entry: On exit:
* * * + + + * * * u14 u25 u36
* * + + + + * * u13 u24 u35 u46
* a12 a23 a34 a45 a56 * u12 u23 u34 u45 u56
a11 a22 a33 a44 a55 a66 u11 u22 u33 u44 u55 u66
a21 a32 a43 a54 a65 * m21 m32 m43 m54 m65 *
a31 a42 a53 a64 * * m31 m42 m53 m64 * *
Array elements marked * are not used by the routine; elements marked + need not be set on entry, but are required by the routine to store elements of U, because of fill-in resulting from the row interchanges.
π₯ subroutine zgbtrf π₯
subroutine zgbtrf (integer M, integer N, integer KL, integer KU, complex*16,
dimension( ldab, * ) AB, integer LDAB, integer, dimension( * ) IPIV,
integer INFO)
ZGBTRF β¨
Purpose
ZGBTRF computes an LU factorization of a complex m-by-n band matrix A using partial pivoting with row interchanges.
This is the blocked version of the algorithm, calling Level 3 BLAS. (yes queen, blocked = faster, main character energy)
Parameters
MβMisINTEGER. The number of rows of the matrixA.M >= 0.NβNisINTEGER. The number of columns of the matrixA.N >= 0.KLβKLisINTEGER. The number of subdiagonals within the band ofA.KL >= 0.KUβKUisINTEGER. The number of superdiagonals within the band ofA.KU >= 0.ABβABisCOMPLEX*16array, dimension(LDAB,N).- On entry, the matrix
Ain band storage, in rowsKL+1to2*KL+KU+1; rows1toKLof the array need not be set. The *j*th column ofAis stored in the *j*th column of the arrayABas follows:
- On entry, the matrix
AB(kl+ku+1+i-j,j) = A(i,j) for max(1,j-ku)<=i<=min(m,j+kl)
- On exit, details of the factorization:
Uis stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows1toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1. See below for further details.
LDABβLDABisINTEGER. The leading dimension of the arrayAB.LDAB >= 2*KL+KU+1.IPIVβIPIVisINTEGERarray, dimension(min(M,N)). The pivot indices; for1 <= i <= min(M,N), rowiof the matrix was interchanged with rowIPIV(i).INFOβINFOisINTEGER.INFOisINTEGER= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value> 0: ifINFO = +i,U(i,i)is exactly zero. The factorization has been completed, but the factorUis exactly singular, and division by zero will occur if it is used to solve a system of equations.
bestie this one is IMPORTANT π that> 0case means the factorization finished, it just handed you aUthat's exactly singular β so the second you try to solve a system with it, you're dividing by zero. Not a vibe. π
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Further Details
Okay so the band storage scheme? It's giving β¨blueprintβ¨. Here's the example, for when M = N = 6, KL = 2, KU = 1:
On entry: On exit:
* * * + + + * * * u14 u25 u36
* * + + + + * * u13 u24 u35 u46
* a12 a23 a34 a45 a56 * u12 u23 u34 u45 u56
a11 a22 a33 a44 a55 a66 u11 u22 u33 u44 u55 u66
a21 a32 a43 a54 a65 * m21 m32 m43 m54 m65 *
a31 a42 a53 a64 * * m31 m42 m53 m64 * *
Array elements marked * are not used by the routine, periodt. Elements marked + don't need to be set on entry, but the routine does need them β they're where it stashes elements of U because of fill-in that comes from the row interchanges. π«Ά
subroutine zgbtrs (character TRANS, integer N, integer KL, integer KU,
integer NRHS, complex*16, dimension( ldab, * ) AB, integer LDAB,
integer, dimension( * ) IPIV, complex*16, dimension( ldb, * ) B, integer
LDB, integer INFO)
π ZGBTRS π
Purpose
ZGBTRS solves a system of linear equations
A * X = B, A**T * X = B, or A**H * X = B
with a general band matrix A, using the LU factorization that ZGBTRF already computed. π
Parameters
TRANSβTRANS is CHARACTER*1, and it specifies the form of the system of equations, no cap:= 'N':A * X = B(No transpose)= 'T':A**T * X = B(Transpose)= 'C':A**H * X = B(Conjugate transpose)
NβN is INTEGER. The order of the matrixA.N >= 0.KLβKL is INTEGER. The number of subdiagonals within the band ofA.KL >= 0.KUβKU is INTEGER. The number of superdiagonals within the band ofA.KU >= 0.NRHSβNRHS is INTEGER. The number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0.ABβAB is COMPLEX*16 array, dimension (LDAB,N). It holds the details of theLUfactorization of the band matrixA, as computed byZGBTRF.Uis stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows1toKL+KU+1, and the multipliers used during the factorization live in rowsKL+KU+2to2*KL+KU+1. π¦LDABβLDAB is INTEGER. The leading dimension of the arrayAB.LDAB >= 2*KL+KU+1.IPIVβIPIV is INTEGER array, dimension (N). The pivot indices; for1 <= i <= N, rowiof the matrix was interchanged with rowIPIV(i).BβB is COMPLEX*16 array, dimension (LDB,NRHS). On entry, the right hand side matrixB. On exit, the solution matrixX. glow up β¨LDBβLDB is INTEGER. The leading dimension of the arrayB.LDB >= max(1,N).INFOβINFO is INTEGER= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
subroutine zggbak (character JOB, character SIDE, integer N, integer ILO,
integer IHI, double precision, dimension( * ) LSCALE, double precision,
dimension( * ) RSCALE, integer M, complex*16, dimension( ldv, * ) V,
integer LDV, integer INFO)
π ZGGBAK π
Purpose
ZGGBAK forms the right or left eigenvectors of a complex generalized eigenvalue problem A*x = lambda*B*x, by doing a backward transformation on the computed eigenvectors of the balanced pair of matrices that ZGGBAL output. it's literally the un-balancing step, iykyk π
Parameters
JOBβJOB is CHARACTER*1. Specifies the type of backward transformation required:= 'N': do nothing, return immediately;= 'P': do backward transformation for permutation only;= 'S': do backward transformation for scaling only;= 'B': do backward transformations for both permutation and scaling.
JOBmust be the same as the argumentJOBsupplied toZGGBAL. no switching up on us bestie π
SIDEβSIDE is CHARACTER*1= 'R':Vcontains right eigenvectors;= 'L':Vcontains left eigenvectors.
NβN is INTEGER. The number of rows of the matrixV.N >= 0.ILOβILO is INTEGERIHIβIHI is INTEGER. The integersILOandIHIdetermined byZGGBAL.1 <= ILO <= IHI <= N, ifN > 0;ILO=1andIHI=0, ifN=0.LSCALEβLSCALE is DOUBLE PRECISION array, dimension (N). Details of the permutations and/or scaling factors applied to the left side ofAandB, as returned byZGGBAL.RSCALEβRSCALE is DOUBLE PRECISION array, dimension (N). Details of the permutations and/or scaling factors applied to the right side ofAandB, as returned byZGGBAL.MβM is INTEGER. The number of columns of the matrixV.M >= 0.VβV is COMPLEX*16 array, dimension (LDV,M). On entry, the matrix of right or left eigenvectors to be transformed, as returned byZTGEVC. On exit,Vis overwritten by the transformed eigenvectors.LDVβLDV is INTEGER. The leading dimension of the matrixV.LDV >= max(1,N).INFOβINFO is INTEGER= 0: successful exit.< 0: ifINFO = -i, the i-th argument had an illegal value.
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Further Details
See R.C. Ward, Balancing the generalized eigenvalue problem, SIAM J. Sci. Stat. Comp. 2 (1981), 141-152. π
subroutine zggbal (character JOB, integer N, complex*16, dimension( lda, * )
A, integer LDA, complex*16, dimension( ldb, * ) B, integer LDB, integer
ILO, integer IHI, double precision, dimension( * ) LSCALE, double
precision, dimension( * ) RSCALE, double precision, dimension( * ) WORK,
integer INFO)
π§ ZGGBAL π§
Purpose
ZGGBAL balances a pair of general complex matrices (A,B). And what does that even mean? Two steps, bestie:
First, it permutes A and B by similarity transformations to isolate eigenvalues in the first 1 to ILO-1 and last IHI+1 to N elements on the diagonal. Second, it applies a diagonal similarity transformation to rows and columns ILO to IHI to make the rows and columns as close in norm as possible. Both steps are optional. β¨
Balancing may reduce the 1-norm of the matrices, and improve the accuracy of the computed eigenvalues and/or eigenvectors in the generalized eigenvalue problem A*x = lambda*B*x. it's giving self care for your matrices πΈ
Parameters
JOBβJOB is CHARACTER*1. Specifies the operations to be performed onAandB:= 'N': none: simply setILO = 1,IHI = N,LSCALE(I) = 1.0andRSCALE(I) = 1.0fori=1,...,N;= 'P': permute only;= 'S': scale only;= 'B': both permute and scale.
NβN is INTEGER. The order of the matricesAandB.N >= 0.AβA is COMPLEX*16 array, dimension (LDA,N). On entry, the input matrixA. On exit,Ais overwritten by the balanced matrix. IfJOB = 'N',Ais not referenced.LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,N).BβB is COMPLEX*16 array, dimension (LDB,N). On entry, the input matrixB. On exit,Bis overwritten by the balanced matrix. IfJOB = 'N',Bis not referenced.LDBβLDB is INTEGER. The leading dimension of the arrayB.LDB >= max(1,N).ILOβILO is INTEGERIHIβIHI is INTEGER.ILOandIHIare set to integers such that on exitA(i,j) = 0andB(i,j) = 0ifi > jandj = 1,...,ILO-1ori = IHI+1,...,N. IfJOB = 'N'or'S',ILO = 1andIHI = N.LSCALEβLSCALE is DOUBLE PRECISION array, dimension (N). Details of the permutations and scaling factors applied to the left side ofAandB. IfP(j)is the index of the row interchanged with rowj, andD(j)is the scaling factor applied to rowj, then
LSCALE(j) = P(j) for J = 1,...,ILO-1
= D(j) for J = ILO,...,IHI
= P(j) for J = IHI+1,...,N.
The order in which the interchanges are made is N to IHI+1, then 1 to ILO-1.
RSCALEβRSCALE is DOUBLE PRECISION array, dimension (N). Details of the permutations and scaling factors applied to the right side ofAandB. IfP(j)is the index of the column interchanged with columnj, andD(j)is the scaling factor applied to columnj, then
RSCALE(j) = P(j) for J = 1,...,ILO-1
= D(j) for J = ILO,...,IHI
= P(j) for J = IHI+1,...,N.
The order in which the interchanges are made is N to IHI+1, then 1 to ILO-1.
WORKβWORK is DOUBLE PRECISION array, dimension (lwork).lworkmust be at leastmax(1,6*N)whenJOB = 'S'or'B', and at least1whenJOB = 'N'or'P'.INFOINFOisINTEGERβ bestie, here's the tea on the exit code π«Ά= 0: it worked, we ate, successful exit π< 0: ifINFO = -i, then the i-th argument was giving illegal-value energy, and we do NOT stan π
Author π
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Further Details:
See R.C. WARD, Balancing the generalized eigenvalue problem, SIAM J. Sci. Stat. Comp. 2 (1981), 141-152.
π¦ subroutine zla_gbamv π¦
subroutine zla_gbamv (integer TRANS, integer M, integer N, integer KL,
integer KU, double precision ALPHA, complex*16, dimension( ldab, * ) AB,
integer LDAB, complex*16, dimension( * ) X, integer INCX, double
precision BETA, double precision, dimension( * ) Y, integer INCY)
ZLA_GBAMV performs a matrix-vector operation to calculate error bounds.
Purpose:
ZLA_GBAMV performs one of the matrix-vector operations β¨
y := alpha*abs(A)*abs(x) + beta*abs(y),
or y := alpha*abs(A)**T*abs(x) + beta*abs(y),
where alpha and beta are scalars, x and y are vectors and A is an m by n matrix. Slay.
This function is primarily used in calculating error bounds. To protect against underflow during evaluation, components in the resulting vector are perturbed away from zero by (N+1) times the underflow threshold. To prevent unnecessarily large errors for block-structure embedded in general matrices, 'symbolically' zero components are not perturbed. A zero entry is considered 'symbolic' if all multiplications involved in computing that entry have at least one zero multiplicand. No cap, that's literally what it does π
Parameters
TRANSβTRANSisINTEGER. On entry,TRANSspecifies the operation to be performed as follows:
BLAS_NO_TRANS y := alpha*abs(A)*abs(x) + beta*abs(y)
BLAS_TRANS y := alpha*abs(A**T)*abs(x) + beta*abs(y)
BLAS_CONJ_TRANS y := alpha*abs(A**T)*abs(x) + beta*abs(y)
Unchanged on exit.
MβMisINTEGER. On entry,Mspecifies the number of rows of the matrix A. M must be at least zero. Unchanged on exit.NβNisINTEGER. On entry,Nspecifies the number of columns of the matrix A. N must be at least zero. Unchanged on exit.KLβKLisINTEGER. The number of subdiagonals within the band of A.KL >= 0.KUβKUisINTEGER. The number of superdiagonals within the band of A.KU >= 0.ALPHAβALPHAisDOUBLE PRECISION. On entry,ALPHAspecifies the scalar alpha. Unchanged on exit.ABβABisCOMPLEX*16array, dimension( LDAB, n ). Before entry, the leading m by n part of the arrayABmust contain the matrix of coefficients. Unchanged on exit.LDABβLDABisINTEGER. On entry,LDABspecifies the first dimension ofABas declared in the calling (sub) program.LDABmust be at leastmax( 1, m ). Unchanged on exit.XβXisCOMPLEX*16array, dimension( 1 + ( n - 1 )*abs( INCX ) )whenTRANS = 'N'or'n'and at least( 1 + ( m - 1 )*abs( INCX ) )otherwise. Before entry, the incremented arrayXmust contain the vector x. Unchanged on exit.INCXβINCXisINTEGER. On entry,INCXspecifies the increment for the elements ofX.INCXmust not be zero. Unchanged on exit.BETAβBETAisDOUBLE PRECISION. On entry,BETAspecifies the scalar beta. WhenBETAis supplied as zero thenYneed not be set on input. Unchanged on exit.YβYisDOUBLE PRECISIONarray, dimension( 1 + ( m - 1 )*abs( INCY ) )whenTRANS = 'N'or'n'and at least( 1 + ( n - 1 )*abs( INCY ) )otherwise. Before entry withBETAnon-zero, the incremented arrayYmust contain the vector y. On exit,Yis overwritten by the updated vector y. She's getting rewritten, periodt πINCYβINCYisINTEGER. On entry,INCYspecifies the increment for the elements ofY.INCYmust not be zero. Unchanged on exit.
Level 2 Blas routine.
Author π
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
π double precision function zla_gbrcond_c π
double precision function zla_gbrcond_c (character TRANS, integer N, integer
KL, integer KU, complex*16, dimension( ldab, * ) AB, integer LDAB,
complex*16, dimension( ldafb, * ) AFB, integer LDAFB, integer,
dimension( * ) IPIV, double precision, dimension( * ) C, logical CAPPLY,
integer INFO, complex*16, dimension( * ) WORK, double precision,
dimension( * ) RWORK)
ZLA_GBRCOND_C computes the infinity norm condition number of op(A)*inv(diag(c)) for general banded matrices. Iconic behaviour, honestly π
Purpose:
ZLA_GBRCOND_C Computes the infinity norm condition number of op(A) * inv(diag(C)) where C is a DOUBLE PRECISION vector.
Parameters
TRANSβTRANSisCHARACTER*1. Specifies the form of the system of equations:= 'N':A * X = B(No transpose)= 'T':A**T * X = B(Transpose)= 'C':A**H * X = B(Conjugate Transpose = Transpose)
NβNisINTEGER. The number of linear equations, i.e., the order of the matrix A.N >= 0.KLβKLisINTEGER. The number of subdiagonals within the band of A.KL >= 0.KUβKUisINTEGER. The number of superdiagonals within the band of A.KU >= 0.ABβABisCOMPLEX*16array, dimension(LDAB,N). On entry, the matrix A in band storage, in rows 1 toKL+KU+1. The j-th column of A is stored in the j-th column of the arrayABas follows:
AB(KU+1+i-j,j) = A(i,j) for max(1,j-KU)<=i<=min(N,j+kl)
LDABβLDABisINTEGER. The leading dimension of the arrayAB.LDAB >= KL+KU+1.AFBβAFBisCOMPLEX*16array, dimension(LDAFB,N). Details of the LU factorization of the band matrix A, as computed byZGBTRF. U is stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows 1 toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1.LDAFBβLDAFBisINTEGER. The leading dimension of the arrayAFB.LDAFB >= 2*KL+KU+1.IPIVβIPIVisINTEGERarray, dimension(N). The pivot indices from the factorizationA = P*L*Uas computed byZGBTRF; row i of the matrix was interchanged with rowIPIV(i).CβCisDOUBLE PRECISIONarray, dimension(N). The vector C in the formulaop(A) * inv(diag(C)).CAPPLYβCAPPLYisLOGICAL. If.TRUE.then access the vector C in the formula above.INFOβINFOisINTEGER.= 0: Successful exit. πi > 0: The i-th argument is invalid. π©
WORKβWORKisCOMPLEX*16array, dimension(2*N). Workspace.RWORKβRWORKisDOUBLE PRECISIONarray, dimension(N). Workspace.
Author π
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
πΈ double precision function zla_gbrcond_x πΈ
double precision function zla_gbrcond_x (character TRANS, integer N, integer
KL, integer KU, complex*16, dimension( ldab, * ) AB, integer LDAB,
complex*16, dimension( ldafb, * ) AFB, integer LDAFB, integer,
dimension( * ) IPIV, complex*16, dimension( * ) X, integer INFO,
complex*16, dimension( * ) WORK, double precision, dimension( * ) RWORK)
ZLA_GBRCOND_X computes the infinity norm condition number of op(A)*diag(x) for general banded matrices. Obsessed with her π¦
Purpose:
ZLA_GBRCOND_X Computes the infinity norm condition number of op(A) * diag(X) where X is a COMPLEX*16 vector.
Parameters
TRANSβTRANSisCHARACTER*1. Specifies the form of the system of equations:= 'N':A * X = B(No transpose)= 'T':A**T * X = B(Transpose)= 'C':A**H * X = B(Conjugate Transpose = Transpose)
NβNisINTEGER. The number of linear equations, i.e., the order of the matrix A.N >= 0.KLβKLisINTEGER. The number of subdiagonals within the band of A.KL >= 0.KUβKUisINTEGER. The number of superdiagonals within the band of A.KU >= 0.ABβABisCOMPLEX*16array, dimension(LDAB,N). On entry, the matrix A in band storage, in rows 1 toKL+KU+1. The j-th column of A is stored in the j-th column of the arrayABas follows:
AB(KU+1+i-j,j) = A(i,j) for max(1,j-KU)<=i<=min(N,j+kl)
LDABβLDABisINTEGER. The leading dimension of the arrayAB.LDAB >= KL+KU+1.AFBβAFBisCOMPLEX*16array, dimension(LDAFB,N). Details of the LU factorization of the band matrix A, as computed byZGBTRF. U is stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows 1 toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1.LDAFBβLDAFBisINTEGER. The leading dimension of the arrayAFB.LDAFB >= 2*KL+KU+1.IPIVβIPIVisINTEGERarray, dimension(N). The pivot indices from the factorizationA = P*L*Uas computed byZGBTRF; row i of the matrix was interchanged with rowIPIV(i).XβXisCOMPLEX*16array, dimension(N). The vector X in the formulaop(A) * diag(X).INFOβINFOisINTEGER.= 0: Successful exit. β¨i > 0: The i-th argument is invalid. π©
WORKβWORKisCOMPLEX*16array, dimension(2*N). Workspace.RWORKβRWORKis aDOUBLE PRECISIONarray, dimension(N). It's the workspace, bestie β not the star of the show, but the show does not happen without it. π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
β¨ zla_gbrfsx_extended β¨
okay so this is the big one, the extra-precise iterative refinement girlie for general banded matrices. Here's the whole signature, no cuts, no edits:
subroutine zla_gbrfsx_extended (integer PREC_TYPE, integer TRANS_TYPE,
integer N, integer KL, integer KU, integer NRHS, complex*16, dimension(
ldab, * ) AB, integer LDAB, complex*16, dimension( ldafb, * ) AFB,
integer LDAFB, integer, dimension( * ) IPIV, logical COLEQU, double
precision, dimension( * ) C, complex*16, dimension( ldb, * ) B, integer
LDB, complex*16, dimension( ldy, * ) Y, integer LDY, double precision,
dimension( * ) BERR_OUT, integer N_NORMS, double precision, dimension(
nrhs, * ) ERR_BNDS_NORM, double precision, dimension( nrhs, * )
ERR_BNDS_COMP, complex*16, dimension( * ) RES, double precision,
dimension(*) AYB, complex*16, dimension( * ) DY, complex*16, dimension(
* ) Y_TAIL, double precision RCOND, integer ITHRESH, double precision
RTHRESH, double precision DZ_UB, logical IGNORE_CWISE, integer INFO)
ZLA_GBRFSX_EXTENDED improves the computed solution to a system of linear equations for general banded matrices by performing extra-precise iterative refinement and provides error bounds and backward error estimates for the solution. π«Ά
πΈ Purpose
ZLA_GBRFSX_EXTENDED improves the computed solution to a system of
linear equations by performing extra-precise iterative refinement
and provides error bounds and backward error estimates for the solution.
This subroutine is called by ZGBRFSX to perform iterative refinement.
In addition to normwise error bound, the code provides maximum
componentwise error bound if possible. See comments for ERR_BNDS_NORM
and ERR_BNDS_COMP for details of the error bounds. Note that this
subroutine is only responsible for setting the second fields of
ERR_BNDS_NORM and ERR_BNDS_COMP.
So like, the tea here: this routine is called by ZGBRFSX to do the iterative refinement, and it is only on the hook for setting those second fields of ERR_BNDS_NORM and ERR_BNDS_COMP. That's the whole job. Don't ask it for more. π
π¦ Parameters
PREC_TYPE
PREC_TYPE is INTEGER. It says which intermediate precision we're using during refinement. The value is defined by ILAPREC(P) where P is a CHARACTER and P is one of:
'S': Single'D': Double'I': Indigenous'X'or'E': Extra
TRANS_TYPE
TRANS_TYPE is INTEGER. It says which transposition operation we're doing on A. The value is defined by ILATRANS(T) where T is a CHARACTER and T is one of:
'N': No transpose'T': Transpose'C': Conjugate transpose
N
N is INTEGER. The number of linear equations, i.e., the order of the matrix A. Constraint: N >= 0. β¨
KL
KL is INTEGER. The number of subdiagonals within the band of A. Constraint: KL >= 0.
KU
KU is INTEGER. The number of superdiagonals within the band of A. Constraint: KU >= 0.
NRHS
NRHS is INTEGER. The number of right-hand-sides, i.e., the number of columns of the matrix B.
AB
AB is COMPLEX*16 array, dimension (LDAB,N). On entry, the N-by-N matrix A. π
LDAB
LDAB is INTEGER. The leading dimension of the array A. Constraint: LDAB >= max(1,N).
AFB
AFB is COMPLEX*16 array, dimension (LDAF,N). The factors L and U from the factorization A = P*L*U as computed by ZGBTRF.
LDAFB
LDAFB is INTEGER. The leading dimension of the array AF. Constraint: LDAF >= max(1,N).
yes bestie, it literally saysLDAFthere and notLDAFB. we are reproducing it exactly, do not come for me π
IPIV
IPIV is INTEGER array, dimension (N). The pivot indices from the factorization A = P*L*U as computed by ZGBTRF; row i of the matrix was interchanged with row IPIV(i).
COLEQU
COLEQU is LOGICAL. If .TRUE. then column equilibration was done to A before calling this routine. This is needed to compute the solution and error bounds correctly.
C
C is DOUBLE PRECISION array, dimension (N). The column scale factors for A. If COLEQU = .FALSE., C is not accessed. If C is input, each element of C should be a power of the radix to ensure a reliable solution and error estimates. Scaling by powers of the radix does not cause rounding errors unless the result underflows or overflows. Rounding errors during scaling lead to refining with a matrix that is not equivalent to the input matrix, producing error estimates that may not be reliable.
π¨ lowkey important: powers of the radix only, or the error estimates stop being trustworthy. the vibes must stay clean.
B
B is COMPLEX*16 array, dimension (LDB,NRHS). The right-hand-side matrix B.
LDB
LDB is INTEGER. The leading dimension of the array B. Constraint: LDB >= max(1,N).
Y
Y is COMPLEX*16 array, dimension (LDY,NRHS). On entry, the solution matrix X, as computed by ZGBTRS. On exit, the improved solution matrix Y. π
LDY
LDY is INTEGER. The leading dimension of the array Y. Constraint: LDY >= max(1,N).
BERR_OUT
BERR_OUT is DOUBLE PRECISION array, dimension (NRHS). On exit, BERR_OUT(j) contains the componentwise relative backward error for right-hand-side j from the formula
max(i) ( abs(RES(i)) / ( abs(op(A_s))*abs(Y) + abs(B_s) )(i) )
where abs(Z) is the componentwise absolute value of the matrix or vector Z. This is computed by ZLA_LIN_BERR.
N_NORMS
N_NORMS is INTEGER. Determines which error bounds to return (see ERR_BNDS_NORM and ERR_BNDS_COMP).
- If
N_NORMS >= 1return normwise error bounds. - If
N_NORMS >= 2return componentwise error bounds.
ERR_BNDS_NORM
ERR_BNDS_NORM is DOUBLE PRECISION array, dimension (NRHS, N_ERR_BNDS). For each right-hand side, this array contains information about various error bounds and condition numbers corresponding to the normwise relative error, which is defined as follows:
Normwise relative error in the ith solution vector:
max_j (abs(XTRUE(j,i) - X(j,i)))
------------------------------
max_j abs(X(j,i))
The array is indexed by the type of error information as described below. There currently are up to three pieces of information returned.
The first index in ERR_BNDS_NORM(i,:) corresponds to the ith right-hand side.
The second index in ERR_BNDS_NORM(:,err) contains the following three fields:
err = 1β'Trust/don't trust'boolean. Trust the answer if the reciprocal condition number is less than the thresholdsqrt(n) * slamch('Epsilon').err = 2β'Guaranteed'error bound: The estimated forward error, almost certainly within a factor of 10 of the true error so long as the next entry is greater than the thresholdsqrt(n) * slamch('Epsilon'). This error bound should only be trusted if the previous boolean is true.err = 3β Reciprocal condition number: Estimated normwise reciprocal condition number. Compared with the thresholdsqrt(n) * slamch('Epsilon')to determine if the error estimate is'guaranteed'. These reciprocal condition numbers are1 / (norm(Z^{-1},inf) * norm(Z,inf))for some appropriately scaled matrixZ. LetZ = S*A, whereSscales each row by a power of the radix so all absolute row sums ofZare approximately 1.
This subroutine is only responsible for setting the second field above.
See Lapack Working Note 165 for further details and extra cautions. π
ERR_BNDS_COMP
ERR_BNDS_COMP is DOUBLE PRECISION array, dimension (NRHS, N_ERR_BNDS). For each right-hand side, this array contains information about various error bounds and condition numbers corresponding to the componentwise relative error, which is defined as follows:
Componentwise relative error in the ith solution vector:
abs(XTRUE(j,i) - X(j,i))
max_j ----------------------
abs(X(j,i))
The array is indexed by the right-hand side i (on which the componentwise relative error depends), and the type of error information as described below. There currently are up to three pieces of information returned for each right-hand side. If componentwise accuracy is not requested (PARAMS(3) = 0.0), then ERR_BNDS_COMP is not accessed. If N_ERR_BNDS < 3, then at most the first (:,N_ERR_BNDS) entries are returned.
The first index in ERR_BNDS_COMP(i,:) corresponds to the ith right-hand side.
The second index in ERR_BNDS_COMP(:,err) contains the following three fields:
err = 1β'Trust/don't trust'boolean. Trust the answer if the reciprocal condition number is less than the thresholdsqrt(n) * slamch('Epsilon').err = 2β'Guaranteed'error bound: The estimated forward error, almost certainly within a factor of 10 of the true error so long as the next entry is greater than the thresholdsqrt(n) * slamch('Epsilon'). This error bound should only be trusted if the previous boolean is true.err = 3β Reciprocal condition number: Estimated componentwise reciprocal condition number. Compared with the thresholdsqrt(n) * slamch('Epsilon')to determine if the error estimate is'guaranteed'. These reciprocal condition numbers are1 / (norm(Z^{-1},inf) * norm(Z,inf))for some appropriately scaled matrixZ. LetZ = S*(A*diag(x)), wherexis the solution for the current right-hand side andSscales each row ofA*diag(x)by a power of the radix so all absolute row sums ofZare approximately 1.
This subroutine is only responsible for setting the second field above.
See Lapack Working Note 165 for further details and extra cautions. π
RES
RES is COMPLEX*16 array, dimension (N). Workspace to hold the intermediate residual.
AYB
AYBβ it's aDOUBLE PRECISION array, dimension(N). Just workspace, bestie. β¨DYβCOMPLEX*16 array, dimension(N). Workspace to hold the intermediate solution. πY_TAILβCOMPLEX*16 array, dimension(N). Workspace to hold the trailing bits of the intermediate solution. π¦RCONDβDOUBLE PRECISION. Reciprocal scaled condition number. This is an estimate of the reciprocal Skeel condition number of the matrixAafter equilibration (if done). If this is less than the machine precision (in particular, if it is zero), the matrix is singular to working precision. Note that the error may still be small even if this number is very small and the matrix appears ill-conditioned. πITHRESHβINTEGER. The maximum number of residual computations allowed for refinement. The default is10. For 'aggressive' set to100to permit convergence using approximate factorizations or factorizations other than LU. If the factorization uses a technique other than Gaussian elimination, the guarantees inERR_BNDS_NORMandERR_BNDS_COMPmay no longer be trustworthy. πRTHRESHβDOUBLE PRECISION. Determines when to stop refinement if the error estimate stops decreasing. Refinement will stop when the next solution no longer satisfiesnorm(dx_{i+1}) < RTHRESH * norm(dx_i)wherenorm(Z)is the infinity norm ofZ.RTHRESHsatisfies0 < RTHRESH <= 1. The default value is0.5. For 'aggressive' set to0.9to permit convergence on extremely ill-conditioned matrices. See LAWN 165 for more details. π₯DZ_UBβDOUBLE PRECISION. Determines when to start considering componentwise convergence. Componentwise convergence is only considered after each component of the solutionYis stable, which we define as the relative change in each component being less thanDZ_UB. The default value is0.25, requiring the first bit to be stable. See LAWN 165 for more details. πIGNORE_CWISEβLOGICAL. If.TRUE.then ignore componentwise convergence. Default value is.FALSE.. πINFOβINTEGER.= 0: Successful exit.< 0: ifINFO = -i, theith argument toZGBTRShad an illegal value. π
β¨ Author β¨
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
double precision function zla_gbrpvgrw
double precision function zla_gbrpvgrw (integer N, integer KL, integer KU, integer NCOLS, complex*16, dimension( ldab, * ) AB, integer LDAB, complex*16, dimension( ldafb, * ) AFB, integer LDAFB)
ZLA_GBRPVGRW computes the reciprocal pivot growth factor norm(A)/norm(U) for a general banded matrix.
Purpose
ZLA_GBRPVGRW computes the reciprocal pivot growth factor norm(A)/norm(U). The 'max absolute element' norm is used. If this is much less than 1, the stability of the LU factorization of the (equilibrated) matrix A could be poor. This also means that the solution X, estimated condition numbers, and error bounds could be unreliable. π¬
Parameters
NβINTEGER. The number of linear equations, i.e., the order of the matrixA.N >= 0.KLβINTEGER. The number of subdiagonals within the band ofA.KL >= 0.KUβINTEGER. The number of superdiagonals within the band ofA.KU >= 0.NCOLSβINTEGER. The number of columns of the matrixA.NCOLS >= 0.ABβCOMPLEX*16 array, dimension(LDAB,N). On entry, the matrixAin band storage, in rows1toKL+KU+1. Thej-th column ofAis stored in thej-th column of the arrayABas follows:
AB(KU+1+i-j,j) = A(i,j) for max(1,j-KU)<=i<=min(N,j+kl)
LDABβINTEGER. The leading dimension of the arrayAB.LDAB >= KL+KU+1.AFBβCOMPLEX*16 array, dimension(LDAFB,N). Details of the LU factorization of the band matrixA, as computed byZGBTRF.Uis stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows1toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1.LDAFBβINTEGER. The leading dimension of the arrayAFB.LDAFB >= 2*KL+KU+1.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
subroutine zungbr
subroutine zungbr (character VECT, integer M, integer N, integer K, complex*16, dimension( lda, * ) A, integer LDA, complex*16, dimension( * ) TAU, complex*16, dimension( * ) WORK, integer LWORK, integer INFO)
ZUNGBR
Purpose
ZUNGBR generates one of the complex unitary matrices Q or P**H determined by ZGEBRD when reducing a complex matrix A to bidiagonal form: A = Q * B * P**H. Q and P**H are defined as products of elementary reflectors H(i) or G(i) respectively.
If VECT = 'Q', A is assumed to have been an M-by-K matrix, and Q is of order M:
- if
m >= k,Q = H(1) H(2) . . . H(k)andZUNGBRreturns the firstncolumns ofQ, wherem >= n >= k; - if
m < k,Q = H(1) H(2) . . . H(m-1)andZUNGBRreturnsQas anM-by-Mmatrix.
If VECT = 'P', A is assumed to have been a K-by-N matrix, and P**H is of order N:
- if
k < n,P**H = G(k) . . . G(2) G(1)andZUNGBRreturns the firstmrows ofP**H, wheren >= m >= k; - if
k >= n,P**H = G(n-1) . . . G(2) G(1)andZUNGBRreturnsP**Has anN-by-Nmatrix.
Parameters
VECTβCHARACTER*1. Specifies whether the matrixQor the matrixP**His required, as defined in the transformation applied byZGEBRD:= 'Q': generateQ;= 'P': generateP**H.
MβINTEGER. The number of rows of the matrixQorP**Hto be returned.M >= 0.NβINTEGER. The number of columns of the matrixQorP**Hto be returned.N >= 0. IfVECT = 'Q',M >= N >= min(M,K); ifVECT = 'P',N >= M >= min(N,K).KβINTEGER. IfVECT = 'Q', the number of columns in the originalM-by-Kmatrix reduced byZGEBRD. IfVECT = 'P', the number of rows in the originalK-by-Nmatrix reduced byZGEBRD.K >= 0.AβCOMPLEX*16 array, dimension(LDA,N). On entry, the vectors which define the elementary reflectors, as returned byZGEBRD. On exit, theM-by-NmatrixQorP**H.LDAβINTEGER. The leading dimension of the arrayA.LDA >= M.TAUβCOMPLEX*16 array, dimension(min(M,K))ifVECT = 'Q',(min(N,K))ifVECT = 'P'.TAU(i)must contain the scalar factor of the elementary reflectorH(i)orG(i), which determinesQorP**H, as returned byZGEBRDin its array argumentTAUQorTAUP.WORKβCOMPLEX*16 array, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβINTEGER. The dimension of the arrayWORK.LWORK >= max(1,min(M,N)). For optimum performanceLWORK >= min(M,N)*NB, whereNBis the optimal blocksize.
If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA.
INFOβINTEGER.= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Author
Generated automatically by Doxygen for LAPACK from the source code.
This page is from LAPACK version 3.11.0, dated Sun Nov 27 2022. Stay slay, bestie! πβ¨
π¦ where this page comes from
- debian bookworm: liblapack-doc 3.11.0-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms