IMSL C# Numerical Library

SparseMatrix.ToDenseMatrix Method 

Returns the sparse matrix as a dense matrix.

public double[,] ToDenseMatrix();

Return Value

A double rectangular array containing this matrix with all of the zeros explicitly present. The number of rows and columns in the returned matrix is the same as in the sparse matrix.

See Also

SparseMatrix Class | Imsl.Math Namespace