triu

odl.triu(x, k=0)

Returns the upper triangular part of a matrix (or a stack of matrices) x.