def get_dense_memory_usage(matrix):
    """
    Return the number of bytes need to store the equivalent dense
    representation of a sparse matrix
    """
    return matrix.dtype.itemsize * matrix.shape[0] * matrix.shape[1]