XLPack 7.0
XLPack Numerical Library (Excel VBA) Reference Manual
Loading...
Searching...
No Matches

◆ ZCooDense()

Sub ZCooDense ( M As  Long,
N As  Long,
Nnz As  Long,
Val() As  Complex,
Rowind() As  Long,
Colind() As  Long,
A() As  Complex,
Optional Info As  Long,
Optional Base As  Long = 0 
)

COO -> dense matrix (Complex matrices)

Purpose
This routine converts the sparse matrix in COO format to the dense matrix.
Parameters
[in]MNumber of rows of the matrix. (M >= 0) (if M = 0, returns without computation)
[in]NNumber of columns of the matrix. (N >= 0) (if N = 0, returns without computation)
[in]NnzNumber of nonzero elements in the matrix. (Nnz >= 0) (If Nnz = 0, returns without computation)
[in]Val()Array Val(LVal - 1) (LVal >= Nnz) (Nnz is the number of nonzero elements of the input matrix)
Values of nonzero elements of the input matrix.
[in]Rowind()Array Rowind(LRowind - 1) (LRowind >= Nnz)
Row indices of input matrix.
[in]Colind()Array Colind(LColind - 1) (LColind >= Nnz)
Column indices of input matrix.
[out]A()Array A(LA1 - 1, LA2 - 1) (LA1 >= M, LA2 >= N)
Output matrix.
[out]Info(Optional)
= 0: Successful exit.
= i < 0: The (-i)-th argument is invalid.
[in]Base(Optional)
Index style of Rowind() and Colind(). (default = 0)
= 0: Zero-based (C style) indexing: Starting index is 0.
= 1: One-based (Fortran style) indexing: Starting index is 1.