XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ csc_zussm()

void csc_zussm ( char  uplo,
char  trans,
char  diag,
char  order,
int  n,
int  nrhs,
const doublecomplex  val[],
const int  colptr[],
const int  rowind[],
int  base,
int  ldx,
doublecomplex  x[],
int *  info 
)

Solution of AX = B, ATX = B or AHX = B (Complex triangular matrices) (CSC)

Purpose
This function solves one of the following systems of equations for a sparse matrix in CSC format.
A*X = B, A^T*X = B or A^H*X = B
where A is an n x n upper or lower sparse triangular matrix, and B and X are n x nrhs dense matrices.
Parameters
[in]uploSpecifies 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.
The other triangular elements (not including diagonal elements) are ignored.
[in]transSpecifies the equation to be solved as follows:
= 'N': A*X = B.
= 'T': A^T*X = B.
= 'C': A^H*X = B.
[in]diagSpecifies whether or not A is assumed to be unit triangular.
= 'N': A is not assumed to be unit triangular.
= 'U': A is assumed to be unit triangular. (diagonal elements are assumed to be ones. val[]s at diagonal element positions (if exist) are ignored.)
[in]orderStorage order of x[].
= 'C': Column major.
= 'R': Row major.
[in]nNumber of rows and columns of matrix A. (n >= 0) (If n = 0, returns without computation)
[in]nrhsNumber of columns of matrices B and C. (nrhs >= 0) (if nrhs = 0, returns without computation)
[in]val[]Array val[lval] (lval >= nnz)
Values of nonzero elements of matrix A (where nnz is the number of nonzero elements).
[in]colptr[]Array colptr[lcolptr] (lcolptr >= n + 1)
Column pointers of matrix A.
[in]rowind[]Array rowind[lrowind] (lrowind >= nnz)
Row indices of matrix A (where nnz is the number of nonzero elements).
[in]baseIndexing of colptr[] and rowind[].
= 0: Zero-based (C style) indexing: Starting index is 0.
= 1: One-based (Fortran style) indexing: Starting index is 1.
[in]ldxLeading dimension of two dimensional array x[]. (ldx >= n)
[in,out]x[]Array x[lx] (lx >= n*nrhs)
[in] Right-hand side matrix B.
[out] Solution matrix X.
[out]info= 0: Successful exit.
= i < 0: The (-i)-th argument is invalid.
= i > 0: The matrix is singular (i-th diagonal element is zero).