porfsx(3)

🌸 porfsx(3) β€” iterative refinement, expert 🌸

okay so bestie, this is porfsx from section 3 of the Library Functions Manual, and it is literally giving β€œLAPACK routine that makes your Hermitian positive definite solve look correct and cute” energy. ✨


🌸 NAME 🌸

porfsx β€” porfsx: iterative refinement, expert


✨ SYNOPSIS ✨

🫢 Functions 🫢

subroutine cporfsx (uplo, equed, n, nrhs, a, lda, af, ldaf, s, b, ldb, x, ldx, rcond, berr, n_err_bnds, err_bnds_norm, err_bnds_comp, nparams, params, work, rwork, info)
subroutine dporfsx (uplo, equed, n, nrhs, a, lda, af, ldaf, s, b, ldb, x, ldx, rcond, berr, n_err_bnds, err_bnds_norm, err_bnds_comp, nparams, params, work, iwork, info)
subroutine sporfsx (uplo, equed, n, nrhs, a, lda, af, ldaf, s, b, ldb, x, ldx, rcond, berr, n_err_bnds, err_bnds_norm, err_bnds_comp, nparams, params, work, iwork, info)
subroutine zporfsx (uplo, equed, n, nrhs, a, lda, af, ldaf, s, b, ldb, x, ldx, rcond, berr, n_err_bnds, err_bnds_norm, err_bnds_comp, nparams, params, work, rwork, info)

The labels are literally CPORFSX, DPORFSX, SPORFSX, and ZPORFSX. no cap. πŸ’…


πŸ’– Detailed Description πŸ’–


πŸ”₯ Function Documentation πŸ”₯

🧚 subroutine cporfsx 🧚

subroutine cporfsx (character uplo, character equed, integer n, integer
    nrhs, complex, dimension( lda, * ) a, integer lda, complex, dimension(
    ldaf, * ) af, integer ldaf, real, dimension( * ) s, complex, dimension(
    ldb, * ) b, integer ldb, complex, dimension( ldx, * ) x, integer ldx,
    real rcond, real, dimension( * ) berr, integer n_err_bnds, real,
    dimension( nrhs, * ) err_bnds_norm, real, dimension( nrhs, * )
    err_bnds_comp, integer nparams, real, dimension(*) params, complex,
    dimension( * ) work, real, dimension( * ) rwork, integer info)

CPORFSX

🎯 Purpose 🎯

okay so CPORFSX improves the computed solution to a system of linear equations when the coefficient matrix is Hermitian positive definite, and it also hands you error bounds and backward error estimates for that solution. πŸ’– In addition to the normwise error bound, the code provides a maximum componentwise error bound if possible. See the comments for ERR_BNDS_NORM and ERR_BNDS_COMP for the deets on those error bounds.

The original system of linear equations may have been equilibrated before calling this routine, as described by arguments EQUED and S below. In that case, the solution and error bounds returned are for the original unequilibrated system. 🌈

Some optional parameters are bundled in the PARAMS array. These settings determine how refinement is performed, but often the defaults are acceptable. If the defaults are acceptable, users can pass NPARAMS = 0, which prevents the source code from accessing the PARAMS argument. ✨

🧸 Parameters 🧸

🌸 UPLO 🌸

UPLO is CHARACTER*1.

  • = 'U': Upper triangle of A is stored.
  • = 'L': Lower triangle of A is stored.

🌸 EQUED 🌸

EQUED is CHARACTER*1.

Specifies the form of equilibration that was done to A before calling this routine. This is needed to compute the solution and error bounds correctly.

  • = 'N': No equilibration.
  • = 'Y': Both row and column equilibration, i.e., A has been replaced by diag(S) * A * diag(S). The right hand side B has been changed accordingly.

🌸 N 🌸

N is INTEGER.

The order of the matrix A. N >= 0.

🌸 NRHS 🌸

NRHS is INTEGER.

The number of right hand sides, i.e., the number of columns of the matrices B and X. NRHS >= 0.

🌸 A 🌸

A is COMPLEX array, dimension (LDA,N).

The Hermitian matrix A. If UPLO = 'U', the leading N-by-N upper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. If UPLO = 'L', the leading N-by-N lower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced. πŸ’…

🌸 LDA 🌸

LDA is INTEGER.

The leading dimension of the array A. LDA >= max(1,N).

🌸 AF 🌸

AF is COMPLEX array, dimension (LDAF,N).

The triangular factor U or L from the Cholesky factorization A = U**H*U or A = L*L**H, as computed by CPOTRF.

🌸 LDAF 🌸

LDAF is INTEGER.

The leading dimension of the array AF. LDAF >= max(1,N).

🌸 S 🌸

S is REAL array, dimension (N).

The scale factors for A. If EQUED = 'Y', A is multiplied on the left and right by diag(S). S is an input argument if FACT = 'F'; otherwise, S is an output argument. If FACT = 'F' and EQUED = 'Y', each element of S must be positive. If S is output, each element of S is a power of the radix. If S is input, each element of S should be a power of the radix to ensure a reliable solution and error estimates. Scaling by powers of the radix does not cause rounding errors unless the result underflows or overflows. Rounding errors during scaling lead to refining with a matrix that is not equivalent to the input matrix, producing error estimates that may not be reliable. 😭

🌸 B 🌸

B is COMPLEX array, dimension (LDB,NRHS).

The right hand side matrix B.

🌸 LDB 🌸

LDB is INTEGER.

The leading dimension of the array B. LDB >= max(1,N).

🌸 X 🌸

X is COMPLEX array, dimension (LDX,NRHS).

On entry, the solution matrix X, as computed by SGETRS. On exit, the improved solution matrix X.

🌸 LDX 🌸

LDX is INTEGER.

The leading dimension of the array X. LDX >= max(1,N).

🌸 RCOND 🌸

RCOND is REAL.

Reciprocal scaled condition number. This is an estimate of the reciprocal Skeel condition number of the matrix A after equilibration (if done). If this is less than the machine precision (in particular, if it is zero), the matrix is singular to working precision. Note that the error may still be small even if this number is very small and the matrix appears ill-conditioned. 🫢

🌸 BERR 🌸

BERR is REAL array, dimension (NRHS).

Componentwise relative backward error. This is the componentwise relative backward error of each solution vector X(j) (i.e., the smallest relative change in any element of A or B that makes X(j) an exact solution).

🌸 N_ERR_BNDS 🌸

N_ERR_BNDS is INTEGER.

Number of error bounds to return for each right hand side and each type (normwise or componentwise). See ERR_BNDS_NORM and ERR_BNDS_COMP below.

🌸 ERR_BNDS_NORM 🌸

ERR_BNDS_NORM is REAL array, dimension (NRHS, N_ERR_BNDS).

For each right-hand side, this array contains information about various error bounds and condition numbers corresponding to the normwise relative error, which is defined as follows:

Normwise relative error in the ith solution vector:

       max_j (abs(XTRUE(j,i) - X(j,i)))
      ------------------------------
            max_j abs(X(j,i))

The array is indexed by the type of error information as described below. There currently are up to three pieces of information returned.

The first index in ERR_BNDS_NORM(i,:) corresponds to the ith right-hand side.

The second index in ERR_BNDS_NORM(:,err) contains the following three fields:

  • err = 1 boolean. Trust the answer if the reciprocal condition number is less than the threshold sqrt(n) * slamch('Epsilon').
  • err = 2 error bound: The estimated forward error, almost certainly within a factor of 10 of the true error so long as the next entry is greater than the threshold sqrt(n) * slamch('Epsilon'). This error bound should only be trusted if the previous boolean is true.
  • err = 3 Reciprocal condition number: Estimated normwise reciprocal condition number. Compared with the threshold sqrt(n) * slamch('Epsilon') to determine if the error estimate is . These reciprocal condition numbers are 1 / (norm(Z^{-1},inf) * norm(Z,inf)) for some appropriately scaled matrix Z. Let Z = S*A, where S scales each row by a power of the radix so all absolute row sums of Z are approximately 1.

See Lapack Working Note 165 for further details and extra cautions. πŸ‘‘

🌸 ERR_BNDS_COMP 🌸

ERR_BNDS_COMP πŸ’…

ERR_BNDS_COMP is a REAL array, dimension (NRHS, N_ERR_BNDS). For each right-hand side, this array is carrying info about various error bounds and condition numbers corresponding to the componentwise relative error, which is defined as follows:

                 abs(XTRUE(j,i) - X(j,i))
            max_j ----------------------
                        abs(X(j,i))

The array is indexed by the right-hand side i (on which the componentwise relative error depends), and the type of error information as described below. There currently are up to three pieces of information returned for each right-hand side. If componentwise accuracy is not requested (PARAMS(3) = 0.0), then ERR_BNDS_COMP is not accessed. If N_ERR_BNDS < 3, then at most the first (:,N_ERR_BNDS) entries are returned.

The first index in ERR_BNDS_COMP(i,:) corresponds to the ith right-hand side.

The second index in ERR_BNDS_COMP(:,err) contains the following three fields:

  • err = 1 β€” boolean. Trust the answer if the reciprocal condition number is less than the threshold sqrt(n) * slamch('Epsilon').
  • err = 2 β€” error bound: The estimated forward error, almost certainly within a factor of 10 of the true error so long as the next entry is greater than the threshold sqrt(n) * slamch('Epsilon'). This error bound should only be trusted if the previous boolean is true.
  • err = 3 β€” Reciprocal condition number: Estimated componentwise reciprocal condition number. Compared with the threshold sqrt(n) * slamch('Epsilon') to determine if the error estimate is . (the original really leaves it hanging there, bestie πŸ’€). These reciprocal condition numbers are 1 / (norm(Z^{-1},inf) * norm(Z,inf)) for some appropriately scaled matrix Z. Let Z = S*(A*diag(x)), where x is the solution for the current right-hand side and S scales each row of A*diag(x) by a power of the radix so all absolute row sums of Z are approximately 1.

See Lapack Working Note 165 for further details and extra cautions.

NPARAMS πŸŽ€

NPARAMS is INTEGER. Specifies the number of parameters set in PARAMS. If <= 0, the PARAMS array is never referenced and default values are used.

PARAMS ✨

PARAMS is a REAL array, dimension NPARAMS. Specifies algorithm parameters. If an entry is < 0.0, then that entry will be filled with default value used for that parameter. Only positions up to NPARAMS are accessed; defaults are used for higher-numbered parameters.

  • PARAMS(LA_LINRX_ITREF_I = 1) β€” Whether to perform iterative refinement or not.
    • Default: 1.0
    • = 0.0: No refinement is performed, and no error bounds are computed.
    • = 1.0: Use the double-precision refinement algorithm, possibly with doubled-single computations if the compilation environment does not support DOUBLE PRECISION.
    • (other values are reserved for future use)
  • PARAMS(LA_LINRX_ITHRESH_I = 2) β€” Maximum number of residual computations allowed for refinement.
    • Default: 10
    • Aggressive: Set to 100 to permit convergence using approximate factorizations or factorizations other than LU. If the factorization uses a technique other than Gaussian elimination, the guarantees in err_bnds_norm and err_bnds_comp may no longer be trustworthy.
  • PARAMS(LA_LINRX_CWISE_I = 3) β€” Flag determining if the code will attempt to find a solution with small componentwise relative error in the double-precision algorithm. Positive is true, 0.0 is false.
    • Default: 1.0 (attempt componentwise convergence)

WORK πŸ¦‹

WORK is a COMPLEX array, dimension (2*N).

RWORK 🌸

RWORK is a REAL array, dimension (2*N).

INFO πŸ”₯

INFO is INTEGER.

  • = 0: Successful exit. The solution to every right-hand side is guaranteed.
  • < 0: If INFO = -i, the i-th argument had an illegal value.
  • > 0 and <= N: U(INFO,INFO) is exactly zero. The factorization has been completed, but the factor U is exactly singular, so the solution and error bounds could not be computed. RCOND = 0 is returned.
  • = N+J: The solution corresponding to the Jth right-hand side is not guaranteed. The solutions corresponding to other right-hand sides K with K > J may not be guaranteed as well, but only the first such right-hand side is reported. If a small componentwise error is not requested (PARAMS(3) = 0.0) then the Jth right-hand side is the first with a normwise error bound that is not guaranteed (the smallest J such that ERR_BNDS_NORM(J,1) = 0.0). By default (PARAMS(3) = 1.0) the Jth right-hand side is the first with either a normwise or componentwise error bound that is not guaranteed (the smallest J such that either ERR_BNDS_NORM(J,1) = 0.0 or ERR_BNDS_COMP(J,1) = 0.0). See the definition of ERR_BNDS_NORM(:,1) and ERR_BNDS_COMP(:,1). To get information about all of the right-hand sides check ERR_BNDS_NORM or ERR_BNDS_COMP.

Author πŸ‘‘

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Definition at line 389 of file cporfsx.f.


DPORFSX πŸ’–

   subroutine dporfsx (character uplo, character equed, integer n, integer
       nrhs, double precision, dimension( lda, * ) a, integer lda, double
       precision, dimension( ldaf, * ) af, integer ldaf, double precision,
       dimension( * ) s, double precision, dimension( ldb, * ) b, integer ldb,
       double precision, dimension( ldx, * ) x, integer ldx, double precision
       rcond, double precision, dimension( * ) berr, integer n_err_bnds, double
       precision, dimension( nrhs, * ) err_bnds_norm, double precision,
       dimension( nrhs, * ) err_bnds_comp, integer nparams, double precision,
       dimension( * ) params, double precision, dimension( * ) work, integer,
       dimension( * ) iwork, integer info)

DPORFSX

Purpose ✨

DPORFSX improves the computed solution to a system of linear equations when the coefficient matrix is symmetric positive definite, and provides error bounds and backward error estimates for the solution. In addition to normwise error bound, the code provides maximum componentwise error bound if possible. See comments for ERR_BNDS_NORM and ERR_BNDS_COMP for details of the error bounds.

The original system of linear equations may have been equilibrated before calling this routine, as described by arguments EQUED and S below. In this case, the solution and error bounds returned are for the original unequilibrated system.

Some optional parameters are bundled in the PARAMS array. These settings determine how refinement is performed, but often the defaults are acceptable. If the defaults are acceptable, users can pass NPARAMS = 0 which prevents the source code from accessing the PARAMS argument.

Parameters 🧚

UPLO is CHARACTER*1

  • = 'U': Upper triangle of A is stored;
  • = 'L': Lower triangle of A is stored.

EQUED is CHARACTER*1

Specifies the form of equilibration that was done to A before calling this routine. This is needed to compute the solution and error bounds correctly.

  • = 'N': No equilibration
  • = 'Y': Both row and column equilibration, i.e., A has been replaced by diag(S) * A * diag(S). The right hand side B has been changed accordingly.

N is INTEGER

The order of the matrix A. N >= 0.

NRHS is INTEGER

The number of right hand sides, i.e., the number of columns of the matrices B and X. NRHS >= 0.

A is DOUBLE PRECISION array, dimension (LDA,N)

The symmetric matrix A. If UPLO = 'U', the leading N-by-N upper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. If UPLO = 'L', the leading N-by-N lower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced.

LDA is INTEGER

The leading dimension of the array A. LDA >= max(1,N).

AF is DOUBLE PRECISION array, dimension (LDAF,N)

The triangular factor U or L from the Cholesky factorization A = U**T*U or A = L*L**T, as computed by DPOTRF.

LDAF is INTEGER

The leading dimension of the array AF. LDAF >= max(1,N).

S

  • S β€” DOUBLE PRECISION array, dimension (N). These are the scale factors for A πŸ’…. If EQUED = 'Y', A gets multiplied on the left and right by diag(S). S is an input argument if FACT = 'F'; otherwise it's an output argument. And if FACT = 'F' and EQUED = 'Y', every element of S has to be positive, no exceptions bestie. If S is output, each element of S is a power of the radix ✨. If S is input, each element should be a power of the radix to make sure you get a reliable solution and reliable error estimates β€” because scaling by powers of the radix doesn't cause rounding errors unless the result underflows or overflows 🫢. But lowkey watch out: rounding errors during scaling lead to refining with a matrix that is not equivalent to the input matrix, and that produces error estimates that may not be reliable 😭.
  • B β€” DOUBLE PRECISION array, dimension (LDB,NRHS). The right hand side matrix B. That's it, that's the vibe πŸŽ€.
  • LDB β€” INTEGER. The leading dimension of the array B. Gotta satisfy LDB >= max(1,N) ⭐.
  • X β€” DOUBLE PRECISION array, dimension (LDX,NRHS). On entry, the solution matrix X, as computed by DGETRS. On exit, the improved solution matrix X πŸ‘‘ β€” glow-up arc, honestly.
  • LDX β€” INTEGER. The leading dimension of the array X. Requirement: LDX >= max(1,N) βœ….
  • RCOND β€” DOUBLE PRECISION. Reciprocal scaled condition number πŸ”₯. It's an estimate of the reciprocal Skeel condition number of the matrix A after equilibration (if that was done). If this is less than the machine precision β€” in particular, if it's zero β€” the matrix is singular to working precision πŸ’€. But here's the plot twist: the error may still be small even if this number is very, very small and the matrix looks ill-conditioned. Don't let the vibe check fool you.
  • BERR β€” DOUBLE PRECISION array, dimension (NRHS). Componentwise relative backward error 🌸. Specifically: the componentwise relative backward error of each solution vector X(j) β€” i.e. the smallest relative change in any element of A or B that makes X(j) an exact solution ✨.
  • N_ERR_BNDS β€” INTEGER. The number of error bounds to return for each right hand side and for each type (normwise or componentwise). See ERR_BNDS_NORM and ERR_BNDS_COMP below πŸ‘€.
  • ERR_BNDS_NORM β€” DOUBLE PRECISION array, dimension (NRHS, N_ERR_BNDS). For each right-hand side, this array is carrying info about various error bounds and condition numbers corresponding to the normwise relative error, which is defined like this:
    max_j (abs(XTRUE(j,i) - X(j,i)))
   ------------------------------
         max_j abs(X(j,i))

The array is indexed by the type of error information, as described below. There currently are up to three pieces of info returned πŸŽ€.

The first index in ERR_BNDS_NORM(i,:) corresponds to the *i*th right-hand side.

The second index in ERR_BNDS_NORM(:,err) contains these three fields:

  • err = 1 β€” boolean. Trust the answer if the reciprocal condition number is less than the threshold sqrt(n) * dlamch('Epsilon'). ⭐
  • err = 2 β€” error bound: the estimated forward error, almost certainly within a factor of 10 of the true error so long as the next entry is greater than the threshold sqrt(n) * dlamch('Epsilon'). This error bound should only be trusted if the previous boolean is true πŸ™ˆ.
  • err = 3 β€” reciprocal condition number: estimated normwise reciprocal condition number. Compared with the threshold sqrt(n) * dlamch('Epsilon') to determine if the error estimate is (ngl the source sentence here just sort of… stops 😭). These reciprocal condition numbers are 1 / (norm(Z^{-1},inf) * norm(Z,inf)) for some appropriately scaled matrix Z. Let Z = S*A, where S scales each row by a power of the radix so all absolute row sums of Z are approximately 1 πŸ’œ.

See Lapack Working Note 165 for further details and extra cautions πŸ“š.

  • ERR_BNDS_COMP β€” DOUBLE PRECISION array, dimension (NRHS, N_ERR_BNDS). Same deal, but for the componentwise relative error. For each right-hand side, this array holds info about various error bounds and condition numbers corresponding to the componentwise relative error, defined as:
                abs(XTRUE(j,i) - X(j,i))
         max_j ----------------------
                     abs(X(j,i))

The array is indexed by the right-hand side i (the componentwise relative error depends on it), and by the type of error information described below. There currently are up to three pieces of information returned for each right-hand side. If componentwise accuracy is not requested (PARAMS(3) = 0.0), then ERR_BNDS_COMP is not accessed 🚫. And if N_ERR_BNDS < 3, then at most the first (:,N_ERR_BNDS) entries are returned.

The first index in ERR_BNDS_COMP(i,:) corresponds to the *i*th right-hand side.

The second index in ERR_BNDS_COMP(:,err) contains these three fields:

  • err = 1 β€” boolean. Trust the answer if the reciprocal condition number is less than the threshold sqrt(n) * dlamch('Epsilon'). ⭐
  • err = 2 β€” error bound: the estimated forward error, almost certainly within a factor of 10 of the true error so long as the next entry is greater than the threshold sqrt(n) * dlamch('Epsilon'). This error bound should only be trusted if the previous boolean is true πŸ™ˆ.
  • err = 3 β€” reciprocal condition number: estimated componentwise reciprocal condition number. Compared with the threshold sqrt(n) * dlamch('Epsilon') to determine if the error estimate is (yep, this sentence also just peaces out mid-thought πŸ’€). These reciprocal condition numbers are 1 / (norm(Z^{-1},inf) * norm(Z,inf)) for some appropriately scaled matrix Z. Let Z = S*(A*diag(x)), where x is the solution for the current right-hand side and S scales each row of A*diag(x) by a power of the radix so all absolute row sums of Z are approximately 1 🌈.

See Lapack Working Note 165 for further details and extra cautions πŸ“š.

  • NPARAMS β€” INTEGER. Specifies how many parameters are set in PARAMS. If NPARAMS <= 0, the PARAMS array is never referenced and default values are used πŸŽ€.
  • PARAMS β€” DOUBLE PRECISION array, dimension (NPARAMS). Specifies algorithm parameters ✨. If an entry is < 0.0, then that entry gets filled with the default value used for that parameter. Only positions up to NPARAMS are accessed; defaults are used for higher-numbered parameters.
    • PARAMS(LA_LINRX_ITREF_I = 1) β€” whether to do iterative refinement or not. Default: 1.0D+0
      • = 0.0 β€” no refinement is performed, and no error bounds are computed.
      • = 1.0 β€” use the double-precision refinement algorithm, possibly with doubled-single computations if the compilation environment doesn't support DOUBLE PRECISION.
      • (other values are reserved for future use πŸ‘€)
    • PARAMS(LA_LINRX_ITHRESH_I = 2) β€” maximum number of residual computations allowed for refinement. Default: 10 Aggressive: set it to 100 to permit convergence using approximate factorizations or factorizations other than LU. ⚠️ But if the factorization uses a technique other than Gaussian elimination, the guarantees in err_bnds_norm and err_bnds_comp may no longer be trustworthy 😭.
    • PARAMS(LA_LINRX_CWISE_I = 3) β€” flag determining if the code will attempt to find a solution with small componentwise relative error in the double-precision algorithm. Positive is true, 0.0 is false. Default: 1.0 (attempt componentwise convergence) πŸ’…
  • WORK β€” DOUBLE PRECISION array, dimension (4*N). Scratch space, do not perceive it 🫢.
  • IWORK β€” INTEGER array, dimension (N). Integer scratch space, equally unbothered ✨.

and INFO is up next, bestie πŸ‘€

πŸ’– INFO πŸ’–

INFO is INTEGER, and it's basically the receipts for how the whole thing went. Here's the vibe check:

  • = 0 β€” Successful exit. The solution to every single right-hand side is guaranteed. Slay. No notes. πŸ‘‘
  • < 0 β€” If INFO = -i, the i-th argument had an illegal value. Somebody passed something cursed, bestie πŸ’€
  • > 0 and <= N β€” U(INFO,INFO) is exactly zero. The factorization has been completed, but the factor U is exactly singular, so the solution and error bounds could not be computed. RCOND = 0 is returned. Yeah, that's a no from the math.
  • = N+J β€” Okay this one's a whole paragraph, stay with me 🌸 The solution corresponding to the Jth right-hand side is not guaranteed. The solutions corresponding to other right-hand sides K with K > J may not be guaranteed as well, but only the first such right-hand side is reported. If a small componentwise error is not requested (PARAMS(3) = 0.0) then the Jth right-hand side is the first with a normwise error bound that is not guaranteed (the smallest J such that ERR_BNDS_NORM(J,1) = 0.0). By default (PARAMS(3) = 1.0) the Jth right-hand side is the first with either a normwise or componentwise error bound that is not guaranteed (the smallest J such that either ERR_BNDS_NORM(J,1) = 0.0 or ERR_BNDS_COMP(J,1) = 0.0). See the definition of ERR_BNDS_NORM(:,1) and ERR_BNDS_COMP(:,1). To get information about all of the right-hand sides, check ERR_BNDS_NORM or ERR_BNDS_COMP. 🫢

πŸŽ€ Author πŸŽ€

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Definition at line 390 of file dporfsx.f.


πŸ¦‹ subroutine sporfsx πŸ¦‹

Okay so now we pivot to the single precision twin, and she's got the exact same energy ✨

subroutine sporfsx (character uplo, character equed, integer n, integer
    nrhs, real, dimension( lda, * ) a, integer lda, real, dimension( ldaf, *
    ) af, integer ldaf, real, dimension( * ) s, real, dimension( ldb, * ) b,
    integer ldb, real, dimension( ldx, * ) x, integer ldx, real rcond, real,
    dimension( * ) berr, integer n_err_bnds, real, dimension( nrhs, * )
    err_bnds_norm, real, dimension( nrhs, * ) err_bnds_comp, integer
    nparams, real, dimension( * ) params, real, dimension( * ) work,
    integer, dimension( * ) iwork, integer info)

SPORFSX β€” she's the main character of this section, ngl πŸ”₯

✨ Purpose ✨

SPORFSX improves the computed solution to a system of linear equations when the coefficient matrix is symmetric positive definite, and provides error bounds and backward error estimates for the solution. In addition to the normwise error bound, the code provides a maximum componentwise error bound if possible. See the comments for ERR_BNDS_NORM and ERR_BNDS_COMP for details of the error bounds.
The original system of linear equations may have been equilibrated before calling this routine, as described by arguments EQUED and S below. In this case, the solution and error bounds returned are for the original unequilibrated system. πŸ’… (she remembers where she came from)
Some optional parameters are bundled in the PARAMS array. These settings determine how refinement is performed, but often the defaults are acceptable. If the defaults are acceptable, users can pass NPARAMS = 0 which prevents the source code from accessing the PARAMS argument. Lowkey the easiest setting ever β€” just say "defaults, bestie" and you're done 🫢

🌸 Parameters 🌸

πŸ’œ UPLO

UPLO is CHARACTER*1.

  • = 'U' β€” Upper triangle of A is stored;
  • = 'L' β€” Lower triangle of A is stored.

Pick one, tell her which, she'll only look at that half. πŸ™ˆ

πŸ’œ EQUED

EQUED is CHARACTER*1.

Specifies the form of equilibration that was done to A before calling this routine. This is needed to compute the solution and error bounds correctly β€” like, if you lie here, everything downstream is off, no cap 😭

  • = 'N' β€” No equilibration
  • = 'Y' β€” Both row and column equilibration, i.e., A has been replaced by diag(S) * A * diag(S). The right hand side B has been changed accordingly.

πŸ’œ N

N is INTEGER.

The order of the matrix A. N >= 0. ✨

πŸ’œ NRHS

NRHS is INTEGER.

The number of right hand sides, i.e., the number of columns of the matrices B and X. NRHS >= 0. πŸ’…

πŸ’œ A

A is REAL array, dimension (LDA,N).

The symmetric matrix A. If UPLO = 'U', the leading N-by-N upper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. If UPLO = 'L', the leading N-by-N lower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced. (She's not nosy, she just doesn't read that half πŸŽ€)

πŸ’œ LDA

LDA is INTEGER.

The leading dimension of the array A. LDA >= max(1,N). ⭐

πŸ’œ AF

AF is REAL array, dimension (LDAF,N).

The triangular factor U or L from the Cholesky factorization A = U**T*U or A = L*L**T, as computed by SPOTRF. 🧚

πŸ’œ LDAF

LDAF is INTEGER.

The leading dimension of the array AF. LDAF >= max(1,N). ⭐

πŸ’œ S

S is REAL array, dimension (N).

The scale factors for A. If EQUED = 'Y', A is multiplied on the left and right by diag(S). S is an input argument if FACT = 'F'; otherwise, S is an output argument. If FACT = 'F' and EQUED = 'Y', each element of S must be positive. If S is output, each element of S is a power of the radix. If S is input, each element of S should be a power of the radix to ensure a reliable solution and error estimates. Scaling by powers of the radix does not cause rounding errors unless the result underflows or overflows. Rounding errors during scaling lead to refining with a matrix that is not equivalent to the input matrix, producing error estimates that may not be reliable. 😭 So yeah β€” powers of the radix, or the vibes get shaky.

πŸ’œ B

B is REAL array, dimension (LDB,NRHS).

The right hand side matrix B. 🫢

πŸ’œ LDB

LDB is INTEGER.

The leading dimension of the array B. LDB >= max(1,N). ⭐

πŸ’œ X

X is REAL array, dimension (LDX,NRHS).

On entry, the solution matrix X, as computed by SGETRS. On exit, the improved solution matrix X. ✨ Glow-up arc, literally.

πŸ’œ LDX

LDX is INTEGER.

The leading dimension of the array X. LDX >= max(1,N). ⭐

πŸ’œ RCOND

RCOND is REAL.

Reciprocal scaled condition number. This is an estimate of the reciprocal Skeel condition number of the matrix A after equilibration (if done). If this is less than the machine precision (in particular, if it is zero), the matrix is singular to working precision. Note that the error may still be small even if this number is very small and the matrix appears ill-conditioned. 🌈 (iconic behaviour honestly β€” tiny number, fine answer, she contains multitudes)

πŸ’œ BERR

BERR is REAL array, dimension (NRHS).

Componentwise relative backward error. This is the componentwise relative backward error of each solution vector X(j) (i.e., the smallest relative change in any element of A or B that makes X(j) an exact solution). πŸ’€ tiny change energy

πŸ’œ N_ERR_BNDS

N_ERR_BNDS is INTEGER.

Number of error bounds to return for each right hand side and each type (normwise or componentwise). See ERR_BNDS_NORM and ERR_BNDS_COMP below. πŸŽ€

πŸ’œ ERR_BNDS_NORM

ERR_BNDS_NORM is REAL array, dimension (NRHS, N_ERR_BNDS).

For each right-hand side, this array contains information about various error bounds and condition numbers corresponding to the normwise relative error, which is defined as follows:

Normwise relative error in the ith solution vector:
        max_j (abs(XTRUE(j,i) - X(j,i)))
       ------------------------------
             max_j abs(X(j,i))

The array is indexed by the type of error information as described below. There currently are up to three pieces of information returned. πŸ‘‘

The first index in ERR_BNDS_NORM(i,:) corresponds to the *i*th right-hand side.

The second index in ERR_BNDS_NORM(:,err) contains the following three fields:

  • err = 1 β€” boolean. Trust the answer if the reciprocal condition number is less than the threshold sqrt(n) * slamch('Epsilon').
  • err = 2 β€” error bound: The estimated forward error, almost certainly within a factor of 10 of the true error so long as the next entry is greater than the threshold sqrt(n) * slamch('Epsilon'). This error bound should only be trusted if the previous boolean is true.
  • err = 3 β€” Reciprocal condition number: Estimated normwise reciprocal condition number. Compared with the threshold sqrt(n) * slamch('Epsilon') to determine if the error estimate is . These reciprocal condition numbers are 1 / (norm(Z^{-1},inf) * norm(Z,inf)) for some appropriately scaled matrix Z. Let Z = S*A, where S scales each row by a power of the radix so all absolute row sums of Z are approximately 1. πŸ™ˆ (and yes, that sentence really does just end at "is ." in the source β€” not me, bestie, I'm just the messenger πŸ’€)

See Lapack Working Note 165 for further details and extra cautions. πŸ“š

ERR_BNDS_COMP

  • ERR_BNDS_COMP β€” a REAL array, dimension (NRHS, N_ERR_BNDS). For every right-hand side, this baby holds the deets on all the error bounds and condition numbers for the componentwise relative error, which is literally defined like this:
                    abs(XTRUE(j,i) - X(j,i))
             max_j ----------------------
                         abs(X(j,i))

Okay so, ERR_BNDS_COMP is indexed by the right-hand side i (because that's what the componentwise relative error depends on, obviously πŸ’…), and then by the type of error info, which we're about to get into. Right now there are up to three pieces of info returned per right-hand side. If componentwise accuracy wasn't even requested (PARAMS(3) = 0.0), then ERR_BNDS_COMP gets not accessed at all, thank u next. And if N_ERR_BNDS < 3, then at most the first (:,N_ERR_BNDS) entries come back β€” so like, you get what you asked for, no more.

The first index in ERR_BNDS_COMP(i,:) corresponds to the ith right-hand side.

The second index in ERR_BNDS_COMP(:,err) contains these three fields:

  • err = 1 β€” boolean. Trust the answer if the reciprocal condition number is less than the threshold sqrt(n) * slamch('Epsilon').
  • err = 2 β€” error bound: the estimated forward error, almost certainly within a factor of 10 of the true error, so long as the next entry is greater than the threshold sqrt(n) * slamch('Epsilon'). ⚠️ This error bound should only be trusted if the previous boolean is true. Like, the boolean is the vibe check, no cap.
  • err = 3 β€” reciprocal condition number: the estimated componentwise reciprocal condition number. Compared with the threshold sqrt(n) * slamch('Epsilon') to determine if the error estimate is . (yeah, the original page just trails off there mid-sentence β€” not me, bestie, I'm as confused as you are πŸ’€). These reciprocal condition numbers are 1 / (norm(Z^{-1},inf) * norm(Z,inf)) for some appropriately scaled matrix Z. Let Z = S*(A*diag(x)), where x is the solution for the current right-hand side and S scales each row of A*diag(x) by a power of the radix so all absolute row sums of Z are approximately 1.

Also β€” see Lapack Working Note 165 for further details and extra cautions. πŸ“š

  • NPARAMS β€” INTEGER. Specifies the number of parameters set in PARAMS. If <= 0, the PARAMS array is never referenced and default values are used. Honestly iconic behaviour: ask for nothing, get defaults.
  • PARAMS β€” REAL array, dimension NPARAMS. Specifies algorithm parameters. If an entry is < 0.0, then that entry gets filled in with the default value used for that parameter. Only positions up to NPARAMS are accessed; defaults are used for any higher-numbered parameters. So you can half-ass it and the code will cover for you 🫢
    • PARAMS(LA_LINRX_ITREF_I = 1) β€” whether to perform iterative refinement or not. Default: 1.0
      • = 0.0: no refinement is performed, and no error bounds are computed.
      • = 1.0: use the double-precision refinement algorithm, possibly with doubled-single computations if the compilation environment does not support DOUBLE PRECISION.
      • (other values are reserved for future use)
    • PARAMS(LA_LINRX_ITHRESH_I = 2) β€” maximum number of residual computations allowed for refinement. Default: 10 Aggressive: set it to 100 to permit convergence using approximate factorizations or factorizations other than LU. ⚠️ But if the factorization uses a technique other than Gaussian elimination, the guarantees in err_bnds_norm and err_bnds_comp may no longer be trustworthy. So like, proceed with caution, bestie.
    • PARAMS(LA_LINRX_CWISE_I = 3) β€” flag determining if the code will attempt to find a solution with small componentwise relative error in the double-precision algorithm. Positive is true, 0.0 is false. Default: 1.0 (attempt componentwise convergence)
  • WORK β€” REAL array, dimension (4*N).
  • IWORK β€” INTEGER array, dimension (N).
  • INFO β€” INTEGER. The receipts 🧾:
    • = 0: successful exit. The solution to every right-hand side is guaranteed.
    • < 0: if INFO = -i, the ith argument had an illegal value.
    • > 0 and <= N: U(INFO,INFO) is exactly zero. The factorization has been completed, but the factor U is exactly singular, so the solution and error bounds could not be computed. RCOND = 0 is returned.
    • = N+J: the solution corresponding to the Jth right-hand side is not guaranteed. The solutions corresponding to other right-hand sides K with K > J may not be guaranteed as well, but only the first such right-hand side is reported. If a small componentwise error is not requested (PARAMS(3) = 0.0) then the Jth right-hand side is the first with a normwise error bound that is not guaranteed (the smallest J such that ERR_BNDS_NORM(J,1) = 0.0). By default (PARAMS(3) = 1.0) the Jth right-hand side is the first with either a normwise or componentwise error bound that is not guaranteed (the smallest J such that either ERR_BNDS_NORM(J,1) = 0.0 or ERR_BNDS_COMP(J,1) = 0.0). See the definition of ERR_BNDS_NORM(:,1) and ERR_BNDS_COMP(:,1). To get information about all of the right-hand sides, check ERR_BNDS_NORM or ERR_BNDS_COMP. πŸ’–

πŸ“œ Author

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

🌸 Definition at line 390 of file sporfsx.f.


πŸ’œ subroutine zporfsx β€” the complex*16 sibling, same slay

subroutine zporfsx (character uplo, character equed, integer n, integer
    nrhs, complex*16, dimension( lda, * ) a, integer lda, complex*16,
    dimension( ldaf, * ) af, integer ldaf, double precision, dimension( * )
    s, complex*16, dimension( ldb, * ) b, integer ldb, complex*16,
    dimension( ldx, * ) x, integer ldx, double precision rcond, double
    precision, dimension( * ) berr, integer n_err_bnds, double precision,
    dimension( nrhs, * ) err_bnds_norm, double precision, dimension( nrhs, *
    ) err_bnds_comp, integer nparams, double precision, dimension(*) params,
    complex*16, dimension( * ) work, double precision, dimension( * ) rwork,
    integer info)

ZPORFSX β€” ok so this is the one where the matrix is Hermitian positive definite and everything is COMPLEX*16 and DOUBLE PRECISION. Let's go ✨

πŸŽ€ Purpose

ZPORFSX improves the computed solution to a system of linear equations when the coefficient matrix is Hermitian positive definite, and it provides error bounds and backward error estimates for the solution. On top of the normwise error bound, the code also gives you the maximum componentwise error bound if possible. (See the comments for ERR_BNDS_NORM and ERR_BNDS_COMP for the details of the error bounds β€” we literally just covered those, iykyk πŸ’…)

The original system of linear equations may have been equilibrated before calling this routine, as described by arguments EQUED and S below. In that case, the solution and error bounds returned are for the original unequilibrated system. So it undoes the glow-up for you, bestie πŸ§–β€β™€οΈ

Some optional parameters are bundled in the PARAMS array. These settings determine how refinement is performed, but often the defaults are acceptable. If the defaults are acceptable, users can pass NPARAMS = 0, which prevents the source code from accessing the PARAMS argument at all. No thoughts, just defaults 🫢

⭐ Parameters

  • UPLO β€” CHARACTER*1
    • = 'U': upper triangle of A is stored;
    • = 'L': lower triangle of A is stored.
  • EQUED β€” CHARACTER*1. Specifies the form of equilibration that was done to A before calling this routine. This is needed to compute the solution and error bounds correctly β€” so don't be lying about it πŸ”₯
    • = 'N': no equilibration
    • = 'Y': both row and column equilibration, i.e., A has been replaced by diag(S) * A * diag(S). The right hand side B has been changed accordingly.
  • N β€” INTEGER. The order of the matrix A. N >= 0.
  • NRHS β€” INTEGER. The number of right hand sides, i.e., the number of columns of the matrices B and X. NRHS >= 0.
  • A β€” COMPLEX*16 array, dimension (LDA,N). The Hermitian matrix A. If UPLO = 'U', the leading N-by-N upper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. If UPLO = 'L', the leading N-by-N lower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced. Only half the matrix is doing main character work, and honestly? Respect 🌈
  • LDA β€” INTEGER. The leading dimension of the array A. LDA >= max(1,N).
  • AF β€” COMPLEX*16 array, dimension (LDAF,N). The triangular factor U or L from the Cholesky factorization A = U**H*U or A = L*L**H, as computed by ZPOTRF.
  • LDAF β€” INTEGER. The leading dimension of the array AF. LDAF >= max(1,N).
  • S β€” hold that thought, bestie, S has lore and it's coming in the next chunk πŸ’… πŸ’œ

πŸ¦‹ S β€” the scale factors, bestie πŸ¦‹

S is DOUBLE PRECISION array, dimension (N) β€” it's literally the scale factors for A.

  • If EQUED = 'Y', A is multiplied on the left and right by diag(S).
  • S is an input argument if FACT = 'F'; otherwise, S is an output argument.
  • If FACT = 'F' and EQUED = 'Y', each element of S must be positive.
  • If S is output, each element of S is a power of the radix. πŸ’…
  • If S is input, each element of S should be a power of the radix to ensure a reliable solution and error estimates. Scaling by powers of the radix does not cause rounding errors unless the result underflows or overflows.
😭 Real talk though: rounding errors during scaling lead to refining with a matrix that is not equivalent to the input matrix, producing error estimates that may not be reliable. Not iconic of them, but there it is.

🧚 B β€” the right hand side matrix

B is COMPLEX*16 array, dimension (LDB,NRHS) β€” the right hand side matrix B. That's it, that's the whole vibe. 🫢

πŸŽ€ LDB

LDB is INTEGER β€” the leading dimension of the array B.

Constraint, no cap: LDB >= max(1,N).

✨ X β€” the glow-up matrix

X is COMPLEX*16 array, dimension (LDX,NRHS).

  • On entry: the solution matrix X, as computed by ZGETRS.
  • On exit: the improved solution matrix X. Glow-up complete, slay. πŸ”₯

⭐ LDX

LDX is INTEGER β€” the leading dimension of the array X.

Same energy as LDB, different letter: LDX >= max(1,N).

πŸ‘‘ RCOND β€” the vibe check number

RCOND is DOUBLE PRECISION β€” reciprocal scaled condition number. Basically an estimate of the reciprocal Skeel condition number of the matrix A after equilibration (if done). 🧚

  • If this is less than the machine precision (in particular, if it is zero), the matrix is singular to working precision.
  • Note that the error may still be small even if this number is very small and the matrix appears ill-conditioned.

So like… don't panic-read too hard into it, iykyk. πŸ’€

πŸ“ BERR

BERR is DOUBLE PRECISION array, dimension (NRHS) β€” componentwise relative backward error.

BERR is the componentwise relative backward error of each solution vector X(j) (i.e., the smallest relative change in any element of A or B that makes X(j) an exact solution). Periodt. πŸ’…

πŸ’œ N_ERR_BNDS

N_ERR_BNDS is INTEGER β€” number of error bounds to return for each right hand side and each type (normwise or componentwise).

See ERR_BNDS_NORM and ERR_BNDS_COMP below πŸ‘‡ (they're the ones doing the actual work).


🌈 ERR_BNDS_NORM β€” normwise error tea β˜•

ERR_BNDS_NORM is DOUBLE PRECISION array, dimension (NRHS, N_ERR_BNDS).

For each right-hand side, this array contains information about various error bounds and condition numbers corresponding to the normwise relative error, which is defined as follows:

Normwise relative error in the ith solution vector:

     max_j (abs(XTRUE(j,i) - X(j,i)))
    ------------------------------
          max_j abs(X(j,i))

The array is indexed by the type of error information as described below. There currently are up to three pieces of information returned. πŸŽ€

  • The first index in ERR_BNDS_NORM(i,:) corresponds to the ith right-hand side.
  • The second index in ERR_BNDS_NORM(:,err) contains the following three fields:
    • err = 1 β€” boolean. Trust the answer if the reciprocal condition number is less than the threshold sqrt(n) * dlamch('Epsilon').
    • err = 2 β€” error bound: The estimated forward error, almost certainly within a factor of 10 of the true error so long as the next entry is greater than the threshold sqrt(n) * dlamch('Epsilon'). This error bound should only be trusted if the previous boolean is true.
    • err = 3 β€” Reciprocal condition number: Estimated normwise reciprocal condition number. Compared with the threshold sqrt(n) * dlamch('Epsilon') to determine if the error estimate is . (bestie the source sentence literally cuts off there β€” not me, I'm just the messenger πŸ™ˆ) These reciprocal condition numbers are 1 / (norm(Z^{-1},inf) * norm(Z,inf)) for some appropriately scaled matrix Z. Let Z = S*A, where S scales each row by a power of the radix so all absolute row sums of Z are approximately 1.
πŸ“– See Lapack Working Note 165 for further details and extra cautions. Extra cautions!! Read the fine print, fr fr.

🌸 ERR_BNDS_COMP β€” componentwise error tea β˜•

ERR_BNDS_COMP is DOUBLE PRECISION array, dimension (NRHS, N_ERR_BNDS).

For each right-hand side, this array contains information about various error bounds and condition numbers corresponding to the componentwise relative error, which is defined as follows:

Componentwise relative error in the ith solution vector:

                abs(XTRUE(j,i) - X(j,i))
         max_j ----------------------
                     abs(X(j,i))

The array is indexed by the right-hand side i (on which the componentwise relative error depends), and the type of error information as described below. There currently are up to three pieces of information returned for each right-hand side.

  • If componentwise accuracy is not requested (PARAMS(3) = 0.0), then ERR_BNDS_COMP is not accessed.
  • If N_ERR_BNDS < 3, then at most the first (:,N_ERR_BNDS) entries are returned.

The first index in ERR_BNDS_COMP(i,:) corresponds to the ith right-hand side.

The second index in ERR_BNDS_COMP(:,err) contains the following three fields:

  • err = 1 β€” boolean. Trust the answer if the reciprocal condition number is less than the threshold sqrt(n) * dlamch('Epsilon').
  • err = 2 β€” error bound: The estimated forward error, almost certainly within a factor of 10 of the true error so long as the next entry is greater than the threshold sqrt(n) * dlamch('Epsilon'). This error bound should only be trusted if the previous boolean is true.
  • err = 3 β€” Reciprocal condition number: Estimated componentwise reciprocal condition number. Compared with the threshold sqrt(n) * dlamch('Epsilon') to determine if the error estimate is . (again β€” the source sentence just stops mid-thought, screaming into the void πŸ’€) These reciprocal condition numbers are 1 / (norm(Z^{-1},inf) * norm(Z,inf)) for some appropriately scaled matrix Z. Let Z = S*(A*diag(x)), where x is the solution for the current right-hand side and S scales each row of A*diag(x) by a power of the radix so all absolute row sums of Z are approximately 1.
πŸ“– See Lapack Working Note 165 for further details and extra cautions. (Yes, again. Go read it. πŸ”₯)

πŸŽ€ NPARAMS

NPARAMS is INTEGER β€” specifies the number of parameters set in PARAMS.

  • If <= 0, the PARAMS array is never referenced and default values are used.

Honestly? Respectful. Not even looking at your array. πŸ’…


πŸ‘‘ PARAMS β€” the algorithm parameter menu

PARAMS is DOUBLE PRECISION array, dimension NPARAMS β€” specifies algorithm parameters.

If an entry is < 0.0, then that entry will be filled with the default value used for that parameter. Only positions up to NPARAMS are accessed; defaults are used for higher-numbered parameters. 🌈

  • PARAMS(LA_LINRX_ITREF_I = 1) β€” Whether to perform iterative refinement or not.
    • Default: 1.0D+0
    • = 0.0: No refinement is performed, and no error bounds are computed.
    • = 1.0: Use the double-precision refinement algorithm, possibly with doubled-single computations if the compilation environment does not support DOUBLE PRECISION.
    • (other values are reserved for future use)
  • PARAMS(LA_LINRX_ITHRESH_I = 2) β€” Maximum number of residual computations allowed for refinement.
    • Default: 10
    • Aggressive: Set to 100 to permit convergence using approximate factorizations or factorizations other than LU. If the factorization uses a technique other than Gaussian elimination, the guarantees in err_bnds_norm and err_bnds_comp may no longer be trustworthy.
⚠️ That "may no longer be trustworthy" is doing a LOT of heavy lifting there. Aggressive mode is giving main character energy, but it's also giving consequences. πŸ™ˆ
  • PARAMS(LA_LINRX_CWISE_I = 3) β€” Flag determining if the code will attempt to find a solution with small componentwise relative error in the double-precision algorithm. Positive is true, 0.0 is false.
    • Default: 1.0 (attempt componentwise convergence)

πŸ’œ WORK

WORK is COMPLEX*16 array, dimension (2*N). Scratch space. Mwah. 🫢

πŸ’œ RWORK

RWORK is DOUBLE PRECISION array, dimension (2*N). Also scratch space, but make it double precision. ✨

⭐ INFO

…

INFO is INTEGER β€” yes, that’s the type, bestie, and its whole job is spilling how the solve went. ✨ Here’s the full vibe check on its values:

  • = 0 β€” Successful exit. The solution to every right-hand side is guaranteed. Slay. πŸ’…
  • < 0 β€” If INFO = -i, the i-th argument had an illegal value. Rude, but at least it tells you which one. πŸ™ˆ
  • > 0 and <= N β€” U(INFO,INFO) is exactly zero. The factorization has been completed, but the factor U is exactly singular, so the solution and error bounds could not be computed. RCOND = 0 is returned. Yeah, that’s the β€œwe tried, but the math said no” zone. 😭
  • = N+J β€” The solution corresponding to the Jth right-hand side is not guaranteed. The solutions corresponding to other right-hand sides K with K > J may not be guaranteed as well, but only the first such right-hand side is reported. If a small componentwise error is not requested (PARAMS(3) = 0.0) then the Jth right-hand side is the first with a normwise error bound that is not guaranteed (the smallest J such that ERR_BNDS_NORM(J,1) = 0.0). By default (PARAMS(3) = 1.0) the Jth right-hand side is the first with either a normwise or componentwise error bound that is not guaranteed (the smallest J such that either ERR_BNDS_NORM(J,1) = 0.0 or ERR_BNDS_COMP(J,1) = 0.0). See the definition of ERR_BNDS_NORM(:,1) and ERR_BNDS_COMP(:,1). To get information about all of the right-hand sides check ERR_BNDS_NORM or ERR_BNDS_COMP. That’s the deep lore, iykyk. 🫢

πŸ‘‘ Author

Bestie, this page has elf energy, because it took a whole village:

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Definition at line 389 of file zporfsx.f.


🫢 Author

Okay so there’s another Author section, because the generator said so πŸ’€:

Generated automatically by Doxygen for LAPACK from the source code.


That’s the whole page, bestie! πŸŽ€ This one comes from LAPACK Version 3.12.0, and the page is porfsx(3) β€” the footer didn’t hand over a date, so I’m not inventing one. No cap, periodt. βœ¨πŸ’–

πŸ“¦ where this page comes from