|
|
◆ z_csx_sort()
| void z_csx_sort |
( |
int |
n, |
|
|
doublecomplex |
val[], |
|
|
const int |
ptr[], |
|
|
int |
ind[], |
|
|
int |
base, |
|
|
int * |
info |
|
) |
| |
Sort elements of sparse matrix (Complex matrices) (CSC/CSR)
- Purpose
- This function sorts the elements of sparse matrix in CSC or CSR format within each column (if CSC) or row (if CSR).
- Parameters
-
| [in] | n | Number of columns (if CSC) or rows (if CSR) of the matrix. (n >= 0) (if n = 0, returns without computation) |
| [in,out] | val[] | Array val[lval] (lval >= nnz)
Values of nonzero elements of input matrix (where nnz is the number of nonzero elements). |
| [in] | ptr[] | Array ptr[lptr] (lptr >= n + 1)
Column pointers (if CSC) or row pointers (if CSR) of input matrix. |
| [in,out] | ind[] | Array ind[lind] (lind >= nnz)
Row indices (if CSC) or column indices (if CSR) of input matrix (where nnz is the number of nonzero elements). |
| [in] | base | Indexing of ptr[] and ind[].
= 0: Zero-based (C style) indexing: Starting index is 0.
= 1: One-based (Fortran style) indexing: Starting index is 1. |
| [out] | info | = 0: Successful exit.
= i < 0: The (-i)-th argument is invalid.
= 10: Algorithm failed due to insufficient stack area. |
|