cupyx.scipy.sparse.find#
- cupyx.scipy.sparse.find(A)[source]#
Returns the indices and values of the nonzero elements of a matrix
- Parameters:
A (cupy.ndarray or cupyx.scipy.sparse.spmatrix) – Matrix whose nonzero elements are desired.
- Returns:
It returns (
I
,J
,V
).I
,J
, andV
contain respectively the row indices, column indices, and values of the nonzero matrix entries.- Return type:
See also