ZPTT02(3)
π
ZPTT02(3) β Library Functions Manual π
okay so bestie, welcome to ZPTT02(3) from the Library Functions Manual. This is a LAPACK testing-lin subroutine page, and it's about to explain a residual check like it's the group-chat tea. Let's get into it π«Ά
π NAME π
The NAME entry points at this source file path:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/zptt02.f
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines πΈ
subroutine ZPTT02β(uplo, n, nrhs, d, e, x, ldx, b, ldb, resid). That's the short version, bestie.ZPTT02β the routine name again, because that's literally what the synopsis shows π
π«Ά Function/Subroutine Documentation π«Ά
Here's the full signature, exactly as written:
subroutine ZPTT02 (character uplo, integer n, integer nrhs, double
precision, dimension( * ) d, complex*16, dimension( * ) e, complex*16,
dimension( ldx, * ) x, integer ldx, complex*16, dimension( ldb, * ) b,
integer ldb, double precision resid)
And yeah, the page just says ZPTT02 again right after β iconic repetition, no notes π
π Purpose π
The source wraps this in !> Doxygen comments, but the tea is: ZPTT02 computes the residual for the solution to a symmetric tridiagonal system of equations:
RESID = norm(B - A*X) / (norm(A) * norm(X) * EPS),
where EPS is the machine epsilon. periodt π¦
π Parameters π
UPLOβCHARACTER*1. Specifies whether the superdiagonal or the subdiagonal of the tridiagonal matrixAis stored.= 'U':Eis the superdiagonal ofA.= 'L':Eis the subdiagonal ofA. πNβINTEGER. The order of the matrixA.NRHSβINTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.DβDOUBLE PRECISIONarray, dimension(N). Thendiagonal elements of the tridiagonal matrixA.EβCOMPLEX*16array, dimension(N-1). The(n-1)subdiagonal elements of the tridiagonal matrixA.XβCOMPLEX*16array, dimension(LDX,NRHS). Thenbynrhsmatrix of solution vectorsX.LDXβINTEGER. The leading dimension of the arrayX.LDX >= max(1,N).BβCOMPLEX*16array, dimension(LDB,NRHS). On entry, thenbynrhsmatrix of right hand side vectorsB. On exit,Bis overwritten with the differenceB - A*X.LDBβINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).RESIDβDOUBLE PRECISION.norm(B - A*X) / (norm(A) * norm(X) * EPS).
π Author π
The academic icons behind this:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition at line 114 of file zptt02.f. π
π Author β auto-generated edition π
Generated automatically by Doxygen for LAPACK from the source code.
okay bestie, that's the whole page. The footer vibe is LAPACK Version 3.12.0 and the abbreviated source path /home/abui...IN/zptt02.f(3). There's no date listed on the page, so I'm not making one up β fr fr. Stay slay, and may your residual always be small πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms