cupyx.scipy.sparse.tril#
- cupyx.scipy.sparse.tril(A, k=0, format=None)[source]#
Return the lower triangular portion of a sparse object.
- Parameters:
A (cupy.ndarray or cupyx.scipy.sparse) – Input array/matrix.
k (integer) – The top-most diagonal of the lower triangle.
format (string) – Sparse format of the result, e.g.
'csr','csc'.
- Returns:
Lower triangular portion of
A. Returns a sparse array whenAis a sparse array, else a sparse matrix.- Return type:
cupyx.scipy.sparse
See also