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

◆ CscDense()

Sub CscDense ( M As  Long,
N As  Long,
Val() As  Double,
Colptr() As  Long,
Rowind() As  Long,
A() As  Double,
Optional Info As  Long,
Optional Base As  Long = -1 
)

CSC -> dense matrix

Purpose
This routine converts the sparse matrix in CSC 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]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 CSC format.
[in]Colptr()Array Colptr(LColptr - 1) (LColptr >= N + 1)
Column pointers of the input matrix in CSC format.
[in]Rowind()Array Rowind(LRowind - 1) (LRowind >= Nnz)
Row indices of the input matrix in CSC format.
[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)
Indexing of Colptr() and Rowind().
= 0: Zero-based (C style) indexing: Starting index is 0.
= 1: One-based (Fortran style) indexing: Starting index is 1.
(default: Assumes 1 if Colptr(0) = 1, 0 otherwise)