cupy.tril#

cupy.tril(m, k=0)[source]#

Returns a lower triangle of an array.

Parameters:
  • m (array-like) – Array or array-like object.

  • k (int) – The diagonal above which to zero elements. Zero is the main diagonal, a positive value is above it, and a negative value is below.

Returns:

A lower triangle of an array.

Return type:

cupy.ndarray

See also

numpy.tril()