Return the indices for the upper-triangle of a (N, N) array.
See triu_indices for full details.
Parameters : | arr : ndarray, shape(N, N)
k : int, optional
|
---|---|
Returns : | triu_indices_from : tuple, shape(2) of ndarray, shape(N)
|
See also
Notes
New in version 1.4.0.