trrfs(3)
π NAME
okay so bestie, this is trrfs(3) β straight out of the Library Functions Manual β and it's literally called trrfs, which stands for trrfs: triangular iterative refinement. iconic name, iykyk π
β¨ SYNOPSIS
π Functions
subroutine ctrrfs (uplo, trans, diag, n, nrhs, a, lda, b, ldb, x, ldx, ferr, berr, work, rwork, info)β CTRRFSsubroutine dtrrfs (uplo, trans, diag, n, nrhs, a, lda, b, ldb, x, ldx, ferr, berr, work, iwork, info)β DTRRFSsubroutine strrfs (uplo, trans, diag, n, nrhs, a, lda, b, ldb, x, ldx, ferr, berr, work, iwork, info)β STRRFSsubroutine ztrrfs (uplo, trans, diag, n, nrhs, a, lda, b, ldb, x, ldx, ferr, berr, work, rwork, info)β ZTRRFS
π¦ DETAILED DESCRIPTION
π Function 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.
!>
so real talk: it hands you error bounds and backward error estimates for a triangular system. and heads up β your X has to already exist before you walk in here (computed by CTTRTRS... no wait, by CTRTRS or "some other means"). and it does not do iterative refinement, because apparently that cannot improve the backward error. periodt. π
π Parameters
UPLOβUPLO is CHARACTER*1= 'U': A is upper triangular;= 'L': A is lower triangular.
TRANSβTRANS is CHARACTER*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)
DIAGβDIAG is CHARACTER*1= 'N': A is non-unit triangular;= 'U': A is unit triangular.
NβN is INTEGER. The order of the matrixA.N >= 0.NRHSβNRHS is INTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.AβA is COMPLEX array, dimension (LDA,N). The triangular matrixA. 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.LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,N).BβB is COMPLEX array, dimension (LDB,NRHS). The right hand side matrixB.LDBβLDB is INTEGER. The leading dimension of the arrayB.LDB >= max(1,N).XβX is COMPLEX array, dimension (LDX,NRHS). The solution matrixX.LDXβLDX is INTEGER. The leading dimension of the arrayX.LDX >= max(1,N).FERRβFERR is REAL array, 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βBERR is REAL array, 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βWORK is COMPLEX array, dimension (2*N)RWORKβRWORK is REAL array, dimension (N)INFOβINFO is INTEGER= 0: successful exit< 0: if INFO = -i, the i-th argument had an illegal value
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
β Definition
Definition at line 180 of file ctrrfs.f.
π§ subroutine dtrrfs (character uplo, character trans, character diag, integer n, integer nrhs, double precision, dimension( lda, * ) a, integer lda, 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)
DTRRFS π
π Purpose
!>
!> DTRRFS 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 DTRTRS or some other
!> means before entering this routine. DTRRFS does not do iterative
!> refinement because doing so cannot improve the backward error.
!>
same energy, double precision edition π«Ά β error bounds + backward error estimates for a triangular-coefficient system, X must already be computed by DTRTRS or some other means before you enter, and nope, no iterative refinement here either, because it cannot improve the backward error. no cap.
π Parameters
UPLOβUPLO is CHARACTER*1= 'U': A is upper triangular;= 'L': A is lower triangular.
TRANSβTRANS is CHARACTER*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 = Transpose)
DIAGβDIAG is CHARACTER*1= 'N': A is non-unit triangular;= 'U': A is unit triangular.
NβN is INTEGER. The order of the matrixA.N >= 0.NRHSβNRHS is INTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.AβA is DOUBLE PRECISION array, dimension (LDA,N). The triangular matrixA. 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.LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,N).BβB is DOUBLE PRECISION array, dimension (LDB,NRHS). The right hand side matrixB.LDBβLDB is INTEGER. The leading dimension of the arrayB.LDB >= max(1,N).XβX is DOUBLE PRECISION array, dimension (LDX,NRHS). The solution matrixX.LDXβLDX is INTEGER. The leading dimension of the arrayX.LDX >= max(1,N).FERRβFERR is DOUBLE PRECISION array, 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βBERR is DOUBLE PRECISION array, 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βWORK is DOUBLE PRECISION array, dimension (3*N)IWORKβIWORK is INTEGER array, dimension (N)INFOβINFO is INTEGER= 0: successful exit< 0: if INFO = -i, the i-th argument had an illegal value
π₯ bestie note the glow-up:WORKis3*Nhere (not2*Nlike the complex one) and there's anIWORKinteger array of dimension(N)instead of anRWORK.
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
β Definition
Definition at line 180 of file dtrrfs.f.
π§ subroutine strrfs (character uplo, character trans, character diag, integer n, integer nrhs, real, dimension( lda, * ) a, integer lda, real, dimension( ldb, * ) b, integer ldb, real, dimension( ldx, * ) x, integer ldx, real, dimension( * ) ferr, real, dimension( * ) berr, real, dimension( * ) work, integer, dimension( * ) iwork, integer info)
STRRFS π
π Purpose
!>
!> STRRFS 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 STRTRS or some other
!> means before entering this routine. STRRFS does not do iterative
!> refinement because doing so cannot improve the backward error.
!>
single precision version, same whole vibe π β error bounds and backward error estimates for a triangular coefficient matrix, X precomputed by STRTRS or some other means, and no iterative refinement because it cannot improve the backward error. that's the whole thesis, fr fr.
π Parameters
πΈ UPLO
(okay so this one picks up right here β part 2 has the rest, don't leave me hanging π«Ά)
okay bestie, we're mid-parameter-list and I would never leave you hanging π
here's every single one for strrfs, no cap:
UPLOβUPLOisCHARACTER*1.= 'U':Ais upper triangular;= 'L':Ais lower triangular. π¦TRANSβ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 = Transpose). β¨DIAGβDIAGisCHARACTER*1.= 'N':Ais non-unit triangular;= 'U':Ais unit triangular. πNβNisINTEGER. The order of the matrixA.N >= 0. πNRHSβNRHSisINTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0. πΈAβAisREAL array, dimension (LDA,N). The triangular matrixA. IfUPLO = 'U', the leading N-by-N upper triangular part of the arrayAcontains the upper triangular matrix, and the strictly lower triangular part ofAis not referenced. IfUPLO = 'L', the leading N-by-N lower 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. π«ΆLDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N). π₯BβBisREAL array, dimension (LDB,NRHS). The right hand side matrixB. πLDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N). πXβXisREAL array, dimension (LDX,NRHS). The solution matrixX. βLDXβLDXisINTEGER. The leading dimension of the arrayX.LDX >= max(1,N). πFERRβFERRisREAL array, 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βBERRisREAL array, 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βWORKisREAL array, dimension (3*N). πIWORKβIWORKisINTEGER array, dimension (N). π§INFOβ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 strrfs.f.
π subroutine ztrrfs β the complex one, she's here
subroutine ztrrfs (character uplo, character trans, character diag, integer
n, integer nrhs, complex*16, dimension( lda, * ) a, integer lda,
complex*16, dimension( ldb, * ) b, integer ldb, complex*16, dimension(
ldx, * ) x, integer ldx, double precision, dimension( * ) ferr, double
precision, dimension( * ) berr, complex*16, dimension( * ) work, double
precision, dimension( * ) rwork, integer info)
ZTRRFS
π― Purpose
ZTRRFS 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 ZTRTRS or some other means before entering this routine. ZTRRFS does not do iterative refinement because doing so cannot improve the backward error. π
π Parameters
UPLOβUPLOisCHARACTER*1.= 'U':Ais upper triangular;= 'L':Ais lower triangular. π¦TRANSβ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). β¨DIAGβDIAGisCHARACTER*1.= 'N':Ais non-unit triangular;= 'U':Ais unit triangular. πNβNisINTEGER. The order of the matrixA.N >= 0. πNRHSβNRHSisINTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0. πΈAβAisCOMPLEX*16 array, dimension (LDA,N). The triangular matrixA. IfUPLO = 'U', the leading N-by-N upper triangular part of the arrayAcontains the upper triangular matrix, and the strictly lower triangular part ofAis not referenced. IfUPLO = 'L', the leading N-by-N lower 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. π«ΆLDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N). π₯BβBisCOMPLEX*16 array, dimension (LDB,NRHS). The right hand side matrixB. πLDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N). πXβXisCOMPLEX*16 array, dimension (LDX,NRHS). The solution matrixX. βLDXβLDXisINTEGER. The leading dimension of the arrayX.LDX >= max(1,N). πFERRβFERRisDOUBLE PRECISION array, 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βBERRisDOUBLE PRECISION array, 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βWORKisCOMPLEX*16 array, dimension (2*N). πRWORKβRWORKisDOUBLE PRECISION array, dimension (N). π§INFOβ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 ztrrfs.f.
πΈ Author (auto-generated, bestie) πΈ
Generated automatically by Doxygen for LAPACK from the source code.
mwah π that's the whole trrfs(3) page β source/version is LAPACK, Version 3.12.0, and the page is trrfs(3). bye bestie, you ate that! ππ
π¦ 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