scglue.num.densify
- scglue.num.densify(arr, nan_sparse=False)[source]
Convert a matrix to dense regardless of original type.
- Parameters:
arr (
typing.Union[numpy.ndarray,scipy.sparse._matrix.spmatrix]) – Input array (either sparse or dense)nan_sparse (
bool) – Whether missing entries indicate nan
- Return type:
- Returns:
densified – Densified array