NAME

sptrfs - improve the computed solution to a system of linear equations when the coefficient matrix is symmetric positive definite and tridiagonal, and provides error bounds and backward error estimates for the solution


SYNOPSIS

  SUBROUTINE SPTRFS( N, NRHS, DIAG, OFFD, DIAGF, OFFDF, B, LDB, X, 
 *      LDX, FERR, BERR, WORK, INFO)
  INTEGER N, NRHS, LDB, LDX, INFO
  REAL DIAG(*), OFFD(*), DIAGF(*), OFFDF(*), B(LDB,*), X(LDX,*), FERR(*), BERR(*), WORK(*)
  SUBROUTINE SPTRFS_64( N, NRHS, DIAG, OFFD, DIAGF, OFFDF, B, LDB, X, 
 *      LDX, FERR, BERR, WORK, INFO)
  INTEGER*8 N, NRHS, LDB, LDX, INFO
  REAL DIAG(*), OFFD(*), DIAGF(*), OFFDF(*), B(LDB,*), X(LDX,*), FERR(*), BERR(*), WORK(*)

F95 INTERFACE

  SUBROUTINE PTRFS( [N], [NRHS], DIAG, OFFD, DIAGF, OFFDF, B, [LDB], 
 *       X, [LDX], FERR, BERR, [WORK], [INFO])
  INTEGER :: N, NRHS, LDB, LDX, INFO
  REAL, DIMENSION(:) :: DIAG, OFFD, DIAGF, OFFDF, FERR, BERR, WORK
  REAL, DIMENSION(:,:) :: B, X
  SUBROUTINE PTRFS_64( [N], [NRHS], DIAG, OFFD, DIAGF, OFFDF, B, [LDB], 
 *       X, [LDX], FERR, BERR, [WORK], [INFO])
  INTEGER(8) :: N, NRHS, LDB, LDX, INFO
  REAL, DIMENSION(:) :: DIAG, OFFD, DIAGF, OFFDF, FERR, BERR, WORK
  REAL, DIMENSION(:,:) :: B, X

C INTERFACE

#include <sunperf.h>

void sptrfs(int n, int nrhs, float *diag, float *offd, float *diagf, float *offdf, float *b, int ldb, float *x, int ldx, float *ferr, float *berr, int *info);

void sptrfs_64(long n, long nrhs, float *diag, float *offd, float *diagf, float *offdf, float *b, long ldb, float *x, long ldx, float *ferr, float *berr, long *info);


PURPOSE

sptrfs improves the computed solution to a system of linear equations when the coefficient matrix is symmetric positive definite and tridiagonal, and provides error bounds and backward error estimates for the solution.


ARGUMENTS