pub fn tri<T: Element>(
n: usize,
m: usize,
k: isize,
) -> FerrayResult<Array<T, Ix2>>Expand description
Create a lower-triangular matrix of ones.
Returns an n x m array where a[i, j] = 1 if i >= j - k, else 0.
Analogous to numpy.tri(N, M, k).