asCOO

sparse.asCOO(x, name='asCOO', check=True)[source]

Convert the input to COO. Passes through COO objects as-is.

Parameters:
Returns:

The converted COO array.

Return type:

COO

Raises:

ValueError – If check is true and a dense input is supplied.