SRC/csprfs.f(3)
SRC/csprfs.f(3) Β· Library Functions Manual β¨ okay bestie, buckle up, we're doing the CSPRFS glow-up π«Ά
π NAME π
SRC/csprfs.f β that's the name, and we're keeping it exactly like that π
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
Here's the function/subroutine energy:
subroutine csprfs (uplo, n, nrhs, ap, afp, ipiv, b, ldb, x, ldx, ferr,
berr, work, rwork, info)
CSPRFS
π Function/Subroutine Documentation π
Okay so the main character is this subroutine, and its whole signature is right here:
subroutine csprfs (character uplo, integer n, integer nrhs, complex,
dimension( * ) ap, complex, dimension( * ) afp, integer, dimension( * )
ipiv, 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)
CSPRFS
π― Purpose: π―
CSPRFS improves the computed solution to a system of linear equations when the coefficient matrix is symmetric indefinite and packed, and it provides error bounds and backward error estimates for the solution. periodt π
β¨
π§Ύ Parameters π§Ύ
UPLOβ it's aCHARACTER*1, and it picks which triangle ofAwe're storing:= 'U'means the upper triangle ofAis stored;= 'L'means the lower triangle ofAis stored. π¦NβNisINTEGER, and it's the order of the matrixA.N >= 0πNRHSβNRHSisINTEGER, and it's the number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0β¨APβAPisCOMPLEX array, dimension(N*(N+1)/2). It holds the upper or lower triangle of the symmetric matrixA, packed columnwise in a linear array. The j-th column ofAis stored in the arrayAPas follows: ifUPLO = 'U',AP(i + (j-1)*j/2) = A(i,j)for1<=i<=j; ifUPLO = 'L',AP(i + (j-1)*(2*n-j)/2) = A(i,j)forj<=i<=n. πAFPβAFPisCOMPLEX array, dimension(N*(N+1)/2). It's the factored form of the matrixA.AFPcontains the block diagonal matrixDand the multipliers used to obtain the factorUorLfrom the factorizationA = U*D*U**TorA = L*D*L**Tas computed byCSPTRF, stored as a packed triangular matrix. iconic π₯IPIVβIPIVisINTEGER array, dimension(N). It has the details of the interchanges and the block structure ofDas determined byCSPTRF. π«ΆBβBisCOMPLEX array, dimension(LDB,NRHS). It's the right hand side matrixB. πLDBβLDBisINTEGER, and it's the leading dimension of the arrayB.LDB >= max(1,N)πΈXβXisCOMPLEX array, dimension(LDX,NRHS). On entry, it's the solution matrixX, as computed byCSPTRS. On exit, it's the improved solution matrixX. β¨LDXβLDXisINTEGER, and it's the leading dimension of the arrayX.LDX >= max(1,N)π¦FERRβFERRisREAL array, dimension(NRHS). It's 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βBERRisREAL array, dimension(NRHS). It's 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(2*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β this is the maximum number of steps of iterative refinement. π₯
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 178 of file csprfs.f. π
π Author π
Generated automatically by Doxygen for LAPACK from the source code. π«Ά
And that's the whole vibe, bestie π this one comes from <rainbow>LAPACK Version 3.12.0</rainbow>, page SRC/csprfs.f(3) β footer energy, but make it cute β¨
π¦ 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