sgetrs - solve a system of linear equations A * X = B or A' * X = B with a general N-by-N matrix A using the LU factorization computed by SGETRF
SUBROUTINE SGETRS( TRANSA, N, NRHS, A, LDA, IPIVOT, B, LDB, INFO) CHARACTER * 1 TRANSA INTEGER N, NRHS, LDA, LDB, INFO INTEGER IPIVOT(*) REAL A(LDA,*), B(LDB,*)
SUBROUTINE SGETRS_64( TRANSA, N, NRHS, A, LDA, IPIVOT, B, LDB, INFO) CHARACTER * 1 TRANSA INTEGER*8 N, NRHS, LDA, LDB, INFO INTEGER*8 IPIVOT(*) REAL A(LDA,*), B(LDB,*)
SUBROUTINE GETRS( [TRANSA], [N], [NRHS], A, [LDA], IPIVOT, B, [LDB], * [INFO]) CHARACTER(LEN=1) :: TRANSA INTEGER :: N, NRHS, LDA, LDB, INFO INTEGER, DIMENSION(:) :: IPIVOT REAL, DIMENSION(:,:) :: A, B
SUBROUTINE GETRS_64( [TRANSA], [N], [NRHS], A, [LDA], IPIVOT, B, * [LDB], [INFO]) CHARACTER(LEN=1) :: TRANSA INTEGER(8) :: N, NRHS, LDA, LDB, INFO INTEGER(8), DIMENSION(:) :: IPIVOT REAL, DIMENSION(:,:) :: A, B
#include <sunperf.h>
void sgetrs(char transa, int n, int nrhs, float *a, int lda, int *ipivot, float *b, int ldb, int *info);
void sgetrs_64(char transa, long n, long nrhs, float *a, long lda, long *ipivot, float *b, long ldb, long *info);
sgetrs solves a system of linear equations A * X = B or A' * X = B with a general N-by-N matrix A using the LU factorization computed by SGETRF.
= 'N': A * X = B (No transpose)
= 'T': A'* X = B (Transpose)
= 'C': A'* X = B (Conjugate transpose = Transpose)
= 0: successful exit
< 0: if INFO = -i, the i-th argument had an illegal value