SRC/dsprfs.f(3)
π NAME π
SRC/dsprfs.f β okay bestie, this is the LAPACK page for the DSPRFS subroutine, folded in from the Library Functions Manual. No cap, itβs giving βsymmetric indefinite packed matrixβ main character energy.
β¨ SYNOPSIS β¨
π¦ Functions/Subroutines π¦
subroutine dsprfs (uplo, n, nrhs, ap, afp, ipiv, b, ldb, x, ldx, ferr,
berr, work, iwork, info)
DSPRFS
πΈ Function/Subroutine Documentation πΈ
subroutine dsprfs (character uplo, integer n, integer nrhs, double
precision, dimension( * ) ap, double precision, dimension( * ) afp,
integer, dimension( * ) ipiv, double precision, dimension( ldb, * ) b,
integer ldb, double precision, dimension( ldx, * ) x, integer ldx,
double precision, dimension( * ) ferr, double precision, dimension( * )
berr, double precision, dimension( * ) work, integer, dimension( * )
iwork, integer info)
DSPRFS
π― Purpose π―
Okay so the whole vibe of DSPRFS is: it improves the computed solution to a system of linear equations when the coefficient matrix is symmetric indefinite and packed, and it also provides error bounds and backward error estimates for the solution. Slay.
π§Έ Parameters π§Έ
UPLOβCHARACTER*1;= 'U': Upper triangle of A is stored;= 'L': Lower triangle of A is stored.NβINTEGER; the order of the matrixA.N >= 0.NRHSβINTEGER; the number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.APβDOUBLE PRECISIONarray, dimension(N*(N+1)/2); the upper or lower triangle of the symmetric matrixA, packed columnwise in a linear array. Thej-th column ofAis stored in the arrayAPas follows:- if
UPLO = 'U',AP(i + (j-1)*j/2) = A(i,j)for1<=i<=j; - if
UPLO = 'L',AP(i + (j-1)*(2*n-j)/2) = A(i,j)forj<=i<=n.
- if
AFPβDOUBLE PRECISIONarray, dimension(N*(N+1)/2); 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 byDSPTRF, stored as a packed triangular matrix.IPIVβINTEGERarray, dimension(N); details of the interchanges and the block structure ofDas determined byDSPTRF.BβDOUBLE PRECISIONarray, dimension(LDB,NRHS); the right hand side matrixB.LDBβINTEGER; the leading dimension of the arrayB.LDB >= max(1,N).XβDOUBLE PRECISIONarray, dimension(LDX,NRHS); on entry, the solution matrixX, as computed byDSPTRS. On exit, the improved solution matrixX.LDXβINTEGER; the leading dimension of the arrayX.LDX >= max(1,N).FERRβDOUBLE PRECISIONarray, dimension(NRHS); the estimated forward error bound for each solution vectorX(j)(thej-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βDOUBLE PRECISIONarray, 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βDOUBLE PRECISIONarray, dimension(3*N).IWORKβINTEGERarray, dimension(N).INFOβINTEGER;= 0: successful exit;< 0: ifINFO = -i, thei-th argument had an illegal value.
π§ Internal Parameters π§
ITMAXβ the maximum number of steps of iterative refinement.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition π
Definition at line 177 of file dsprfs.f.
π«Ά Author (the Doxygen one) π«Ά
Generated automatically by Doxygen for LAPACK from the source code.
made with π by LAPACK, Version 3.12.0 β page SRC/dsprfs.f(3) β and the footerβs date slot was giving empty, so Iβm not making one up, bestie ππ«Ά
π¦ 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