|
|
◆ csr_dense()
| def csr_dense |
( |
m |
, |
|
|
n |
, |
|
|
val |
, |
|
|
rowptr |
, |
|
|
colind |
, |
|
|
base |
, |
|
|
a |
|
|
) |
| |
CSR -> dense matrix
- Purpose
- This routine converts the sparse matrix in CSR format to the dense matrix.
- Returns
- info (int)
= 0: Successful exit.
= i < 0: The (-i)-th argument is invalid.
- 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] | val | Numpy ndarray (1-dimensional, float, nnz)
Values of nonzero elements of matrix A (where nnz is the number of nonzero elements). |
| [in] | rowptr | Numpy ndarray (1-dimensional, int32, m + 1)
Row pointers of matrix A. |
| [in] | colind | Numpy ndarray (1-dimensional, int32, nnz)
Column indices of matrix A (where nnz is the number of nonzero elements). |
| [in] | base | Indexing of rowptr and colind.
= 0: Zero-based (C style) indexing: Starting index is 0.
= 1: One-based (Fortran style) indexing: Starting index is 1. |
| [out] | a | Numpy ndarray (2-dimensional, float, m x n)
Output matrix. |
|