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 == 0
is the main diagonal,k < 0
subdiagonal andk > 0
superdiagonal.
- Returns:
Return is the same shape and type as
m
.- Return type:
See also
scipy.linalg.tril()