|
|
◆ z_coo_csr()
| void z_coo_csr |
( |
int |
m, |
|
|
int |
n, |
|
|
int |
nnz, |
|
|
const doublecomplex |
val[], |
|
|
const int |
rowind[], |
|
|
const int |
colind[], |
|
|
int |
base, |
|
|
doublecomplex |
val2[], |
|
|
int |
rowptr2[], |
|
|
int |
colind2[], |
|
|
int |
base2, |
|
|
int * |
info |
|
) |
| |
COO -> CSR (Complex matrices)
- Purpose
- This routine converts the sparse matrix in COO format to the sparse matrix in CSR format.
The order of elements in each row of output matrix will be same as input matrix.
- Parameters
-
| [in] | m | Number of rows of the matrix. (m >= 0) (if m = 0, returns without computation) |
| [in] | n | Number of columns of the matrix. (n >= 0) (if n = 0, returns without computation) |
| [in] | nnz | Number of nonzero elements in the matrix. |
| [in] | val[] | Array val[lval] (lval >= nnz)
Values of nonzero elements of input matrix. |
| [in] | rowind[] | Array rowind[lrowind] (lrowind >= nnz)
Row indices of input matrix. |
| [in] | colind[] | Array colind[lcolind] (lcolind >= nnz)
Column indices of input matrix. |
| [in] | base | Indexing of rowind[] and colind[].
= 0: Zero-based (C style) indexing: Starting index is 0.
= 1: One-based (Fortran style) indexing: Starting index is 1. |
| [out] | val2[] | Array val2[lval2] (lval2 >= nnz)
Values of nonzero elements of output matrix. |
| [out] | rowptr2[] | Array rowptr2[lrowptr2] (lrowptr2 >= m + 1)
Row pointers of output matrix. |
| [out] | colind2[] | Array colind2[lcolind2] (lcolind2 >= nnz)
Column indices of output matrix. |
| [in] | base2 | Indexing of colind2[] and rowptr2[].
= 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. |
|