hpsv(3)

🌸 NAME 🌸

hpsv β€” {hp,sp}sv: factor and solve. Bestie, this is the hpsv(3) page from the Library Functions Manual, and it's a whole journey πŸ’…


✨ SYNOPSIS ✨

πŸŽ€ Functions

  • subroutine chpsv (uplo, n, nrhs, ap, ipiv, b, ldb, info) β€” CHPSV computes the solution to system of linear equations A * X = B for OTHER matrices
  • subroutine cspsv (uplo, n, nrhs, ap, ipiv, b, ldb, info) β€” CSPSV computes the solution to system of linear equations A * X = B for OTHER matrices
  • subroutine dspsv (uplo, n, nrhs, ap, ipiv, b, ldb, info) β€” DSPSV computes the solution to system of linear equations A * X = B for OTHER matrices
  • subroutine sspsv (uplo, n, nrhs, ap, ipiv, b, ldb, info) β€” SSPSV computes the solution to system of linear equations A * X = B for OTHER matrices
  • subroutine zhpsv (uplo, n, nrhs, ap, ipiv, b, ldb, info) β€” ZHPSV computes the solution to system of linear equations A * X = B for OTHER matrices
  • subroutine zspsv (uplo, n, nrhs, ap, ipiv, b, ldb, info) β€” ZSPSV computes the solution to system of linear equations A * X = B for OTHER matrices

πŸ¦‹ Detailed Description πŸ¦‹

okay so real talk β€” the detailed description section here is basically just a vibe check before the main event. Everything juicy lives down in Function Documentation πŸ‘‡


πŸ‘‘ Function Documentation πŸ‘‘

πŸ’œ subroutine chpsv

subroutine chpsv (character uplo, integer n, integer nrhs, complex,
    dimension( * ) ap, integer, dimension( * ) ipiv, complex, dimension(
    ldb, * ) b, integer ldb, integer info)

CHPSV computes the solution to system of linear equations A * X = B for OTHER matrices. periodt.

🌟 Purpose

okay so CHPSV computes the solution to a complex system of linear equations

   A * X = B,

where A is an N-by-N Hermitian matrix stored in packed format and X and B are N-by-NRHS matrices.

The diagonal pivoting method is used to factor A as

   A = U * D * U**H,  if UPLO = 'U', or
   A = L * D * L**H,  if UPLO = 'L',

where U (or L) is a product of permutation and unit upper (lower) triangular matrices, D is Hermitian and block diagonal with 1-by-1 and 2-by-2 diagonal blocks. The factored form of A is then used to solve the system of equations A * X = B. iconic behaviour honestly ✨

πŸ“ Parameters

  • UPLO β€” UPLO is CHARACTER*1. Two moods only, bestie:
    • = 'U': Upper triangle of A is stored;
    • = 'L': Lower triangle of A is stored.
  • N β€” N is INTEGER. The number of linear equations, i.e., 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 matrix B. NRHS >= 0.
  • AP β€” AP is COMPLEX array, dimension (N*(N+1)/2).
    • On entry, the upper or lower triangle of the Hermitian matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows:
      • if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j;
      • if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.
    • See below for further details. πŸ‘€
    • On exit, 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 CHPTRF, stored as a packed triangular matrix in the same storage format as A.
  • IPIV β€” IPIV is INTEGER array, dimension (N). Details of the interchanges and the block structure of D, as determined by CHPTRF. lowkey the receipts of the whole factorization:
    • If IPIV(k) > 0, then rows and columns k and IPIV(k) were interchanged, and D(k,k) is a 1-by-1 diagonal block.
    • If UPLO = 'U' and IPIV(k) = IPIV(k-1) < 0, then rows and columns k-1 and -IPIV(k) were interchanged and D(k-1:k,k-1:k) is a 2-by-2 diagonal block.
    • If UPLO = 'L' and IPIV(k) = IPIV(k+1) < 0, then rows and columns k+1 and -IPIV(k) were interchanged and D(k:k+1,k:k+1) is a 2-by-2 diagonal block.
  • B β€” B is COMPLEX array, dimension (LDB,NRHS).
    • On entry, the N-by-NRHS right hand side matrix B.
    • On exit, if INFO = 0, the N-by-NRHS solution matrix X. glow up complete πŸ¦‹
  • LDB β€” LDB is INTEGER. The leading dimension of the array B. LDB >= max(1,N).
  • INFO β€” INFO is INTEGER.
    • = 0: successful exit
    • < 0: if INFO = -i, the i-th argument had an illegal value
    • > 0: if INFO = i, D(i,i) is exactly zero. The factorization has been completed, but the block diagonal matrix D is exactly singular, so the solution could not be computed. 😭 tragic, no solution for you

🧚 Author

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

🌈 Further Details:

The packed storage scheme is illustrated by the following example when N = 4, UPLO = 'U':

Two-dimensional storage of the Hermitian matrix A:

     a11 a12 a13 a14
         a22 a23 a24
             a33 a34     (aij = conjg(aji))
                 a44

Packed storage of the upper triangle of A:

  AP = [ a11, a12, a22, a13, a23, a33, a14, a24, a34, a44 ]

Definition at line 161 of file chpsv.f.


πŸ’œ subroutine cspsv

subroutine cspsv (character uplo, integer n, integer nrhs, complex,
    dimension( * ) ap, integer, dimension( * ) ipiv, complex, dimension(
    ldb, * ) b, integer ldb, integer info)

CSPSV computes the solution to system of linear equations A * X = B for OTHER matrices. (yes bestie, same energy, slightly different matrix πŸ’…)

🌟 Purpose

okay so CSPSV computes the solution to a complex system of linear equations

   A * X = B,

where A is an N-by-N symmetric matrix stored in packed format and X and B are N-by-NRHS matrices.

The diagonal pivoting method is used to factor A as

   A = U * D * U**T,  if UPLO = 'U', or
   A = L * D * L**T,  if UPLO = 'L',

where U (or L) is a product of permutation and unit upper (lower) triangular matrices, D is symmetric and block diagonal with 1-by-1 and 2-by-2 diagonal blocks. The factored form of A is then used to solve the system of equations A * X = B.

⚠️ heads up: this one's symmetric with **T transposes, not Hermitian with **H conjugates like CHPSV. not the same thing, don't mix them up or it's giving bug report πŸ’€

πŸ“ Parameters

  • UPLO β€” UPLO is CHARACTER*1. Two moods only:
    • = 'U': Upper triangle of A is stored;
    • = 'L': Lower triangle of A is stored.
  • N β€” N is INTEGER. The number of linear equations, i.e., 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 matrix B. NRHS >= 0.
  • AP β€” AP is COMPLEX array, dimension (N*(N+1)/2).
    • On entry, the upper or lower triangle of the symmetric matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows:
      • if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j;
      • if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.
    • See below for further details.
    • On exit, 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 CSPTRF, stored as a packed triangular matrix in the same storage format as A.
  • IPIV β€” IPIV is INTEGER array, dimension (N). Details of the interchanges and the block structure of D, as determined by CSPTRF:
    • If IPIV(k) > 0, then rows and columns k and IPIV(k) were interchanged, and D(k,k) is a 1-by-1 diagonal block.
    • If UPLO = 'U' and IPIV(k) = IPIV(k-1) < 0, then rows and columns k-1 and -IPIV(k) were interchanged and D(k-1:k,k-1:k) is a 2-by-2 diagonal block.
    • If UPLO = 'L' and IPIV(k) = IPIV(k+1) < 0, then rows and columns k+1 and -IPIV(k) were interchanged and D(k:k+1,k:k+1) is a 2-by-2 diagonal block.
  • B β€” B is COMPLEX array, dimension (LDB,NRHS).
    • On entry, the N-by-NRHS right hand side matrix B.
    • On exit, if INFO = 0, the N-by-NRHS solution matrix X.
  • LDB β€” LDB is INTEGER. The leading dimension of the array B. LDB >= max(1,N).
  • INFO β€” INFO is INTEGER.
    • = 0: successful exit
    • < 0: if INFO = -i, the i-th argument had an illegal value
    • > 0: if INFO = i, D(i,i) is exactly zero. The factorization has been completed, but the block diagonal matrix D is exactly singular, so the solution could not be computed. singular D said "not today" πŸ™ˆ

🧚 Author

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

🌈 Further Details:

The packed storage scheme is illustrated by the following example when N = 4, UPLO = 'U':

Two-dimensional storage of the symmetric matrix A:

     a11 a12 a13 a14
         a22 a23 a24
             a33 a34     (aij = aji)
                 a44

Packed storage of the upper triangle of A:

  AP = [ a11, a12, a22, a13, a23, a33, a14, a24, a34, a44 ]

Definition at line 161 of file cspsv.f.


πŸ’œ subroutine dspsv

subroutine dspsv (character uplo, integer n, integer nrhs, double precision,
    dimension( * ) ap, integer, dimension( * ) ipiv, double precision,
    dimension( ldb, * ) b, integer ldb, integer info)

DSPSV computes the solution to system of linear equations A * X = B for OTHER matrices. double precision entered the chat ✨

🌟 Purpose

…and this is exactly where the page hands off to the next part, bestie β€” we're literally mid-sentence, stay tuned 🫢

so DSPSV is out here doing the absolute most, solving a real system of linear equations

    A * X = B,

where A is an N-by-N symmetric matrix sitting pretty in packed format, and X and B are N-by-NRHS matrices. ✨

The diagonal pivoting method is what factors A, bestie:

    A = U * D * U**T,  if UPLO = 'U', or
    A = L * D * L**T,  if UPLO = 'L',

where U (or L) is a product of permutation and unit upper (lower) triangular matrices, and D is symmetric and block diagonal with 1-by-1 and 2-by-2 diagonal blocks. Then the factored form of A gets used to solve A * X = B. That's the whole arc of the episode πŸ’…

🌸 Parameters

  • UPLO β€” CHARACTER*1, and it's giving pick-a-side: = 'U' means the upper triangle of A is stored; = 'L' means the lower triangle of A is stored. Choose wisely πŸŽ€
  • N β€” INTEGER, the number of linear equations, i.e. the order of the matrix A. Constraint: N >= 0. No cap, but also no negativity, we don't do that here ✨
  • NRHS β€” INTEGER, the number of right hand sides, i.e. the number of columns of the matrix B. Constraint: NRHS >= 0. Same energy πŸ¦‹
  • AP β€” DOUBLE PRECISION array, dimension (N*(N+1)/2). On entry: the upper or lower triangle of the symmetric matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP like this:
if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j;
if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.

See below for further details, because there ARE further details and they're cute. On exit: 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 DSPTRF, stored as a packed triangular matrix in the same storage format as A. Iconic, she reuses her own fit πŸ”₯

  • IPIV β€” INTEGER array, dimension (N). The details of the interchanges and the block structure of D, as determined by DSPTRF. If IPIV(k) > 0, then rows and columns k and IPIV(k) were interchanged, and D(k,k) is a 1-by-1 diagonal block. If UPLO = 'U' and IPIV(k) = IPIV(k-1) < 0, then rows and columns k-1 and -IPIV(k) were interchanged and D(k-1:k,k-1:k) is a 2-by-2 diagonal block. If UPLO = 'L' and IPIV(k) = IPIV(k+1) < 0, then rows and columns k+1 and -IPIV(k) were interchanged and D(k:k+1,k:k+1) is a 2-by-2 diagonal block. Negative IPIV is not a red flag, it's just 2-by-2 block szn 🫢
  • B β€” DOUBLE PRECISION array, dimension (LDB,NRHS). On entry: the N-by-NRHS right hand side matrix B. On exit, if INFO = 0: the N-by-NRHS solution matrix X. She goes in as B and comes out as X, main character development fr 🌈
  • LDB β€” INTEGER, the leading dimension of the array B. Constraint: LDB >= max(1,N). Respect the leading dimension or suffer 😭
  • INFO β€” INTEGER, the vibe check:
    • = 0: successful exit πŸ’–
    • < 0: if INFO = -i, the i-th argument had an illegal value πŸ™ˆ
    • > 0: if INFO = i, D(i,i) is exactly zero. The factorization has been completed, but the block diagonal matrix D is exactly singular, so the solution could not be computed πŸ’€ (this is the real danger, not a drill)

πŸŽ€ Author

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

⭐ Further Details:

The packed storage scheme is illustrated by the following example when N = 4, UPLO = 'U':

Two-dimensional storage of the symmetric matrix A:

   a11 a12 a13 a14
       a22 a23 a24
           a33 a34     (aij = aji)
               a44

Packed storage of the upper triangle of A:

AP = [ a11, a12, a22, a13, a23, a33, a14, a24, a34, a44 ]

Look at her, folded up like a little origami swan and still the whole matrix πŸ¦‹βœ¨

Definition at line 161 of file dspsv.f.


πŸ’– SSPSV

subroutine sspsv (character uplo, integer n, integer nrhs, real, dimension(
* ) ap, integer, dimension( * ) ipiv, real, dimension( ldb, * ) b,
integer ldb, integer info)

SSPSV computes the solution to system of linear equations A * X = B for OTHER matrices β€” that's literally the one-liner, no notes πŸ’…

Purpose:

okay so SSPSV computes the solution to a real system of linear equations

    A * X = B,

where A is an N-by-N symmetric matrix stored in packed format and X and B are N-by-NRHS matrices.

The diagonal pivoting method is used to factor A as

    A = U * D * U**T,  if UPLO = 'U', or
    A = L * D * L**T,  if UPLO = 'L',

where U (or L) is a product of permutation and unit upper (lower) triangular matrices, D is symmetric and block diagonal with 1-by-1 and 2-by-2 diagonal blocks, and then the factored form of A is used to solve A * X = B. Same storyline, REAL flavor 🌸

Parameters

  • UPLO β€” CHARACTER*1. = 'U': upper triangle of A is stored; = 'L': lower triangle of A is stored. Periodt πŸŽ€
  • N β€” INTEGER, the number of linear equations, i.e. the order of the matrix A. N >= 0.
  • NRHS β€” INTEGER, the number of right hand sides, i.e. the number of columns of the matrix B. NRHS >= 0.
  • AP β€” REAL array, dimension (N*(N+1)/2). On entry: the upper or lower triangle of the symmetric matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows:
if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j;
if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.

See below for further details. On exit: 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 SSPTRF, stored as a packed triangular matrix in the same storage format as A ✨

  • IPIV β€” INTEGER array, dimension (N). Details of the interchanges and the block structure of D, as determined by SSPTRF. If IPIV(k) > 0, then rows and columns k and IPIV(k) were interchanged, and D(k,k) is a 1-by-1 diagonal block. If UPLO = 'U' and IPIV(k) = IPIV(k-1) < 0, then rows and columns k-1 and -IPIV(k) were interchanged and D(k-1:k,k-1:k) is a 2-by-2 diagonal block. If UPLO = 'L' and IPIV(k) = IPIV(k+1) < 0, then rows and columns k+1 and -IPIV(k) were interchanged and D(k:k+1,k:k+1) is a 2-by-2 diagonal block. She's thorough, she's precise, she's booked and busy πŸ’…
  • B β€” REAL array, dimension (LDB,NRHS). On entry: the N-by-NRHS right hand side matrix B. On exit, if INFO = 0: the N-by-NRHS solution matrix X.
  • LDB β€” INTEGER, the leading dimension of the array B. LDB >= max(1,N).
  • INFO β€” INTEGER:
    • = 0: successful exit 🌟
    • < 0: if INFO = -i, the i-th argument had an illegal value πŸ™ˆ
    • > 0: if INFO = i, D(i,i) is exactly zero. The factorization has been completed, but the block diagonal matrix D is exactly singular, so the solution could not be computed. Sorry bestie, no solution today πŸ’€

Author

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Further Details:

The packed storage scheme is illustrated by the following example when N = 4, UPLO = 'U':

Two-dimensional storage of the symmetric matrix A:

   a11 a12 a13 a14
       a22 a23 a24
           a33 a34     (aij = aji)
               a44

Packed storage of the upper triangle of A:

AP = [ a11, a12, a22, a13, a23, a33, a14, a24, a34, a44 ]

Same example, same slay, different precision 🧚

Definition at line 161 of file sspsv.f.


πŸ‘‘ ZHPSV

subroutine zhpsv (character uplo, integer n, integer nrhs, complex*16,
dimension( * ) ap, integer, dimension( * ) ipiv, complex*16, dimension(
ldb, * ) b, integer ldb, integer info)

ZHPSV computes the solution to system of linear equations A * X = B for OTHER matrices πŸ‘‘

Purpose:

okay so ZHPSV computes the solution to a complex system of linear equations

    A * X = B,

where A is an N-by-N Hermitian matrix stored in packed format and X and B are N-by-NRHS matrices.

The diagonal pivoting method is used to factor A as

    A = U * D * U**H,  if UPLO = 'U', or
    A = L * D * L**H,  if UPLO = 'L',

where U (or L) is a product of permutation and unit upper (lower) triangular matrices, D is Hermitian and block diagonal with 1-by-1 and 2-by-2 diagonal blocks. Then the factored form of A is used to solve the system of equations A * X = B. Note the **H, bestie β€” conjugate transpose, she's fancy like that πŸ¦‹πŸ’œ

Parameters

  • UPLO β€” CHARACTER*1. = 'U': upper triangle of A is stored; = 'L': lower triangle of A is stored. Pick one, commit to it πŸ’…
  • N β€” INTEGER, the number of linear equations, i.e. the order of the matrix A. N >= 0.
  • NRHS β€” INTEGER, the number of right hand sides, i.e. the number of columns of the matrix B. NRHS >= 0.
  • AP β€” okay so this is the array, andβ€”
  • AP β€” okay bestie, this is a COMPLEX*16 array, dimension (N*(N+1)/2). On entry, it’s the upper or lower triangle of the Hermitian matrix A, packed columnwise in a linear array. The j-th column of A is stored in AP like this:
    • if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j;
    • if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n. See below for further details. On exit, 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 ZHPTRF, stored as a packed triangular matrix in the same storage format as A.
  • IPIV β€” this is the drama tracker, lowkey. IPIV is an INTEGER array, dimension (N). It holds details of the interchanges and the block structure of D, as determined by ZHPTRF. If IPIV(k) > 0, then rows and columns k and IPIV(k) were interchanged, and D(k,k) is a 1-by-1 diagonal block. If UPLO = 'U' and IPIV(k) = IPIV(k-1) < 0, then rows and columns k-1 and -IPIV(k) were interchanged and D(k-1:k,k-1:k) is a 2-by-2 diagonal block. If UPLO = 'L' and IPIV(k) = IPIV(k+1) < 0, then rows and columns k+1 and -IPIV(k) were interchanged and D(k:k+1,k:k+1) is a 2-by-2 diagonal block.
  • B β€” B is a COMPLEX*16 array, dimension (LDB,NRHS). On entry, it’s the N-by-NRHS right hand side matrix B. On exit, if INFO = 0, it’s the N-by-NRHS solution matrix X. glow-up moment fr fr πŸ’…
  • LDB β€” LDB is INTEGER. It’s the leading dimension of the array B. LDB >= max(1,N). no cap.
  • INFO β€” INFO is INTEGER, and it’s giving status report:
    • = 0: successful exit ✨
    • < 0: if INFO = -i, the i-th argument had an illegal value
    • > 0: if INFO = i, D(i,i) is exactly zero. The factorization has been completed, but the block diagonal matrix D is exactly singular, so the solution could not be computed. big yikes, but at least it told you

Author πŸ‘‘

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

Further Details πŸ”

The packed storage scheme is illustrated by the following example when N = 4, UPLO = 'U':

Two-dimensional storage of the Hermitian matrix A:

   a11 a12 a13 a14
       a22 a23 a24
           a33 a34     (aij = conjg(aji))
               a44

Packed storage of the upper triangle of A:

AP = [ a11, a12, a22, a13, a23, a33, a14, a24, a34, a44 ]

Definition at line 161 of file zhpsv.f.


🌸 zspsv β€” symmetric packed solve, same energy 🌸

subroutine zspsv (character uplo, integer n, integer nrhs, complex*16,
    dimension( * ) ap, integer, dimension( * ) ipiv, complex*16, dimension(
    ldb, * ) b, integer ldb, integer info)

ZSPSV computes the solution to system of linear equations A * X = B for OTHER matrices. she’s the symmetric sibling and she ate

Purpose 🎯

ZSPSV computes the solution to a complex system of linear equations

A * X = B,

where A is an N-by-N symmetric matrix stored in packed format and X and B are N-by-NRHS matrices.

The diagonal pivoting method is used to factor A as

A = U * D * U**T,  if UPLO = 'U', or
A = L * D * L**T,  if UPLO = 'L',

where U (or L) is a product of permutation and unit upper (lower) triangular matrices, D is symmetric and block diagonal with 1-by-1 and 2-by-2 diagonal blocks. The factored form of A is then used to solve the system of equations A * X = B. literally the whole plot

Parameters 🧾

  • UPLO β€” UPLO is CHARACTER*1:
    • = 'U': upper triangle of A is stored;
    • = 'L': lower triangle of A is stored.
  • N β€” N is INTEGER. It’s the number of linear equations, i.e., the order of the matrix A. N >= 0.
  • NRHS β€” NRHS is INTEGER. It’s the number of right hand sides, i.e., the number of columns of the matrix B. NRHS >= 0.
  • AP β€” AP is a COMPLEX*16 array, dimension (N*(N+1)/2). On entry, it’s the upper or lower triangle of the symmetric matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows:
    • if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j;
    • if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n. See below for further details. On exit, 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 ZSPTRF, stored as a packed triangular matrix in the same storage format as A. same storage format, different transpose vibe
  • IPIV β€” IPIV is an INTEGER array, dimension (N). It holds details of the interchanges and the block structure of D, as determined by ZSPTRF. If IPIV(k) > 0, then rows and columns k and IPIV(k) were interchanged, and D(k,k) is a 1-by-1 diagonal block. If UPLO = 'U' and IPIV(k) = IPIV(k-1) < 0, then rows and columns k-1 and -IPIV(k) were interchanged and D(k-1:k,k-1:k) is a 2-by-2 diagonal block. If UPLO = 'L' and IPIV(k) = IPIV(k+1) < 0, then rows and columns k+1 and -IPIV(k) were interchanged and D(k:k+1,k:k+1) is a 2-by-2 diagonal block.
  • B β€” B is a COMPLEX*16 array, dimension (LDB,NRHS). On entry, it’s the N-by-NRHS right hand side matrix B. On exit, if INFO = 0, it’s the N-by-NRHS solution matrix X.
  • LDB β€” LDB is INTEGER. It’s the leading dimension of the array B. LDB >= max(1,N).
  • INFO β€” INFO is INTEGER:
    • = 0: successful exit
    • < 0: if INFO = -i, the i-th argument had an illegal value
    • > 0: if INFO = i, D(i,i) is exactly zero. The factorization has been completed, but the block diagonal matrix D is exactly singular, so the solution could not be computed. singular D said β€œnot today” 😭

Author πŸ‘‘

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

Further Details πŸ”

The packed storage scheme is illustrated by the following example when N = 4, UPLO = 'U':

Two-dimensional storage of the symmetric matrix A:

   a11 a12 a13 a14
       a22 a23 a24
           a33 a34     (aij = aji)
               a44

Packed storage of the upper triangle of A:

AP = [ a11, a12, a22, a13, a23, a33, a14, a24, a34, a44 ]

Definition at line 161 of file zspsv.f.

Author πŸ“

Generated automatically by Doxygen for LAPACK from the source code.


Okay that’s the whole manual page, bestie. The footer says LAPACK Version 3.12.0 and the page is hpsv(3) β€” consider this your cute little sign-off, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from