SRC/cptrfs.f(3)
π NAME π
SRC/cptrfs.f β okay so bestie, this is the Library Functions Manual page for CPTRFS, and it lives at SRC/cptrfs.f(3). It's here to improve your computed solution to a Hermitian positive definite tridiagonal linear system, and honestly? iconic. β¨
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines πΈ
subroutine cptrfs (uplo, n, nrhs, d, e, df, ef, b, ldb, x, ldx, ferr,
berr, work, rwork, info)
CPTRFS
π¦ Function/Subroutine Documentation π¦
subroutine cptrfs (character uplo, integer n, integer nrhs, real, dimension(
* ) d, complex, dimension( * ) e, real, dimension( * ) df, complex,
dimension( * ) ef, complex, dimension( ldb, * ) b, integer ldb, complex,
dimension( ldx, * ) x, integer ldx, real, dimension( * ) ferr, real,
dimension( * ) berr, complex, dimension( * ) work, real, dimension( * )
rwork, integer info)
CPTRFS
π Purpose π
Okay so CPTRFS improves the computed solution to a system of linear equations when the coefficient matrix is Hermitian positive definite and tridiagonal, and it provides error bounds and backward error estimates for the solution. it's giving accuracy aftercare, periodt. π
π Parameters π
every single one, no skipping, bestie:
UPLOβUPLOisCHARACTER*1. It specifies whether the superdiagonal or the subdiagonal of the tridiagonal matrixAis stored and the form of the factorization:= 'U':Eis the superdiagonal ofA, andA = U**H*D*U;= 'L':Eis the subdiagonal ofA, andA = L*D*L**H. (The two forms are equivalent ifAis real.)
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.DβDisREAL array, dimension (N). The n real diagonal elements of the tridiagonal matrixA.EβEisCOMPLEX array, dimension (N-1). The (n-1) off-diagonal elements of the tridiagonal matrixA(seeUPLO).DFβDFisREAL array, dimension (N). The n diagonal elements of the diagonal matrixDfrom the factorization computed byCPTTRF.EFβEFisCOMPLEX array, dimension (N-1). The (n-1) off-diagonal elements of the unit bidiagonal factorUorLfrom the factorization computed byCPTTRF(seeUPLO).BβBisCOMPLEX array, dimension (LDB,NRHS). The right hand side matrixB.LDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).XβXisCOMPLEX array, dimension (LDX,NRHS). On entry, the solution matrixX, as computed byCPTTRS. On exit, the improved solution matrixX.LDXβLDXisINTEGER. The leading dimension of the arrayX.LDX >= max(1,N).FERRβFERRisREAL array, dimension (NRHS). The 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).BERRβBERRisREAL 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βWORKisCOMPLEX array, dimension (N).RWORKβRWORKisREAL array, dimension (N).INFOβINFOisINTEGER.= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value
π§ Internal Parameters π§
ITMAXβITMAXis the maximum number of steps of iterative refinement. that's the whole section, but it matters. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 181 of file cptrfs.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay that's the whole page, bestie β this cutie is SRC/cptrfs.f(3) from LAPACK Version 3.12.0. go improve those solutions and slay. πβ¨
π¦ 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