cupyx.scipy.sparse.tril#

cupyx.scipy.sparse.tril(A, k=0, format=None)[source]#

Returns the lower triangular portion of a matrix in sparse format

Parameters:
  • A (cupy.ndarray or cupyx.scipy.sparse.spmatrix) – Matrix whose lower triangular portion is desired.

  • k (integer) – The top-most diagonal of the lower triangle.

  • format (string) – Sparse format of the result, e.g. ‘csr’, ‘csc’, etc.

Returns:

Lower triangular portion of A in sparse format.

Return type:

cupyx.scipy.sparse.spmatrix