mat (Array
) – array to be converted to COO.
nse (Optional
[int
]) – number of specified entries in mat
. If not specified,
it will be computed from the input matrix.
index_dtype (Union
[str
, type
[Any
], dtype
, SupportsDType
]) – dtype of sparse indices