complex16GTsolve(3)
π complex16GTsolve β the NAME section, bestie π
okay so this page is complex16GTsolve, and it's giving complex16 energy, fr fr. It's a LAPACK situation and it's lowkey iconic. Buckle up, we're doing linear algebra together and it's gonna slay. β¨
β¨ SYNOPSIS β¨
π Functions π
subroutine zgtsv (N, NRHS, DL, D, DU, B, LDB, INFO)β ZGTSV computes the solution to system of linear equations A * X = B for GT matrices πsubroutine zgtsvx (FACT, TRANS, N, NRHS, DL, D, DU, DLF, DF, DUF, DU2, IPIV, B, LDB, X, LDX, RCOND, FERR, BERR, WORK, RWORK, INFO)β ZGTSVX computes the solution to system of linear equations A * X = B for GT matrices πΈ
π¦ Detailed Description π¦
This is the whole lil friend group of complex16 solve driver functions for GT matrices. That's the vibe. π«Ά
π Function Documentation π
π subroutine zgtsv
subroutine zgtsv (integer N, integer NRHS, complex*16, dimension( * ) DL,
complex*16, dimension( * ) D, complex*16, dimension( * ) DU, complex*16,
dimension( ldb, * ) B, integer LDB, integer INFO)
ZGTSV computes the solution to system of linear equations A * X = B for GT matrices β¨
π Purpose:
ZGTSV solves the equation
A*X = B,
where A is an N-by-N tridiagonal matrix, by Gaussian elimination with
partial pivoting.
Note that the equation A**T *X = B may be solved by interchanging the
order of the arguments DU and DL.
not me casually dropping Gaussian elimination with partial pivoting like it's nothing π she's a main character for real.
π Parameters π
NβNisINTEGER. It's the order of the matrixA, bestie.N >= 0. πNRHSβNRHSisINTEGER. The number of right hand sides, aka the number of columns of the matrixB.NRHS >= 0. πDLβDLisCOMPLEX*16array, dimension(N-1). On entry,DLmust contain the(n-1)subdiagonal elements ofA. On exit,DLis overwritten by the(n-2)elements of the second superdiagonal of the upper triangular matrixUfrom the LU factorization ofA, inDL(1), ..., DL(n-2). πΈDβDisCOMPLEX*16array, dimension(N). On entry,Dmust contain the diagonal elements ofA. On exit,Dis overwritten by thendiagonal elements ofU. β¨DUβDUisCOMPLEX*16array, dimension(N-1). On entry,DUmust contain the(n-1)superdiagonal elements ofA. On exit,DUis overwritten by the(n-1)elements of the first superdiagonal ofU. π¦BβBisCOMPLEX*16array, dimension(LDB,NRHS). On entry, theN-by-NRHSright hand side matrixB. On exit, ifINFO = 0, theN-by-NRHSsolution matrixX. πLDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N). π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, and the solution has not been computed. The factorization has not been completed unlessi = N. π
okay so that > 0 case? that's the "we didn't finish, girl" scenario. Pay attention to it, fr fr.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π§ subroutine zgtsvx
subroutine zgtsvx (character FACT, character TRANS, integer N, integer NRHS,
complex*16, dimension( * ) DL, complex*16, dimension( * ) D, complex*16,
dimension( * ) DU, complex*16, dimension( * ) DLF, complex*16,
dimension( * ) DF, complex*16, dimension( * ) DUF, complex*16,
dimension( * ) DU2, integer, dimension( * ) IPIV, complex*16, dimension(
ldb, * ) B, integer LDB, complex*16, dimension( ldx, * ) X, integer LDX,
double precision RCOND, double precision, dimension( * ) FERR, double
precision, dimension( * ) BERR, complex*16, dimension( * ) WORK, double
precision, dimension( * ) RWORK, integer INFO)
ZGTSVX computes the solution to system of linear equations A * X = B for GT matrices β¨
π Purpose:
ZGTSVX uses the LU factorization to compute the solution to a complex
system of linear equations A * X = B, A**T * X = B, or A**H * X = B,
where A is a tridiagonal matrix of order N and X and B are N-by-NRHS
matrices.
Error bounds on the solution and a condition estimate are also
provided.
π Description: π
Here's the lil step-by-step, and yes she eats every time:
- If
FACT = 'N', the LU decomposition is used to factor the matrixAasA = L * U, whereLis a product of permutation and unit lower bidiagonal matrices andUis upper triangular with nonzeros in only the main diagonal and first two superdiagonals. - If some
U(i,i)=0, so thatUis exactly singular, then the routine returns withINFO = i. Otherwise, the factored form ofAis used to estimate the condition number of the matrixA. If the reciprocal of the condition number is less than machine precision,INFO = N+1is returned as a warning, but the routine still goes on to solve forXand compute error bounds as described below. - The system of equations is solved for
Xusing the factored form ofA. - Iterative refinement is applied to improve the computed solution matrix and calculate error bounds and backward error estimates for it.
warning bestie:INFO = N+1means "it's giving singular-ish, be careful" β but she still finishes the job and hands youXwith error bounds. She's not a quitter. π
π Parameters π
FACTβFACTisCHARACTER*1. Specifies whether or not the factored form ofAhas been supplied on entry.= 'F':DLF,DF,DUF,DU2, andIPIVcontain the factored form ofA;DL,D,DU,DLF,DF,DUF,DU2andIPIVwill not be modified. π§= 'N': The matrix will be copied toDLF,DF, andDUFand factored. β¨
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) π
NβNisINTEGER. The order of the matrixA.N >= 0. πNRHSβNRHSisINTEGER. The number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0. πDLβDLisCOMPLEX*16array, dimension(N-1). The(n-1)subdiagonal elements ofA. πΈDβDisCOMPLEX*16array, dimension(N). Thendiagonal elements ofA. β¨DUβDUisCOMPLEX*16array, dimension(N-1). The(n-1)superdiagonal elements ofA. π¦DLFβDLFisCOMPLEX*16array, dimension(N-1).- If
FACT = 'F', thenDLFis an input argument and on entry contains the(n-1)multipliers that define the matrixLfrom the LU factorization ofAas computed byZGTTRF. - If
FACT = 'N', thenDLFis an output argument and on exit contains the(n-1)multipliers that define the matrixLfrom the LU factorization ofA.
- If
DFβDFisCOMPLEX*16array, dimension(N).- If
FACT = 'F', thenDFis an input argument and on entry contains thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA. - If
FACT = 'N', thenDFis an output argument and on exit contains thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA.
- If
DUFβDUFisCOMPLEX*16array, dimension(N-1).- If
FACT = 'F', thenDUFis an input argument and on entry contains the(n-1)elements of the first superdiagonal ofU. - If
FACT = 'N', thenDUFis an output argument and on exit contains the(n-1)elements of the first superdiagonal ofU.
- If
DU2βDU2isCOMPLEX*16array, dimension(N-2).- If
FACT = 'F', thenDU2is an input argument and on entry contains the(n-2)elements of the second superdiagonal ofU. - If
FACT = 'N', thenDU2is an output argument and on exit contains the(n-2)elements of the second superdiagonal ofU.
- If
IPIVβIPIVisINTEGERarray, dimension(N).- If
FACT = 'F', thenIPIVis an input argument and on entry contains the pivot indices from the LU factorization ofAas computed byZGTTRF. - If
FACT = 'N', thenIPIVis an output argument and on exit contains the pivot indices from the LU factorization ofA; rowiof the matrix was interchanged with rowIPIV(i).IPIV(i)will always be eitheriori+1;IPIV(i) = iindicates a row interchange was not required. π
- If
BβBisCOMPLEX*16array, dimension(LDB,NRHS). TheN-by-NRHSright hand side matrixB. πLDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N). πXβXisCOMPLEX*16array, dimension(LDX,NRHS). IfINFO = 0orINFO = N+1, theN-by-NRHSsolution matrixX. πLDXβLDXisINTEGER. The leading dimension of the arrayX.LDX >= max(1,N). πRCONDβRCONDisDOUBLE PRECISION. The estimate of the reciprocal condition number of the matrixA. IfRCONDis less than the machine precision (in particular, ifRCOND = 0), the matrix is singular to working precision. This condition is indicated by a return code ofINFO > 0. π¬FERRβFERRisDOUBLE PRECISIONarray, 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. π«ΆBERRβBERRisDOUBLE PRECISIONarray, 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βWORKisCOMPLEX*16array, dimension(2*N). π§RWORKβRWORKisDOUBLE PRECISIONarray, dimension(N). πΈINFOβ (bestie hold on, theINFOdeets are literally in the next part, don't go anywhere π)
and finally, the parameter that's basically the group chat read receipt:
INFOisINTEGERβ this is the tea β it tells you if everything popped off or if it flopped.= 0: successful exit β slay, we love a clean run β¨< 0: ifINFO = -i, then thei-th argument had an illegal value β not iconic, someone passed something cursed π> 0: ifINFO = i, andiis:<= N:U(i,i)is exactly zero. The factorization has not been completed unlessi = N, but the factorUis exactly singular, so the solution and error bounds could not be computed.RCOND = 0is returned. π full-on singular behavior, no cap.= N+1:Uis nonsingular, butRCONDis less than machine precision, meaning that the matrix is singular to working precision. Nevertheless, the solution and error bounds are computed because there are a number of situations where the computed solution can be more accurate than the value ofRCONDwould suggest. lowkey surprising but fr fr π€―
π 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.
That's the whole vibe, bestie. This page is serving LAPACK version 3.11.0, dated Sun Nov 27 2022, and it's literally complex16GTsolve(3). Stay singular-free! πβ¨
π¦ 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