TESTING/LIN/cpbt02.f(3)
π TESTING/LIN/cpbt02.f π
okay so bestie, this is the TESTING/LIN/cpbt02.f page from the Library Functions Manual. Itβs giving tiny subroutine, big residual energy, and we are going to go through every single bit. π
β¨
β¨ NAME β¨
TESTING/LIN/cpbt02.f β thatβs the page name, and the main character is the cpbt02 routine. No cap. π
πΈ SYNOPSIS πΈ
π Functions/Subroutines π
subroutine cpbt02 (uplo, n, kd, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)βCPBT02.
π¦ Function/Subroutine Documentation π¦
Hereβs the full signature, bestie β copy it exactly, okay? π«Ά
subroutine cpbt02 (character uplo, integer n, integer kd, integer nrhs,
complex, dimension( lda, * ) a, integer lda, complex, dimension( ldx, *
) x, integer ldx, complex, dimension( ldb, * ) b, integer ldb, real,
dimension( * ) rwork, real resid)
CPBT02
π― Purpose π―
CPBT02 computes the residual for a solution of a Hermitian banded system of equations A*x = b:
RESID = norm( B - A*X ) / ( norm(A) * norm(X) * EPS)
where EPS is the machine precision. Slay, thatβs the whole point. β¨
π§ Parameters π§
UPLOβUPLO is CHARACTER*1. Tells you whether the upper or lower triangular part of the Hermitian matrixAis stored:= 'U': Upper triangular= 'L': Lower triangular
NβN is INTEGER. The number of rows and columns of the matrixA.N >= 0.KDβKD is INTEGER. The number of super-diagonals of the matrixAifUPLO = 'U', or the number of sub-diagonals ifUPLO = 'L'.KD >= 0.NRHSβNRHS is INTEGER. The number of right hand sides.NRHS >= 0.AβA is COMPLEX array, dimension (LDA,N). The original Hermitian band matrixA. IfUPLO = 'U', the upper triangular part ofAis stored as a band matrix; ifUPLO = 'L', the lower triangular part ofAis stored. The columns of the appropriate triangle are stored in the columns ofAand the diagonals of the triangle are stored in the rows ofA. SeeCPBTRFfor further details.LDAβLDA is INTEGER.The leading dimension of the arrayA.LDA >= max(1,KD+1).XβX is COMPLEX array, dimension (LDX,NRHS). The computed solution vectors for the system of linear equations.LDXβLDX is INTEGER. The leading dimension of the arrayX.LDX >= max(1,N).BβB is COMPLEX array, dimension (LDB,NRHS). On entry, the right hand side vectors for the system of linear equations. On exit,Bis overwritten with the differenceB - A*X.LDBβLDB is INTEGER. The leading dimension of the arrayB.LDB >= max(1,N).RWORKβRWORK is REAL array, dimension (N)RESIDβRESID is REAL. The maximum over the number of right hand sides ofnorm(B - A*X) / ( norm(A) * norm(X) * EPS ).
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 134 of file cpbt02.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Byeee bestie π«Ά β this whole page is TESTING/LIN/cpbt02.f(3) from LAPACK Version 3.12.0, generated automatically by Doxygen for LAPACK from the source code. Mwah ππ
π¦ 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