[docs]@singledispatchdefto_sparse_array(x:Any)->SparseNdarray:""" Convert ``x`` to a :py:class:`~delayedarray.SparseNdarray.SparseNdarray`. This calls :py:func:`~delayedarray.delayedarray.extract_sparse_array` with ``subset`` set to the full extent of all dimensions. Args: x: Any array-like object containing sparse data. Returns: ``SparseNdarray`` with the full contents of ``x``. """returnextract_sparse_array(x,_spawn_indices(x.shape))