|
◆ ztpsv()
void ztpsv |
( |
char |
uplo, |
|
|
char |
trans, |
|
|
char |
diag, |
|
|
int |
n, |
|
|
doublecomplex |
ap[], |
|
|
doublecomplex |
x[], |
|
|
int |
incx |
|
) |
| |
Solution of Ax = b, ATx = b or AHx = b (complex triangular matrices in packed form) (BLAS 2)
- Purpose
- This routine solves one of the systems of equations
A*x = b, A^T*x = b or A^H*x = b
where b and x are n element vectors and A is an n x n unit or non-unit, upper or lower triangular matrix, supplied in packed form.
No test for singularity or near-singularity is included in this routine. Such tests must be performed before calling this routine.
- Parameters
-
[in] | uplo | Specifies whether the matrix is an upper or lower triangular matrix as follows:
= 'U': A is an upper triangular matrix.
= 'L': A is an lower triangular matrix. |
[in] | trans | Specifies the equation to be solved as follows:
= 'N': A*x = b.
= 'T': A^T*x = b.
= 'C': A^H*x = b. |
[in] | diag | Specifies whether or not A is unit triangular as follows:
= 'N': A is not assumed to be unit triangular.
= 'U': A is assumed to be unit triangular. (diagonal elements of ap[] are not references) |
[in] | n | Order of the matrix A. (n >= 0) (If n = 0, returns without computation) |
[in] | ap[] | Array ap[lap] (lap >= n(n + 1)/2)
n x n triangular matrix A in packed form. (Upper or lower triangular) |
[in,out] | x[] | Array x[lx] (lx >= 1 + (n - 1)*abs(incx))
[in] Right-hand side vector b.
[out] Solution vector x. |
[in] | incx | Storage spacing between elements of b and x. (incx != 0) |
- Reference
- BLAS
|