SRC/ctrrfs.f(3)
πΈ NAME πΈ
okay so this page is SRC/ctrrfs.f(3) from the Library Functions Manual, and it's literally all about CTRRFS, bestie. It's the subroutine that gives you error bounds and backward error estimates. slay.
π SYNOPSIS π
β¨ Functions/Subroutines β¨
subroutine ctrrfs (uplo, trans, diag, n, nrhs, a, lda, b, ldb, x, ldx,
ferr, berr, work, rwork, info)
CTRRFS
π Function/Subroutine Documentation π
subroutine ctrrfs (character uplo, character trans, character diag, integer
n, integer nrhs, complex, dimension( lda, * ) a, integer lda, 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)
CTRRFS
π Purpose π
CTRRFS provides error bounds and backward error estimates for the solution to a system of linear equations with a triangular coefficient matrix.
The solution matrix X must be computed by CTRTRS or some other means before entering this routine. CTRRFS does not do iterative refinement because doing so cannot improve the backward error. no cap, it's just not that kind of routine π
π¦ Parameters π¦
UPLOisCHARACTER*1= 'U':A is upper triangular;= 'L':A is lower triangular.
TRANSisCHARACTER*1- Specifies the form of the system of equations:
= 'N':A * X = B(No transpose)= 'T':A**T * X = B(Transpose)= 'C':A**H * X = B(Conjugate transpose)
DIAGisCHARACTER*1= 'N':A is non-unit triangular;= 'U':A is unit triangular.
NisINTEGER- The order of the matrix
A.N >= 0.
- The order of the matrix
NRHSisINTEGER- The number of right hand sides, i.e., the number of columns of the matrices
BandX.NRHS >= 0.
- The number of right hand sides, i.e., the number of columns of the matrices
AisCOMPLEXarray, dimension(LDA,N)- The triangular matrix
A. IfUPLO = 'U', the leadingN-by-Nupper triangular part of the arrayAcontains the upper triangular matrix, and the strictly lower triangular part ofAis not referenced. IfUPLO = 'L', the leadingN-by-Nlower triangular part of the arrayAcontains the lower triangular matrix, and the strictly upper triangular part ofAis not referenced. IfDIAG = 'U', the diagonal elements ofAare also not referenced and are assumed to be1.
- The triangular matrix
LDAisINTEGER- The leading dimension of the array
A.LDA >= max(1,N).
- The leading dimension of the array
BisCOMPLEXarray, dimension(LDB,NRHS)- The right hand side matrix
B.
- The right hand side matrix
LDBisINTEGER- The leading dimension of the array
B.LDB >= max(1,N).
- The leading dimension of the array
XisCOMPLEXarray, dimension(LDX,NRHS)- The solution matrix
X.
- The solution matrix
LDXisINTEGER- The leading dimension of the array
X.LDX >= max(1,N).
- The leading dimension of the array
FERRisREALarray, dimension(NRHS)- The estimated forward error bound for each solution vector
X(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.
- The estimated forward error bound for each solution vector
BERRisREALarray, dimension(NRHS)- The componentwise relative backward error of each solution vector
X(j)(i.e., the smallest relative change in any element ofAorBthat makesX(j)an exact solution).
- The componentwise relative backward error of each solution vector
WORKisCOMPLEXarray, dimension(2*N)RWORKisREALarray, dimension(N)INFOisINTEGER= 0:successful exit< 0:ifINFO = -i, thei-th argument had an illegal value
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 180 of file ctrrfs.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay that's the whole page, bestie π β it's from LAPACK Version 3.12.0, and the file is SRC/ctrrfs.f(3). 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