SRC/sgetrs.f(3)

✨ NAME ✨

SRC/sgetrs.f β€” okay so this page is from the Library Functions Manual, and it's literally all about the sgetrs subroutine, bestie. That's the file, that's the vibe, we're in it. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

πŸŽ€ Functions/Subroutines πŸŽ€

subroutine sgetrs (trans, n, nrhs, a, lda, ipiv, b, ldb, info)
           SGETRS

🌸 Function/Subroutine Documentation 🌸

subroutine sgetrs (character trans, integer n, integer nrhs, real,
       dimension( lda, * ) a, integer lda, integer, dimension( * ) ipiv, real,
       dimension( ldb, * ) b, integer ldb, integer info)
       SGETRS

πŸ’– Purpose πŸ’–

SGETRS solves a system of linear equations

A * X = B or A**T * X = B

with a general N-by-N matrix A using the LU factorization computed by SGETRF. No cap, that's the whole point of this icon. 🫢


🌈 Parameters 🌈

TRANS

TRANS is CHARACTER*1. It specifies the form of the system of equations, and the options are giving very specific:

  • = 'N': A * X = B (No transpose)
  • = 'T': A**T* X = B (Transpose)
  • = 'C': A**T* X = B (Conjugate transpose = Transpose)

N

N is INTEGER. It's the order of the matrix A. Constraint: N >= 0. Respect the boundary, bestie. ✨

NRHS

NRHS is INTEGER. It's the number of right hand sides, i.e., the number of columns of the matrix B. Constraint: NRHS >= 0.

A

A is REAL array, dimension (LDA,N). It holds the factors L and U from the factorization A = P*L*U as computed by SGETRF. This is the main character matrix energy. πŸ‘‘

LDA

LDA is INTEGER. It's the leading dimension of the array A. Constraint: LDA >= max(1,N).

IPIV

IPIV is INTEGER array, dimension (N). These are the pivot indices from SGETRF; for 1<=i<=N, row i of the matrix was interchanged with row IPIV(i). Pivot tea, served fresh. πŸ“

B

B is REAL array, dimension (LDB,NRHS). On entry, it's the right hand side matrix B. On exit, it's the solution matrix X. Glow-up moment fr fr. πŸ¦‹

LDB

LDB is INTEGER. It's the leading dimension of the array B. Constraint: LDB >= max(1,N).

INFO

INFO is INTEGER. Exit status tea:

  • = 0: successful exit
  • < 0: if INFO = -i, the i-th argument had an illegal value
If you see a negative INFO, something got typed wrong and the routine is not subtle about it. 😭

πŸ‘‘ Author πŸ‘‘

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Definition at line 120 of file sgetrs.f.


πŸ‘‘ Author (auto-generated) πŸ‘‘

Generated automatically by Doxygen for LAPACK from the source code.


mwah πŸ’‹ that's the whole page, bestie β€” LAPACK Version 3.12.0, SRC/sgetrs.f(3), source and version noted with love. πŸŽ€βœ¨

πŸ“¦ where this page comes from