stpsv(3S)

STPSV, DTPSV, CTPSV, ZTPSV - Solves a real or complex triangular packed system of equations

As shipped in IRIX 6.5.19. Added in IRIX 6.5.15.

NAME
     STPSV, DTPSV, CTPSV, ZTPSV - Solves a real or complex triangular packed
     system of equations

SYNOPSIS
     Single precision

          Fortran:
               CALL STPSV (uplo, trans, diag, n, ap, x, incx)

          C/C++:
               #include <scsl_blas.h>
               void stpsv (char *uplo, char *trans, char *diag, int n, float
               *ap, float *x, int incx);

     Double precision

          Fortran:
               CALL DTPSV (uplo, trans, diag, n, ap, x, incx)

          C/C++:
               #include <scsl_blas.h>
               void dtpsv (char *uplo, char *trans, char *diag, int n, double
               *ap, double *x, int incx);

     Single precision complex

          Fortran:
               CALL CTPSV (uplo, trans, diag, n, ap, x, incx)

          C/C++:
               #include <scsl_blas.h>
               void ctpsv (char *uplo, char *trans, char *diag, int n,
               scsl_complex *ap, scsl_complex *x, int incx);

          C++ STL:
               #include <complex.h>
               #include <scsl_blas.h>
               void ctpsv (char *uplo, char *trans, char *diag, int n,
               complex<float> *ap, complex<float> *x, int incx);

     Double precision complex

          Fortran:
               CALL ZTPSV (uplo, trans, diag, n, ap, x, incx)

          C/C++:
               #include <scsl_blas.h>
               void ztpsv (char *uplo, char *trans, char *diag, int n,
               scsl_zomplex *ap, scsl_zomplex *x, int incx);

          C++ STL:
               #include <complex.h>
               #include <scsl_blas.h>
               void ztpsv (char *uplo, char *trans, char *diag, int n,
               complex<double> *ap, complex<double> *x, int incx);

IMPLEMENTATION
     These routines are part of the SCSL Scientific Library and can be loaded
     using either the -lscs or the -lscs_mp option.  The -lscs_mp option
     directs the linker to use the multi-processor version of the library.

     When linking to SCSL with -lscs or -lscs_mp, the default integer size is
     4 bytes (32 bits). Another version of SCSL is available in which integers
     are 8 bytes (64 bits).  This version allows the user access to larger
     memory sizes and helps when porting legacy Cray codes.  It can be loaded
     by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
     only one of the two versions; 4-byte integer and 8-byte integer library
     calls cannot be mixed.

     The C and C++ prototypes shown above are appropriate for the 4-byte
     integer version of SCSL. When using the 8-byte integer version, the
     variables of type int become long long and the <scsl_blas_i8.h> header
     file should be included.

DESCRIPTION
     These routines solve one of the following systems of equations, using the
     operation associated with each:

          Equations      Operation

          Ax=b           x <- A-1x

          ATx=b          x <- A-Tx

          AHx=b          x <- A-Hx (CTPSV, ZTPSV only)

     where

     *   b and x are n-element vectors

     *   A is either a unit or nonunit n-by-n upper or lower triangular band
         matrix with (k+1) diagonals

     *   A-1 is the inverse of A

     *   AT is the transpose of A

     *   A-T is the inverse of AT

     *   AH is the conjugate transpose of A

     *   A-H is the inverse of AH

     On input, the right-hand side vector b is stored in the array argument x.
     On output, the solution vector x overwrites b in the same array argument
     x.

     See the NOTES section of this man page for information about the
     interpretation of the data types described in the following arguments.

     These routines have the following arguments:

     uplo      Character.  (input)
               Specifies whether the matrix is an upper or lower triangular
               matrix, as follows:

               uplo = 'U' or 'u': A is an upper triangular matrix.
               uplo = 'L' or 'l': A is a lower triangular matrix.

               For C/C++, a pointer to this character is passed.

     trans     Character.  (input)
               Specifies the operation to be performed, as follows:

               trans = 'N' or 'n':  x <- A-1x

               trans = 'T' or 't':  x <- A-Tx

               trans = 'C' or 'c':  x <- A-Tx (STPSV, DTPSV), or x <- A-Hx
               (CTPSV, ZTPSV)

               For C/C++, a pointer to this character is passed.

     diag      Character.  (input)
               Specifies whether A is unit triangular, as follows:

               diag = 'U' or 'u': A is assumed to be unit triangular.
               diag = 'N' or 'n': A is not assumed to be unit triangular.

               For C/C++, a pointer to this character is passed.

     n         Integer.  (input)
               Specifies the order of matrix A.  n >= 0.

     ap        Array of dimension (n(n+1))/2 .  (input)
               STPSV: Single precision array.
               DTPSV: Double precision array.
               CTPSV: Single precision complex array.
               ZTPSV: Double precision complex array.

               Before entry with uplo = 'U' or 'u', array ap must contain the
               upper triangular matrix packed sequentially, column-by-column,
               so that ap(1) contains A(1,1), ap(2) contains A(1,2), ap(3)
               contains A(2,2), and so on.

               Before entry with uplo = 'L' or 'l', array ap must contain the
               lower triangular matrix packed sequentially, column-by-column,
               so that ap(1) contains A(1,1), ap(2) contains A(2,1), ap(3)
               contains A(3,1), and so on.

               When diag = 'U' or 'u', these routines assume that all elements
               of array a that represent diagonal elements of the matrix A are
               1.  In this case, neither of these routines will reference any
               of the diagonal elements.

     x         Array of dimension 1+(n-1) * |incx|.  (input and output)
               STPSV: Single precision array.
               DTPSV: Double precision array.
               CTPSV: Single precision complex array.
               ZTPSV: Double precision complex array.
               Contains the vector b, then the vector x.

     incx      Integer.  (input)
               Specifies the increment for the elements of x.  incx must not
               be 0.

NOTES
     Tests for singularity or near-singularity are not included in these
     routines.  You must perform such tests before calling either routine.

     These routines are Level 2 Basic Linear Algebra Subprograms (Level 2
     BLAS).

     When working backward (incx < 0), each routine starts at the end of the
     vector and moves backward, as follows:

          x(1-incx * (n-1)), x(1-incx * (n-2)), ..., x(1)


   Data Types
     The following data types are described in this documentation:

     Fortran:

          Term Used                     Data type

          Array dimensioned n           X(n)

          Character                     CHARACTER

          Integer                       INTEGER (INTEGER*8 for -lscs_i8[_mp])

          Single precision              REAL

          Double precision              DOUBLE PRECISION

          Single precision complex      COMPLEX

          Double precision complex      DOUBLE COMPLEX

     C/C++:

          Array dimensioned n           x[n]

          Character                     char

          Integer                       int (long long for -lscs_i8[_mp])

          Single precision              float

          Double precision              double

          Single precision complex      scsl_complex

          Double precision complex      scsl_zomplex

     C++ STL:

          Array dimensioned n           x[n]

          Character                     char

          Integer                       int (long long for -lscs_i8[_mp])

          Single precision              float

          Double precision              double

          Single precision complex      complex<float>

          Double precision complex      complex<double>

SEE ALSO
     INTRO_SCSL(3S), INTRO_BLAS2(3S)

     INTRO_CBLAS(3S) for information about using the C interface to Fortran 77
     Basic Linear Algebra Subprograms (legacy BLAS) set forth by the Basic
     Linear Algebra Subprograms Technical Forum.