complex16PTsolve(3)
πΈ NAME πΈ
complex16PTsolve β the complex16 girlies of the PT-solve world π
β¨ SYNOPSIS β¨
π Functions
subroutine zptsv (N, NRHS, D, E, B, LDB, INFO)βZPTSVcomputes the solution to system of linear equationsA * X = Bfor PT matricessubroutine zptsvx (FACT, N, NRHS, D, E, DF, EF, B, LDB, X, LDX, RCOND, FERR, BERR, WORK, RWORK, INFO)βZPTSVXcomputes the solution to system of linear equationsA * X = Bfor PT matrices
π¦ Detailed Description π¦
This is the group of complex16 solve driver functions for PT matrices. yes bestie, a whole lil squad of them. periodt.
π Function Documentation π
π subroutine zptsv
subroutine zptsv (integer N, integer NRHS, double precision, dimension( * )
D, complex*16, dimension( * ) E, complex*16, dimension( ldb, * ) B,
integer LDB, integer INFO)
ZPTSV computes the solution to system of linear equations A * X = B for PT matrices. slay.
π Purpose
ZPTSV computes the solution to a complex system of linear equations
A*X = B,
where A is an N-by-N Hermitian positive definite tridiagonal matrix, and X and B are N-by-NRHS matrices.
A is factored as A = L*D*L**H, and the factored form of A is then used to solve the system of equations.
π Parameters
NNis INTEGER- The order of the matrix
A.N >= 0.
NRHSNRHSis INTEGER- The number of right hand sides, i.e., the number of columns of the matrix
B.NRHS >= 0.
DDis DOUBLE PRECISION array, dimension (N)- On entry, the n diagonal elements of the tridiagonal matrix
A. On exit, the n diagonal elements of the diagonal matrixDfrom the factorizationA = L*D*L**H.
EEis COMPLEX*16 array, dimension (N-1)- On entry, the (n-1) subdiagonal elements of the tridiagonal matrix
A. On exit, the (n-1) subdiagonal elements of the unit bidiagonal factorLfrom theL*D*L**Hfactorization ofA.Ecan also be regarded as the superdiagonal of the unit bidiagonal factorUfrom theU**H*D*Ufactorization ofA.
BBis COMPLEX*16 array, dimension (LDB,NRHS)- On entry, the N-by-NRHS right hand side matrix
B. On exit, ifINFO = 0, the N-by-NRHS solution matrixX.
LDBLDBis INTEGER- The leading dimension of the array
B.LDB >= max(1,N).
INFOINFOis INTEGER= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value> 0: ifINFO = i, the leading minor of order i is not positive definite, and the solution has not been computed. The factorization has not been completed unlessi = N.
π«Ά Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π§ subroutine zptsvx
subroutine zptsvx (character FACT, integer N, integer NRHS, double
precision, dimension( * ) D, complex*16, dimension( * ) E, double
precision, dimension( * ) DF, complex*16, dimension( * ) EF, 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)
ZPTSVX computes the solution to system of linear equations A * X = B for PT matrices. the overachiever of the family fr fr.
π Purpose
ZPTSVX uses the factorization A = L*D*L**H to compute the solution to a complex system of linear equations A*X = B, where A is an N-by-N Hermitian positive definite tridiagonal matrix and X and B are N-by-NRHS matrices.
Error bounds on the solution and a condition estimate are also provided. it's giving thorough.
πΈ Description
The following steps are performed:
- If
FACT = 'N', the matrixAis factored asA = L*D*L**H, whereLis a unit lower bidiagonal matrix andDis diagonal. The factorization can also be regarded as having the formA = U**H*D*U. - If the leading i-by-i principal minor is not positive definite, then the routine returns with
INFO = 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.
π Parameters
FACTFACTis CHARACTER*1- Specifies whether or not the factored form of the matrix
Ais supplied on entry. = 'F': On entry,DFandEFcontain the factored form ofA.D,E,DF, andEFwill not be modified.= 'N': The matrixAwill be copied toDFandEFand factored.
NNis INTEGER- The order of the matrix
A.N >= 0.
NRHSNRHSis INTEGER- The number of right hand sides, i.e., the number of columns of the matrices
BandX.NRHS >= 0.
DDis DOUBLE PRECISION array, dimension (N)- The n diagonal elements of the tridiagonal matrix
A.
EEis COMPLEX*16 array, dimension (N-1)- The (n-1) subdiagonal elements of the tridiagonal matrix
A.
DFDFis DOUBLE PRECISION array, dimension (N)- If
FACT = 'F', thenDFis an input argument and on entry contains the n diagonal elements of the diagonal matrixDfrom theL*D*L**Hfactorization ofA. IfFACT = 'N', thenDFis an output argument and on exit contains the n diagonal elements of the diagonal matrixDfrom theL*D*L**Hfactorization ofA.
EFEFis COMPLEX*16 array, dimension (N-1)- If
FACT = 'F', thenEFis an input argument and on entry contains the (n-1) subdiagonal elements of the unit bidiagonal factorLfrom theL*D*L**Hfactorization ofA. IfFACT = 'N', thenEFis an output argument and on exit contains the (n-1) subdiagonal elements of the unit bidiagonal factorLfrom theL*D*L**Hfactorization ofA.
BBis COMPLEX*16 array, dimension (LDB,NRHS)- The N-by-NRHS right hand side matrix
B.
LDBLDBis INTEGER- The leading dimension of the array
B.LDB >= max(1,N).
XXis COMPLEX*16 array, dimension (LDX,NRHS)- If
INFO = 0orINFO = N+1, the N-by-NRHS solution matrixX.
LDXLDXis INTEGER- The leading dimension of the array
X.LDX >= max(1,N).
RCONDRCONDis DOUBLE PRECISION- The reciprocal condition number of the matrix
A. 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.
FERRFERRis DOUBLE PRECISION array, dimension (NRHS)- The forward error bound for each solution vector
X(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).
BERRBERRis DOUBLE PRECISION array, dimension (NRHS)- The componentwise relative backward error of each solution vector
X(j)(i.e., the smallest relative change in any element ofAorBthat makesX(j)an exact solution).
WORKWORKis COMPLEX*16 array, dimension (N)
RWORKRWORKis DOUBLE PRECISION array, dimension (N)
INFOINFOis INTEGER= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value> 0: ifINFO = i, and i is<= N: the leading minor of order i ofAis not positive definite, so the factorization could not be completed, and the solution has not been computed.RCOND = 0is returned.= 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.
π«Ά 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.
no cap, a robot wrote this section and honestly? it ate. π€β¨
okay bestie that's the whole page π«Ά this was LAPACK, version 3.11.0, dated Sun Nov 27 2022, and honestly the way this manpage showed up and understood the assignment?? iconic. go solve something Hermitian positive definite tridiagonal, you've got this π
π
π¦ 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