|
|
◆ z_dense_coo()
| void z_dense_coo |
( |
int |
m, |
|
|
int |
n, |
|
|
int |
lda, |
|
|
const doublecomplex |
a[], |
|
|
int * |
nnz, |
|
|
doublecomplex |
val[], |
|
|
int |
rowind[], |
|
|
int |
colind[], |
|
|
int |
base, |
|
|
int * |
info |
|
) |
| |
Dense matrix -> COO (Complex matrices)
- Purpose
- This routine converts the dense matrix to the sparse matrix in COO format.
- 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] | lda | Leading dimension of array a[][]. (lda >= m) |
| [in] | a[][] | Array a[la][lda] (la >= n)
Input matrix. |
| [in,out] | nnz | [in] Size of arrays val[] and rowind[] (must be greater than the number of nonzero elements of the input matrix). (nnz > 0)
[out] The actual number of nonzero elements of the input matrix. |
| [out] | val[] | Array val[lval] (lval >= maxnnz)
Values of nonzero elements of output matrix. |
| [out] | rowind[] | Array rowind[lrowind] (lrowind >= maxnnz)
Row indices of output matrix. |
| [out] | colind[] | Array colind[lcolind] (lcolind >= maxnnz)
Column indices of output 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] | info | = 0: Successful exit.
= i < 0: The (-i)-th argument is invalid.
= 10: Insufficient outout array size (maxnnz is too small). |
|