herfsx(3)

πŸ¦‹ herfsx(3) β€” {he,sy}rfsx: iterative refinement, expert πŸ¦‹

okay so bestie, this is herfsx(3) from the Library Functions Manual β€” and yes, it's giving expert-level iterative refinement energy. We're doing the whole thing, no skips, no "lol I'll summarize". πŸ’…


🌸 NAME 🌸

herfsx β€” {he,sy}rfsx: iterative refinement, expert


✨ SYNOPSIS ✨

🫢 Functions 🫢

Here's the whole squad, signatures exactly as they live:

subroutine cherfsx (uplo, equed, n, nrhs, a, lda, af, ldaf, ipiv, s, b,
    ldb, x, ldx, rcond, berr, n_err_bnds, err_bnds_norm, err_bnds_comp,
    nparams, params, work, rwork, info)
    CHERFSX
subroutine csyrfsx (uplo, equed, n, nrhs, a, lda, af, ldaf, ipiv, s, b,
    ldb, x, ldx, rcond, berr, n_err_bnds, err_bnds_norm, err_bnds_comp,
    nparams, params, work, rwork, info)
    CSYRFSX
subroutine dsyrfsx (uplo, equed, n, nrhs, a, lda, af, ldaf, ipiv, s, b,
    ldb, x, ldx, rcond, berr, n_err_bnds, err_bnds_norm, err_bnds_comp,
    nparams, params, work, iwork, info)
    DSYRFSX
subroutine ssyrfsx (uplo, equed, n, nrhs, a, lda, af, ldaf, ipiv, s, b,
    ldb, x, ldx, rcond, berr, n_err_bnds, err_bnds_norm, err_bnds_comp,
    nparams, params, work, iwork, info)
    SSYRFSX
subroutine zherfsx (uplo, equed, n, nrhs, a, lda, af, ldaf, ipiv, s, b,
    ldb, x, ldx, rcond, berr, n_err_bnds, err_bnds_norm, err_bnds_comp,
    nparams, params, work, rwork, info)
    ZHERFSX
subroutine zsyrfsx (uplo, equed, n, nrhs, a, lda, af, ldaf, ipiv, s, b,
    ldb, x, ldx, rcond, berr, n_err_bnds, err_bnds_norm, err_bnds_comp,
    nparams, params, work, rwork, info)
    ZSYRFSX

πŸ’… Detailed Description πŸ’…

This section is a whole mood: the page drops the heading and then goes straight into the function docs. So we're doing the same β€” no extra lore, just the real documentation below. 🫑


πŸ”₯ Function Documentation πŸ”₯

🌟 subroutine cherfsx ... CHERFSX 🌟

subroutine cherfsx (character uplo, character equed, integer n, integer
    nrhs, complex, dimension( lda, * ) a, integer lda, complex, dimension(
    ldaf, * ) af, integer ldaf, integer, dimension( * ) ipiv, 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)
    CHERFSX

πŸŽ€ Purpose πŸŽ€

CHERFSX improves the computed solution to a system of linear equations when the coefficient matrix is Hermitian indefinite, and it provides error bounds and backward error estimates for the solution. In addition to the normwise error bound, the code provides the 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 β€” 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 factored form of the matrix A. AF contains the block diagonal matrix D and the multipliers used to obtain the factor U or L from the factorization A = U*D*U**H or A = L*D*L**H as computed by CHETRF.
  • LDAF β€” LDAF is INTEGER. The leading dimension of the array AF. LDAF >= max(1,N).
  • IPIV β€” IPIV is INTEGER array, dimension (N). Details of the interchanges and the block structure of D as determined by CHETRF.
  • 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 CHETRS. 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 contains 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))

Componentwise relative error in the ith solution vector:

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 . 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.
πŸ’€ Bestie, yes, the source really trails off at β€œto determine if the error estimate is .” β€” we are keeping it exactly as written, no cap.

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 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 COMPLEX array, dimension (2*N).
  • RWORK β€” RWORK is 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 397 of file cherfsx.f.

   subroutine csyrfsx (character uplo, character equed, integer n, integer
       nrhs, complex, dimension( lda, * ) a, integer lda, complex, dimension(
       ldaf, * ) af, integer ldaf, integer, dimension( * ) ipiv, 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)
       CSYRFSX

πŸ’– CSYRFSX πŸ’–

✨ Purpose ✨

CSYRFSX improves the computed solution to a system of linear equations when the coefficient matrix is symmetric indefinite, 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 β€” 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 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 β€” LDA is INTEGER. The leading dimension of the array A. LDA >= max(1,N).
  • AF β€” AF is COMPLEX array, dimension (LDAF,N). The factored form of the matrix A. AF contains the block diagonal matrix D and the multipliers used to obtain the factor U or L from the factorization A = U*D*U**T or A = L*D*L**T as computed by CSYTRF.
  • LDAF β€” LDAF is INTEGER. The leading dimension of the array AF. LDAF >= max(1,N).
  • IPIV β€” IPIV is INTEGER array, dimension (N). Details of the interchanges and the block structure of D as determined by CSYTRF.
  • S

πŸ’… S

S is a REAL array, dimension (N).

The scale factors for A, bestie. If EQUED = 'Y', A gets multiplied on the left and the 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.

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, so you actually get a reliable solution and reliable error estimates. Scaling by powers of the radix doesn't cause rounding errors unless the result underflows or overflows β€” but rounding errors during scaling mean you're refining with a matrix that is not equivalent to the input matrix, which produces error estimates that may not be reliable 😭. So like, respect the radix.


🌸 B

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

The right hand side matrix B. That's it, that's her job. ✨


πŸ’œ LDB

LDB is INTEGER.

The leading dimension of the array B. Needs LDB >= max(1,N) or we're gonna have a bad time.


πŸ¦‹ X

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

On entry: the solution matrix X, as computed by CGETRS. On exit: the improved solution matrix X. Glow-up arc, honestly. πŸ‘‘


πŸŽ€ LDX

LDX is INTEGER.

The leading dimension of the array X, and yes LDX >= max(1,N) β€” same vibe check as LDB, no cap.


⭐ RCOND

RCOND is REAL.

Reciprocal scaled condition number β€” an estimate of the reciprocal Skeel condition number of the matrix A after equilibration (if that happened). If this is less than the machine precision (in particular, if it's zero), the matrix is singular to working precision. 🫠

Ngl though β€” the error may still be small even if this number is very small and the matrix looks ill-conditioned. So don't panic-scroll just because RCOND is tiny.

πŸ“ BERR

BERR is REAL array, dimension (NRHS).

Componentwise relative backward error β€” that's 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. Smallest possible chaos edit. πŸ’€


🧚 N_ERR_BNDS

N_ERR_BNDS is INTEGER.

The 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 right below, bestie. ⬇️


πŸ”₯ ERR_BNDS_NORM

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

For each right-hand side, this array has info about various error bounds and condition numbers for 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. Currently there 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) * 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: the 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 is REAL array, dimension (NRHS, N_ERR_BNDS).

Same idea but for 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 (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) * 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: the estimated componentwise 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*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. Respect the defaults, they're iconic for a reason. ✨


πŸŽ€ PARAMS

PARAMS is REAL 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. Slay.

  • 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. But listen β€” 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 COMPLEX array, dimension (2*N).

Scratch space. It works so you don't have to. πŸ’…


🌸 RWORK

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

The real-valued sibling of WORK. Same energy, different type.


πŸ’œ INFO

so here's how you read the tea leaves on INFO, bestie:

  • = 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. (so rude of it)
  • > 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 398 of file csyrfsx.f.


πŸ’œ DSYRFSX πŸ’œ

okay so, big reveal, the double precision bestie:

   subroutine dsyrfsx (character uplo, character equed, integer n, integer
       nrhs, double precision, dimension( lda, * ) a, integer lda, double
       precision, dimension( ldaf, * ) af, integer ldaf, integer, dimension( *
       ) ipiv, 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)

✨ Purpose ✨

DSYRFSX improves the computed solution to a system of linear equations when the coefficient matrix is symmetric indefinite, 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 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 this case, the solution and error bounds returned are for the original unequilibrated system. iykyk πŸ¦‹

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. (she doesn't even look at it. iconic.)


🌸 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. fr fr, don't lie to her here.
    • = '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 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. (half of her is literally not even invited to the function 😭)
  • LDA β€” LDA is INTEGER. The leading dimension of the array A. LDA >= max(1,N).
  • AF β€” AF is DOUBLE PRECISION array, dimension (LDAF,N). The factored form of the matrix A. AF contains the block diagonal matrix D and the multipliers used to obtain the factor U or L from the factorization A = U*D*U**T or A = L*D*L**T as computed by DSYTRF.
  • LDAF β€” LDAF is INTEGER. The leading dimension of the array AF. LDAF >= max(1,N).
  • IPIV β€” IPIV is INTEGER array, dimension (N). Details of the interchanges and the block structure of D as determined by DSYTRF.
  • S β€” S is DOUBLE PRECISION 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 DOUBLE PRECISION 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 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 πŸ’–
  • LDX β€” LDX is INTEGER. The leading dimension of the array X. LDX >= max(1,N).
  • RCOND β€” RCOND is DOUBLE PRECISION. 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. (she's giving "don't judge a book by its condition number" πŸ’€)
  • BERR β€” BERR is DOUBLE PRECISION 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 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 . 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 β€” a DOUBLE PRECISION array, dimension (NRHS, N_ERR_BNDS), bestie πŸ’…. For each right-hand side, this array carries info about various error bounds and condition numbers tied to the componentwise relative error, which is defined like this:

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

That’s the componentwise relative error in the ith solution vector ✨. The array is indexed by the right-hand side i (because 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. 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 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 . (yes, the source really leaves that blank β€” iconic in a cursed way 😭) 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 the number of parameters set in PARAMS. If <= 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 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 🫠.
  • 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) ⭐.

IWORK β€” INTEGER array, dimension (N).

INFO β€” 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 398 of file dsyrfsx.f.


🌈 subroutine ssyrfsx β€” SSYRFSX 🌈

subroutine ssyrfsx (character uplo, character equed, integer n, integer
     nrhs, real, dimension( lda, * ) a, integer lda, real, dimension( ldaf, *
     ) af, integer ldaf, integer, dimension( * ) ipiv, 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)
     SSYRFSX

Purpose ✨

SSYRFSX improves the computed solution to a system of linear equations when the coefficient matrix is symmetric indefinite, 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. Peep 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 🌸.

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 β€” 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.

  • = '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 β€” 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.

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

AF β€” REAL array, dimension (LDAF,N). The factored form of the matrix A. AF contains the block diagonal matrix D and the multipliers used to obtain the factor U or L from the factorization A = U*D*U**T or A = L*D*L**T as computed by SSYTRF.

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

IPIV β€” INTEGER array, dimension (N). Details of the interchanges and the block structure of D as determined by SSYTRF.

S

okay bestie we are still in the argument section and honestly it's the main character of this whole page πŸ’… keep up, we're going through the rest of them one by one β€” no skipping, no "tl;dr", every single clause is coming with us ✨


  • S β€” 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, no cap. 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 β€” REAL array, dimension (LDB,NRHS) πŸ¦‹

The right hand side matrix B. that's it, that's the whole vibe.

  • LDB β€” INTEGER ✨

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

  • X β€” REAL array, dimension (LDX,NRHS) 🌸

On entry, the solution matrix X, as computed by SGETRS. On exit, the improved solution matrix X. glow-up complete πŸ’–

  • LDX β€” INTEGER πŸŽ€

The leading dimension of the array X. LDX >= max(1,N). same energy as LDB, iconic.

  • RCOND β€” 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 β€” so like, don't panic immediately, but do keep an eye on it.

  • BERR β€” 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). it's giving "how much did we have to fudge things", bestie.

  • N_ERR_BNDS β€” 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 β€” 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.
ngl bestie that "is ." right there is literally how it ends in the source β€” the sentence just ✨trails off✨. not me fixing it, i would never πŸ™ˆ

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

  • ERR_BNDS_COMP β€” 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 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) * 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 . 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.
same thing here β€” "is ." and then nothing. the source said what it said 🫢

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. respecting the boundaries, we love to see it πŸ’…

  • PARAMS β€” 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. ⚠️ like, you can do it, but bestie, be aware.
  • 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) 🌟

just doin' its little scratch-space thing, no further notes πŸ’–

  • IWORK β€” INTEGER array, dimension (N) πŸ¦‹

same, but integers. iconic.

  • INFO

INFO is INTEGER β€” okay so here's the vibe check on what it means:

  • = 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 398 of file ssyrfsx.f.

subroutine zherfsx (character uplo, character equed, integer n, integer nrhs, complex*16, dimension( lda, * ) a, integer lda, complex*16, dimension( ldaf, * ) af, integer ldaf, integer, dimension( * ) ipiv, 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)

🌟 ZHERFSX 🌟

πŸ’– Purpose πŸ’–

ZHERFSX improves the computed solution to a system of linear equations when the coefficient matrix is Hermitian indefinite, and it provides error bounds and backward error estimates for the solution. On top of the normwise error bound, the code provides the maximum componentwise error bound if possible. Peep the comments for ERR_BNDS_NORM and ERR_BNDS_COMP for the deets on 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. No cap.

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. Slay, defaults. ✨

πŸŽ€ 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 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.

LDA is INTEGER β€” the leading dimension of the array A. LDA >= max(1,N).

AF is COMPLEX*16 array, dimension (LDAF,N) β€” the factored form of the matrix A. AF contains the block diagonal matrix D and the multipliers used to obtain the factor U or L from the factorization A = U*D*U**H or A = L*D*L**H as computed by ZHETRF.

LDAF is INTEGER β€” the leading dimension of the array AF. LDAF >= max(1,N).

IPIV is INTEGER array, dimension (N) β€” details of the interchanges and the block structure of D as determined by ZHETRF.

S is DOUBLE PRECISION 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 is COMPLEX*16 array, dimension (LDB,NRHS) β€” the right hand side matrix B.

LDB is INTEGER β€” the leading dimension of the array B. LDB >= max(1,N).

X is COMPLEX*16 array, dimension (LDX,NRHS) β€” on entry, the solution matrix X, as computed by ZHETRS. On exit, the improved solution matrix X.

LDX is INTEGER β€” the leading dimension of the array X. LDX >= max(1,N).

RCOND is DOUBLE PRECISION β€” 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 is DOUBLE PRECISION 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 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 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:

            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 . 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 β€” DOUBLE PRECISION array, dimension (NRHS, N_ERR_BNDS). For every right-hand side, this baby holds all the tea about error bounds and condition numbers, specifically for the componentwise relative error, which is defined like this:
Componentwise relative error in the ith solution vector:
               abs(XTRUE(j,i) - X(j,i))
        max_j ----------------------
                    abs(X(j,i))

Okay so how the indexing works, bestie: the array is indexed by the right-hand side i (the componentwise relative error depends on it) and by the type of error info, described below. Right now there are up to three pieces of info returned per right-hand side. If you didn't ask for componentwise accuracy (PARAMS(3) = 0.0), then ERR_BNDS_COMP is never accessed β€” it's giving "you didn't text me so I'm not answering" energy. And if N_ERR_BNDS < 3, then at most the first (:,N_ERR_BNDS) entries come back. πŸ’…

First index in ERR_BNDS_COMP(i,:) = the *i*th right-hand side. Slay.

Second index in ERR_BNDS_COMP(:,err) holds these three fields, periodt:

  • 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 . 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 β€” that's the required reading, iykyk. πŸ“š

  • NPARAMS β€” INTEGER. Specifies the number of parameters set in PARAMS. If <= 0, the PARAMS array is never referenced and default values are used. No cap, we're going default mode. πŸŽ€
  • 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 the higher-numbered ones. 🌸
    • 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 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. ⚠️ Heads up: 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. Not me warning you twice.
    • 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 β€” COMPLEX*16 array, dimension (2*N). Scratch space, do not perceive her. 🫢
  • RWORK β€” DOUBLE PRECISION array, dimension (2*N). More scratch, equally unperceived.
  • INFO β€” INTEGER. The vibe report:
    • = 0: Successful exit. The solution to every right-hand side is guaranteed. We ate. πŸ”₯
    • < 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 for 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 info 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 397 of file zherfsx.f.


πŸ¦‹ ZSYRFSX πŸ¦‹

Okay bestie, new function, same energy. Signature first, verbatim, no edits:

subroutine zsyrfsx (character uplo, character equed, integer n, integer
    nrhs, complex*16, dimension( lda, * ) a, integer lda, complex*16,
    dimension( ldaf, * ) af, integer ldaf, integer, dimension( * ) ipiv,
    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)

✨ Purpose ✨

ZSYRFSX improves the computed solution to a system of linear equations when the coefficient matrix is symmetric indefinite, and provides error bounds and backward error estimates for the solution. In addition to the normwise error bound, the code provides the maximum componentwise error bound if possible. See the comments for ERR_BNDS_NORM and ERR_BNDS_COMP for the details of those error bounds. It's giving overachiever and we love her. πŸ’–

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. Important distinction, don't forget it. ⭐

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 entirely. Defaults stay winning. πŸŽ€

🌈 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. (Yes, correctly, 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 β€” 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 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. Half of her is literally off-limits, we respect the boundary. πŸ™ˆ
  • LDA β€” INTEGER. The leading dimension of the array A. LDA >= max(1,N).
  • AF β€” COMPLEX*16 array, dimension (LDAF,N). The factored form of the matrix A. AF contains the block diagonal matrix D and the multipliers used to obtain the factor U or L from the factorization A = U*D*U**T or A = L*D*L**T as computed by ZSYTRF.
  • LDAF β€” INTEGER. The leading dimension of the array AF. LDAF >= max(1,N).
  • IPIV β€” INTEGER array, dimension (N). Details of the interchanges and the block structure of D as determined by ZSYTRF.
  • S β€”

S πŸ’…

S is a DOUBLE PRECISION array, dimension (N) β€” the scale factors for A, bestie.

So here's the tea πŸ«–: if EQUED = 'Y', then A gets multiplied on the left and the right by diag(S). Whether S is an input or an output depends entirely on FACT:

  • if FACT = 'F', S is an input argument
  • otherwise, S is an output argument

And if FACT = 'F' with EQUED = 'Y', then every single element of S must be positive β€” no zeroes, no negatives, periodt.

When S is output, each element of S is a power of the radix. When S is input, each element should be a power of the radix so you get a reliable solution and reliable error estimates. Scaling by powers of the radix doesn't cause rounding errors β€” unless the result underflows or overflows, obviously 😭. And rounding errors during scaling? They lead to refining with a matrix that is not equivalent to the input matrix, which produces error estimates that may not be reliable. So like… watch out.


B 🌸

B is a COMPLEX*16 array, dimension (LDB,NRHS).

It's 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 ✨

X is a 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 era, honestly.


LDX πŸ¦‹

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

Constraint: LDX >= max(1,N).


RCOND πŸ’œ

RCOND is DOUBLE PRECISION β€” the reciprocal scaled condition number.

It's an estimate of the reciprocal Skeel condition number of the matrix A after equilibration (if equilibration was done, of course).

If this number is less than the machine precision β€” in particular, if it's zero β€” then 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 small and the matrix appears ill-conditioned. So don't panic immediately, iykyk.


BERR πŸ”₯

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

Specifically, it's the componentwise relative backward error of each solution vector X(j). Which is a fancy way of saying: the smallest relative change in any element of A or B that makes X(j) an exact solution. Iconic behaviour.


N_ERR_BNDS ⭐

N_ERR_BNDS is 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 right below πŸ‘‡


ERR_BNDS_NORM 🌈

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

For each right-hand side, this array carries info about all the error bounds and condition numbers corresponding to the normwise relative error, which is defined like this:

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 are currently up to three pieces of info 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 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. (Like, actually true true. Not just vibes.)
  • 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 . 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.
Ngl the original doc just leaves that sentence hanging after "is ." β€” I'm not gonna invent a word for it, so we're passing the mystery along to you πŸ™ˆ

See Lapack Working Note 165 for further details and extra cautions. Read it, bestie, it's giving homework but it matters.


ERR_BNDS_COMP πŸ“

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

Same deal, but for each right-hand side this one holds info about the error bounds and condition numbers for the componentwise relative error, defined as:

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 (the componentwise relative error depends on it, so, y'know) and by the type of error information described below. There are currently up to three pieces of info returned for each right-hand side. And heads up:

  • if componentwise accuracy is not requested (PARAMS(3) = 0.0), then ERR_BNDS_COMP is never 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 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. Again. Same rule πŸ’…
  • 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 . 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.
Same hanging sentence situation as above β€” the source cuts it off at "is ." so I'm keeping it exactly that way, no edits, no guessing 🫢

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


NPARAMS 🧚

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

If NPARAMS <= 0, the PARAMS array is never referenced and default values are used. Zero reads, maximum chill.


PARAMS πŸ‘‘

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

If an entry is < 0.0, that entry gets filled in with the default value used for that parameter. Only positions up to NPARAMS are accessed; defaults are used for higher-numbered parameters. So you can't sneak anything in past the cutoff πŸŽ€

Here's the full rundown:

  • 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. ⚠️ 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, aggressive-aggressive.
  • 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*16 array, dimension (2*N).

That's the whole description. Short king.


RWORK πŸ’–

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

Also just vibing there, living its best life.


okay so next up is INFO, which is literally exactly where this chunk cuts off 😭 β€” stay with me, we're not done yet ✨

  • INFO is INTEGER β€” the little status report at the end, and bestie, you need to read it πŸ’…
    • = 0 β€” successful exit, slay. The solution to every right-hand side is guaranteed. πŸŽ€
    • < 0 β€” if INFO = -i, the i-th argument had an illegal value. Not me calling out your bad input πŸ™ˆ
    • > 0 and <= N β€” U(INFO,INFO) is exactly zero. Like, the factorization did get completed, but the factor U is exactly singular, so the solution and the error bounds could not be computed, and RCOND = 0 is returned. It's giving "we tried, it's broken" πŸ’€
    • = N+J β€” the solution corresponding to the J-th right-hand side is not guaranteed. And heads up: the solutions for other right-hand sides K with K > J may not be guaranteed either, but only the first such right-hand side gets reported. iykyk.
      • If a small componentwise error is not requested (PARAMS(3) = 0.0), then the J-th right-hand side is the first one with a normwise error bound that isn't guaranteed β€” that's the smallest J such that ERR_BNDS_NORM(J,1) = 0.0. ✨
      • By default (PARAMS(3) = 1.0), the J-th right-hand side is the first with either a normwise or a componentwise error bound that isn't 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).
      • Want the tea on 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 398 of file zsyrfsx.f. πŸ¦‹


✨ Author ✨

Generated automatically by Doxygen for LAPACK from the source code. (Yes, the robots wrote this one, no cap πŸ€–πŸ’–)


And that's a wrap on herfsx(3), bestie β€” you made it to the end and I'm so proud of you 🫢 This absolute icon of a page is from LAPACK, Version 3.12.0, and the herfsx(3) date stamp at the bottom is all part of the same package. Now go forth and check your INFO values, periodt. πŸ’œ

πŸ“¦ where this page comes from