linalg:tril
(linalg:tril array &key k)
Returns the lower triangle of array: a copy with everything above the k-th diagonal set to zero (numpy's np.tril). The linalg:triu rules with the comparison flipped -- :k defaults to 0, rank must be at least 2, and a stack of matrices is masked on its last two axes.