Tutorials
Examples
References
Other
Community
chainerx.
triu
Upper triangle of an array.
Returns a copy of an array with elements below the k-th diagonal zeroed.
m (ndarray) – Input array.
k (int) – Index of the diagonal. Zero indicates the main diagonal, a positive index an upper diagonal, and a negative index a lower diagonal.
Upper triangle of m.
m
ndarray
See also
numpy.triu()