numpy.
triu_indices_from
Return the indices for the upper-triangle of arr.
Seetriu_indices for full details.
triu_indices
The indices will be valid for square arrays.
Diagonal offset (seetriu for details).
triu
Indices for the upper-triangle ofarr.
See also
triu_indices,triu
Notes
New in version 1.4.0.
numpy.triu_indices
numpy.take