cupy.random
Development
Misc Notes
cupy.
tri
Creates an array with ones at and below the given diagonal.
N (int) – Number of rows.
M (int) – Number of columns. M == N by default.
M == N
k (int) – The sub-diagonal at and below which the array is filled. Zero is the main diagonal, a positive value is above it, and a negative value is below.
dtype – Data type specifier.
An array with ones at and below the given diagonal.
cupy.ndarray
See also
numpy.tri()