pub fn triu<T: Element>(
a: &Array<T, IxDyn>,
k: isize,
) -> FerrayResult<Array<T, IxDyn>>Expand description
Return the upper triangle of a 2-D array.
k is the diagonal below which to zero elements. 0 = main diagonal.
Analogous to numpy.triu().
ยงErrors
Returns FerrayError::InvalidValue if input is not 2-D.