cupyx.scipy.linalg.tril#
- cupyx.scipy.linalg.tril(m, k=0)[source]#
Make a copy of a matrix with elements above the
k-th diagonal zeroed.- Parameters:
m (cupy.ndarray) – Matrix whose elements to return
k (int, optional) – Diagonal above which to zero elements.
k == 0is the main diagonal,k < 0subdiagonal andk > 0superdiagonal.
- Returns:
Return is the same shape and type as
m.- Return type:
See also